MS Teams roaming

%3CLINGO-SUB%20id%3D%22lingo-sub-2057566%22%20slang%3D%22en-US%22%3EMS%20Teams%20roaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2057566%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EHow%20does%20MS%20teams%20server%20know%20which%20country%20user%20is%20currently%20in%20when%20receiving%20a%20call%20on%20a%20landline%20number.%20For%20example%2C%20the%20user%20has%20UK%20landline%20number%20on%20teams%20account%20and%20if%20the%20user%20receives%20a%20call%20(while%20abroad)%2C%20the%20caller%20get%20a%20ringing%20tone%20that%20is%20from%20abroad%20instead%20of%20normal%20UK%20ringtone.%3C%2FP%3E%3CP%3EI%20suspect%20when%20the%20user%20register%20while%20abroad%20the%20servers%20recognise%20the%20IP%20of%20user%20which%20is%20not%20from%20UK%20or%20the%20the%20fact%20the%20the%20user%20registers%20to%20a%20non-UK%20Teams%20server%20because%20of%20DNS%20but%20I%20want%20to%20know%20precisely%20how%20it%20works%20please.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2057566%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERoaming%20Profile%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2057591%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20roaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2057591%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2059586%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20roaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059586%22%20slang%3D%22en-US%22%3E%3CP%3EAdmins%20can%20setup%20Emergency%20locations%20so%20that%20correct%20location%20information%20is%20sent%20to%20your%20PSAP%2C%20this%20can%20use%20IP%20subnets%20and%20switch%20ports%20to%20see%20the%20location%20of%20the%20user.%20But%20this%20is%20not%20used%20for%20call%20routing%20of%20regular%20calls.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fwhat-are-emergency-locations-addresses-and-call-routing%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPlan%20and%20manage%20emergency%20calling%20-%20Microsoft%20Teams%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELocation%20Based%20Routing%20is%20also%20checking%20the%20location%20of%20the%20Teams%20client%2C%20but%20that%20is%20used%20to%20make%20sure%20that%20the%20user%20dials%20out%20from%20the%20site%20that%20they%20are%20located.%20So%20if%20you%20have%20setup%20Direct%20Routing%20with%20Location%20Based%20Routing%20that%20could%20be%20why%20you%20hear%20different%20ringtones.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Flocation-based-routing-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPlan%20Location-Based%20Routing%20for%20Direct%20Routing%20-%20Microsoft%20Teams%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20LBR%20is%20not%20implemented%20the%20Voice%20Routes%20you%20have%20setup%20decides%20where%20to%20send%20the%20call%20and%20that%20is%20based%20on%20the%20number%20you%20dial.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064365%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20roaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064365%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20reply.%20So%20if%20I%20understand%20correctly%2C%20the%20call%20is%20routed%20based%20on%20the%20location%20of%20the%20user%20and%20how%20the%20admin%20has%20configured%20the%20service.%20But%20my%20question%20is%20around%20how%20the%20Teams%20client%2Fserver%20determine%20the%20location%20of%20the%20user%20to%20begin%20with%20%3F%20The%20public%20IP%20of%20the%20user%20OR%20which%20Teams%20server%20the%20login%20request%20is%20forwarded%20to%20(because%20of%20DNS)%20and%20something%20else%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2066636%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20roaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2066636%22%20slang%3D%22en-US%22%3E%3CP%3ETeams%20client%20will%20connect%20to%20different%20URLs%20using%20DNS%20to%20connect%20to%20the%20closest%20data%20center%2C%20ex.%20using%26nbsp%3B%20teams.microsoft.com.%20But%20it%20will%20always%20connect%20to%20your%20home%20tenant%2C%20the%20data%20center%20were%20your%20data%20is%20stored.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20media%20(audio%2Fvideo)%20Teams%20will%20use%20Anycast%20IP%20(%3CSPAN%3E13.107.8.2)%26nbsp%3B%3C%2FSPAN%3Eto%20connect%20to%20the%20closest%20media%20relay.%20But%20the%20media%20when%20you%20dial%20a%20PSTN%20phone%20number%20will%20always%20go%20out%20via%20the%20SBC%20that%20your%20admin%20setup.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi

How does MS teams server know which country user is currently in when receiving a call on a landline number. For example, the user has UK landline number on teams account and if the user receives a call (while abroad), the caller get a ringing tone that is from abroad instead of normal UK ringtone.

I suspect when the user register while abroad the servers recognise the IP of user which is not from UK or the the fact the the user registers to a non-UK Teams server because of DNS but I want to know precisely how it works please.

Thanks

4 Replies

Admins can setup Emergency locations so that correct location information is sent to your PSAP, this can use IP subnets and switch ports to see the location of the user. But this is not used for call routing of regular calls.
Plan and manage emergency calling - Microsoft Teams | Microsoft Docs

 

Location Based Routing is also checking the location of the Teams client, but that is used to make sure that the user dials out from the site that they are located. So if you have setup Direct Routing with Location Based Routing that could be why you hear different ringtones.

Plan Location-Based Routing for Direct Routing - Microsoft Teams | Microsoft Docs

 

If LBR is not implemented the Voice Routes you have setup decides where to send the call and that is based on the number you dial.

@Linus Cansby 

Thanks for reply. So if I understand correctly, the call is routed based on the location of the user and how the admin has configured the service. But my question is around how the Teams client/server determine the location of the user to begin with ? The public IP of the user OR which Teams server the login request is forwarded to (because of DNS) and something else ?

 

Thanks

Teams client will connect to different URLs using DNS to connect to the closest data center, ex. using  teams.microsoft.com. But it will always connect to your home tenant, the data center were your data is stored. 

For media (audio/video) Teams will use Anycast IP (13.107.8.2) to connect to the closest media relay. But the media when you dial a PSTN phone number will always go out via the SBC that your admin setup.