List static routing config
After adding a static route to Lync (for example when adding a CTP integration) you can use the following command to show the route:
Get-CsStaticRoutingConfiguration Service:Registrar:lspool01.contoso.com
Identity : Service:Registrar:lspool01.contoso.com
Route : {MatchUri=video.contoso.com;MatchOnlyPhoneUri=False;Enabled=True;ReplaceHostInRequestUri=False}
This will list the static route, but it won’t show all the route details (specifically the route target which is semi often used in troubleshooting) as they are contained inside a Route object in the StaticRoutingConfiguration object. To list the details of the route, do:
$stroute = Get-CsStaticRoutingConfiguration Service:Registrar:lspool01.contoso.com $stroute.Route
This will give you the content of the route.
Transport : TransportChoice=Certificate=Microsoft.Rtc.Management.WritableConfig.Settings.SipProxy.UseDefaultCert;Fqdn=vcsc.contoso.com;Port=5061
MatchUri : video.contoso.com
MatchOnlyPhoneUri : False
Enabled : True
ReplaceHostInRequestUri : False