Topic Last Modified: 2013-02-22
SIP trunk configuration settings define the relationship and capabilities between a Mediation Server and the public switched telephone network (PSTN) gateway, an IP-public branch exchange (PBX), or a Session Border Controller (SBC) at the service provider. These settings do such things as specify:
-
Whether media bypass should be enabled on the trunks.
-
The conditions under which real-time transport control protocol (RTCP) packets are sent.
-
Whether or not secure real-time protocol (SRTP) encryption is required on each trunk.
When you install Microsoft Lync Server 2013, a global collection of SIP trunk configuration settings is created for you. This global collection of settings cannot be deleted. However, you can use the Lync Server Control Panel or the Remove-CsTrunkConfiguration cmdlet to "reset" the properties in the global collection to their default values. For example, if you have set the Enable3pccRefer property to True, when you reset the global collection the Enable3pccRefer property will revert to its default value of False.
Administrators can also create custom trunk configuration settings at the site scope or at the service scope (for an individual PSTN gateway); these custom settings can be removed. When removing these custom settings keep the following in mind:
-
If you remove service scope settings, then the SIP trunk managed by those settings will be managed by the settings applied to their site, if they exist. If site settings do not exist, those trunks will then be managed by the global collection of trunk configuration settings.
-
If you remove site-scoped settings then any SIP trunks managed by those settings will now be managed by the global collection of trunk configuration settings.
To remove trunk configuration settings with Lync Server Control Panel
-
In Lync Server Control Panel, click Voice Routing and then click Trunk Configuration.
-
On the Trunk Configuration tab, select the collection of SIP trunk configuration settings to be deleted, click Edit and then click Delete. To delete multiple collections in the same operation, click the first collection to be deleted, then hold down the Ctrl key and click any additional collections that you want to remove.
-
The State property for the collection will be updated to Uncommitted. To commit the changes, and to delete the collection, click Commit and then click Commit All.
-
In the Uncommitted Voice Configuration Settings dialog box, click OK.
-
In the Microsoft Lync Server 2013 Control Panel dialog box click OK.
-
If you change your mind and decide not to delete the collection, click Commit and then click Cancel All Uncommitted Changes. When the Microsoft Lync Server 2013 Control Panel dialog box appears, click OK.
Removing Trunk Configuration Settings by Using Windows PowerShell Cmdlets
You can delete trunk configuration settings by using Windows PowerShell and the Remove-CsTrunkConfiguration cmdlet. You can run this cmdlet either from the Lync Server 2013 Management Shell or from a remote session of Windows PowerShell. For details about using remote Windows PowerShell to connect to Lync Server, see the Lync Server Windows PowerShell blog article "Quick Start: Managing Microsoft Lync Server 2010 Using Remote PowerShell" at http://go.microsoft.com/fwlink/p/?linkId=255876.
To remove a specified collection of settings
-
The following command removes the trunk configuration settings applied to the Redmond site:
Copy Code Remove-CsTrunkConfiguration -Identity site:Redmond
To remove all the collections applied to the site scope
-
This command removes all the trunk configuration settings applied to the service scope:
Copy Code Get-CsTrunkConfiguration -Filter "service:*" | Remove-CsTrunkConfiguration
To remove all the collections where media bypass is enabled
-
The following command removes all the trunk configuration settings where media bypass has been enabled:
Copy Code Get-CsTrunkConfiguration | Where-Object {$_.EnableBypass -eq $True} | Remove-CsTrunkConfiguration
For more information, see the help topic for the Remove-CsTrunkConfiguration cmdlet.