在 Lync Server 2013 中測試 SIP 主幹設定設定Test SIP trunk configuration settings in Lync Server 2013

 

主題上次修改日期: 2012-11-01Topic Last Modified: 2012-11-01

SIP 主幹組態設定用於定義中繼伺服器與服務提供者的公用交換電話網路 (PSTN) 閘道、IP 公用交換機 (PBX) 或工作階段邊界控制器 (SBC) 之間的關係和功能。這些設定將指定下列項目: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.

  • 傳送即時傳輸控制通訊協定 (RTCP) 封包的情況。The conditions under which real-time transport control protocol (RTCP) packets are sent.

  • 每個主幹是否需要安全即時通訊協定 (SRTP) 加密。Whether or not secure real-time protocol (SRTP) encryption is required on each trunk.

當您安裝 Microsoft Lync Server 2013 時,系統會為您建立一個全域 SIP 主幹設定的集合。When you install Microsoft Lync Server 2013, a global collection of SIP trunk configuration settings is created for you. 此外,系統管理員可以在網站範圍或服務範圍 (僅限 PSTN 閘道服務) 建立自訂設定集合。In addition, administrators can create custom setting collections at the site scope or at the service scope (for the PSTN gateway service, only). 管理員也可以使用 Test-CsTrunkConfiguration Cmdlet 來驗證主幹是否可將使用者所撥打的號碼轉換為閘道可以處理的號碼。Administrators can also use the Test-CsTrunkConfiguration cmdlet to verify that a trunk can convert a number as dialed by a user to a number that can be handled by the gateway.

您只能使用 Windows PowerShell 和 Test-CsTrunkConfiguration Cmdlet 來測試主幹設定設定。Trunk configuration settings can only be tested by using Windows PowerShell and the Test-CsTrunkConfiguration cmdlet. 您可以從 Lync Server 2013 管理命令介面或從 Windows PowerShell 的遠端會話中執行此 Cmdlet。This cmdlet can be run either from the Lync Server 2013 Management Shell or from a remote session of Windows PowerShell. 如需使用遠端 Windows PowerShell 連接至 Lync Server 的詳細資訊,請參閱 Lync Server Windows PowerShell 博客文章「快速入門:使用遠端 PowerShell 管理 Microsoft Lync Server 2010」 at https://go.microsoft.com/fwlink/p/?linkId=255876For 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 https://go.microsoft.com/fwlink/p/?linkId=255876.

測試 SIP 主幹設定設定To test SIP trunk configuration settings

  • 這個命令會驗證 Redmond 網站的主幹設定設定是否可以正確地轉換撥打的號碼4255551212。This command verifies that the trunk configuration settings for the Redmond site can correctly convert the dialed number 4255551212.

    $trunk = Get-CsTrunkConfiguration -Identity "site:Redmond"
    Test-CsTrunkConfiguration -DialedNumber 4255551212 -TrunkConfiguration $trunk