UCPrimer
  • Tech Blog
  • About UCPrimer.com

Testing Lync LBR with Polycom VVX Business Media Phones

2/26/2015

0 Comments

 
Picture
Location Based Routing (LBR) was introduced in the Lync2013 Feb 2013 CU making it possible to restrict the routing of calls between VoIP endpoints and PSTN endpoints based on the location of the parties in the call. Location-Based Routing is part of the Lync Server 2013 Enterprise Voice infrastructure and when enabled, allows Lync to enforce call authorization rules on whether calls can be routed to PBX or PSTN endpoints based on the Lync caller’s geographic location. This helps to enforce PSTN Toll-Bypass in countries where regulations prohibit it. Even with least cost routing enabled, the location based routing policies will take precedence. This article walks briefly through the setup and configuration of LBR and tests it against the Polycom VVX family of Lync IP Phones.
In this lab, we use a standard edition Lync server configured with an Asterisk PBX to simulate a PSTN connection. The diagram of this setup is shown below:
Picture
As shown in the diagram, we have the same Lync user Edina that is logged into a Polycom VVX400 and VVX600 phone running the latest UCS firmware. The VVX400 phone is in the same subnet as the Lync SE server and the Asterisk PBX. The VVX600 is in a different subnet. When we configure the SIP Trunk to Asterisk to enable LBR, it is expected that the VVX400 will be able to reach the X-Lite softphone at ext3001, which simulates a local user calling a local PSTN gateway, In contrast, the same user when travelling to a different country with a different IP subnet on the VVX600 trying to call the same X-Lite softphone ext3001, the call will be blocked to prevent PSTN Toll-Bypass.
Configuring the SIP Trunk to Asterisk
As mentioned we are using Asterisk v11.14 to emulate a PSTN gateway. Asterisk can be downloaded here and in this lab I'm running the 64-bit version of AsteriskNOW 6.12 on Windows Server 2012 Hyper-V. The steps to configure an Asterisk server and create the SIP Trunk to Lync was covered in this article back in Sep 2012 and therefore won't be repeated here. Although the article was written for AsteriskNOW2.0, much of the same concepts still apply in the new version with only minor changes to get a basic SIP trunk working with the necessary inbound/outbound routes. We also won't be covering in detail the steps to configure Enterprise Voice in Lync as there are already much guidance available publicly.

Instead, in this section we focus on the LBR configuration itself. As a starting point, we first create the Trunk using Topology Builder:
Picture
The PSTN Gateway associated with this trunk is the Asterisk PBX. We use TCP 5060 for the listening port on Asterisk as well as the listening port on the mediation server which in this case is just the Lync SE server. Note that the default TCP listening port on Lync mediation server is 5068, not 5060 so this must be changed on the mediation server properties otherwise Topology Builder will not allow us to configure the Trunk to use 5060.

On the Asterisk side, we configure the SIP Trunk to use TCP 5060 next hop to the Lync FE. This can be seen on the diagram on the right. Note the parameters need to be entered in the PEER Details box as shown and the USER Details should be left blank.

In the inbound Routes we configure Asterisk to ring the extension 3001 so that the X-Lite phone registered to this extension will ring when Lync clients make a call through this trunk
Picture
Picture
On the asterisk console, we can see the SIP Peer shows status of Lync as OK :
Picture
To enable users to use this route, we make sure there's a Voice Route "AXAPSTNRoute" that corresponds to this PSTN Gateway and assign the route for all users in the "Global" Voice Policy with PSTNUsage "Local" :
Picture
Picture
To make sure the trunk and route works, we test calling extension 3001 from both VVX phones and see that the call goes through for both cases. This is the case of least cost routing where LBR is not yet enabled.
Configuring and Enabling LBR
First we need to create a new VoiceRoutingPolicy that specifies the PstnUsage that uses the gateway. In this lab the cmdlet to do this is

New-CsVoiceRoutingPolicy -Identity "AXALBR" -PstnUsages "Local"

Then we enable the Global voice policy to PreventPSTNTollBypass using the cmdlet:

Set-CSVoicePolicy -Identity "Global" -PreventPSTNTollBypass $true

Next we proceed to enable LBR on the network site and trunk in AXATower which has the subnet 10.222.208/24 using the cmdlet:

Set-CsNetworkSite -Identity "SG AXA Tower" -EnableLocationBasedRouting $true -VoiceRoutingPolicy "AXALBR"

The Trunk Configuration also needs to be modified to enable LBR for the Network Site using the cmdlet:

Set-CsTrunkConfiguration -Identity Global -EnableLocationRestriction $true -NetworkSiteID "SG AXA Tower"

Finally we enable LBR for the global routing configuration:

Set-CsRoutingConfiguration -EnableLocationBasedRouting $true

This sequence of cmdlets are shown below:
Picture
Testing LBR
For this test, we have two Polycom VVX phones signed in with the same Lync account as Edina. The VVX410 is on the same subnet as the PSTNGatway as shown below. As expected calls to the X-Lite softphone at x3001 goes through successfully:
Picture
Picture
Looking at the SIP trace, we see the call gets routed via the Asterisk PSTN Gateway to reach the X-Lite softphone x3001:
Picture
Picture
The VVX600 is on a different subnet as the PSTNGatway as shown below. As expected calls to the X-Lite softphone at x3001 DOES NOT go through successfully:
Picture
Picture
From the SIP Trace we see that the call cannot route via the PSTN Gateway because LBR is enabled:
Picture
Picture
0 Comments

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