UCPrimer
  • Tech Blog
  • About UCPrimer.com

Teams IP Phones with Location Based Routing

3/27/2020

1 Comment

 
Picture
In a previous blog post we walked through the steps to configure our Teams environment with Direct Routing for PSTN calling. In this blog post, we build on the same setup and enable Location Based Routing (LBR). Note that LBR for Teams Direct Routing is a preview or early release feature at the time of this writing as stated in the official Microsoft documentation. For readers unfamiliar with LBR, this capability allows admins to prevent PSTN Toll-Bypass which is against regulatory requirements in certain countries. By configuring LBR, we can restrict toll bypass based on policy and the user's geographic location at the time of an inbound or outbound PSTN call. We can then verify that the LBR policies will also apply to certified Teams IP Phones such as the Poly CCX Family of Teams phones.
Much of the details on how LBR functions in Teams is already covered in the official Microsoft documentation and thus there is no need to repeat them here. However there are a few important points which are worthy of mention before we proceed further:
  • ​Location-Based Routing has to be applied to users, network sites, and PSTN gateways. LBR works by determining the user’s current location based on the IP address of the user’s Teams endpoint and applies the rules accordingly. If a user who is enabled for LBR roams to a network site that's not enabled for LBR, any gateway that's not enabled for LBR can be used for outbound calls. Similarly gateways must be enabled for LBR to ensure that it's under toll bypass restrictions and can’t be used by users who aren't enabled for LBR.
  • For call transfers and forwarding involving PSTN endpoints, LBR analyzes whether one or both users are enabled for LBR and determines whether the call should be transferred or forwarded depending on the location of both endpoints. Generally, transferring and forwarding inbound PSTN calls from a gateway that's enabled for LBR is allowed only if the target user is enabled for LBR and is located at the same site. Otherwise, transferring and forwarding calls isn't allowed
  • Transferring and forwarding inbound a PSTN call to another PSTN number must be routed out the same LBR enabled gateway that the inbound call arrived on. Transferring and forwarding an inbound VOIP call to the PSTN must honor both the caller and called user’s toll bypass restrictions.
  • When a user who's enabled for LBR receives a call and has simultaneous ringing enabled, LBR analyzes the location of the calling party and the endpoints of the called parties to determine whether the call should be routed. Simultaneous ringing follows the same Location-Based rules as call transfers and forwards
  • Inbound PSTN calls from a LBR enabled gateway are allowed to connect to an auto attendant or call queue. However, users enabled for LBR can only receive inbound call transfers from these applications when they are located at the same site the inbound PSTN call originates from.
  • The following Teams clients are supported with LBR:
    • Teams desktop clients (Windows and Mac
    • Teams mobile clients (iOS and Android)
    • Teams IP phones
    • The Teams web client and Skype for Business clients aren't supported.
  • Location-Based Routing isn't enforced when Teams endpoints interact with PSTN endpoints in the following scenarios:
    • Call park or retrieval of PSTN calls through Call Park
    • An on-premises Skype for Business user or a Skype for Business Online user calls a Teams user
  • A LBR enabled user on a PSTN call isn't allowed to start a conference with another user or PSTN number. However connecting to auto attendants or call queues is allowed. If the user has a conferencing license, the user must start a conference with the relevant users and call the PSTN through the conference bridge to start a conference call.

Against this backdrop, we can start diving into the configuration of LBR in our environment and in this post we will use 2 subnets to simulate a network that has 2 sites: The Changi site is where the SBC is located and only users in this site are able to make PSTN calls via the SBC. Users in the Jurong site will not be allowed to make PSTN calls by traversing the "WAN". This setup is depicted in the diagram below:
Picture
We begin by defining our network sites and subnets using the Teams Admin Centre -> Locations -> Network Topology. Here we can add our Changi network site, enable it for LBR and define one or more subnets associated with the site as shown below:
Picture
Likewise we can do the same for the Jurong network site after which we have 2 network sites that are enabled for LBR. Next we startup the SkypeOnline remote powershell to configure our gateways. Based on our previous setup, we have already defined our PSTN usages,  Online Voice Routing Policy and PSTN Gateway as shown below:
Picture
The Online Voice Routing Policy has already been assigned to our test user accounts. Next we verify that our newly created network sites are correct and enabled for LBR:
Picture
Next we proceed to turn on LBR for our PSTN Gateway:
Picture
Finally, we enable our test user for LBR as shown below:
Picture
After waiting a few minutes for the settings to take effect, we connect our Poly CCX500 Teams IP Phone to the Changi Site network and sign in using the test account and attempt to make and receive calls from the PSTN. We find that calls are successful. Next we connect the phone to the Jurong Site network and perform the same tests and find that the calls are not allowed as shown below. In conclusion, LBR performs as it should on IP Phones and this feature allows admins to restrict Toll-Bypass for locations where it is against country regulations to do so.
Picture
1 Comment
Rizwan Ullah link
8/5/2020 01:58:12 pm

If we have a central site where an SBC is connected directly to the PSTN and we have a remote site with no PSTN connectivity, can we install an SBC downstream to the central site in order to share the PSTN connectivity at remote site?

So the users at remote site use the SBC at central site for PSTN calling. What if the central site SBC is in a complete different country?

Is it legal to do so?

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    Picture
    Picture

    Important Links

    Microsoft Teams Docs
    Microsoft Learn

    ​Microsoft MVP Blogs

    Michael Tressler’s Blog
    Michael’s MTR Quick Tip Videos
    Jimmy Vaughan’s Blog
    Jeff Schertz
    Adam Jacobs
    James Cussen
    ​Damien Margaritis

    Archives

    September 2022
    August 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    June 2021
    April 2021
    March 2021
    December 2020
    October 2020
    September 2020
    August 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    August 2017
    July 2017
    April 2017
    March 2017
    February 2017
    January 2017
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    January 2016
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    September 2012
    August 2012

    Categories

    All
    Edge
    Exchange 2013
    Hybrid
    Lpe
    Lync 2010
    Lync 2013
    Mobility
    Oauth
    Office365
    Polycom
    Ucs

    RSS Feed

    This website uses marketing and tracking technologies. Opting out of this will opt you out of all cookies, except for those needed to run the website. Note that some products may not work as well without tracking cookies.

    Opt Out of Cookies