Testing PSTN phone call routing in Lync Server 2013

Lync Server 2013
 

Letztes Änderungsdatum des Themas: 2015-03-09

 

Verification schedule

Daily

Testing tool

Windows PowerShell

Permissions required

When run locally using the Lync Server-Verwaltungsshell, users must be members of the RTCUniversalServerAdmins security group.

When run using a remote instance of Windows PowerShell, users must be assigned an RBAC role that has permission to run the Test-CsInterTrunkRouting cmdlet. To see a list of all RBAC roles that can use this cmdlet, run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets -match "Test-CsInterTrunkRouting"}

The Test-CsInterTrunkRouting cmdlet verifies that calls can be routed from one SIP to another. To do this, the cmdlet is given a phone number and a trunk configuration. Test-CsInterTrunkRouting will then report back matching routes and matching PSTN usages for the specified number. Note that calls can be routed between trunks only if the trunks have a number pattern that matches the specified phone number and only if the trunks share at least one PSTN usage.

The commands shown below return the matching routes and matching phone usages that enable users to call the phone number 1-206-555-1219 using the trunk configuration settings for the Redmond site.

$trunk = Get-CsTrunkConfiguration -Identity "site:Redmond"

Test-CsInterTrunkRouting -TargetNumber "tel:+12065551219" -TrunkConfiguration $trunk

If calls can be routed from one SIP to another, you'll receive output similar to this:

FirstMatchingRoute MatchingUsage MatchingRoutes

------------------ ------------- --------------

RedmondRoute LocalUsage {RedmondRoute}

If the test did not succeed, you'll receive output similar to this:

Test-CsInterTrunkRouting : Cannot process argument transformation on parameter

'TrunkConfiguration'. Invalid TrunkConfigurationsetting (parameter). Specify a

valid setting (parameter) and then try again.

At line:1 char:79

+ Test-CsInterTrunkRouting -TargetNumber "tel:+12065551219"

-TrunkConfiguration $t ...

+

~~

+ CategoryInfo : InvalidData: (:) [Test-CsInterTrunkRouting], Par

ameterBindingArgumentTransformationException

+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Microsoft.R

tc.Management.Voice.Cmdlets.TestOcsInterTrunkRoutingCmdlet

Here are some common reasons why Test-CsInterTrunkRouting might fail:

  • You specified invalid parameters. The trunk might not yet be correctly configured and the specified target number might be incorrect or invalid.

 
Anzeigen: