Check Configuration
Your PowerShell session is still active and you want to check your Direct Routing configuration.
Retrieve Direct Routing information for a user:
Get-CsOnlineUser "yourusername@yourcompany.com" | Format-List -Property DisplayName, RegistrarPool, EnterpriseVoiceEnabled, TeamsVoiceRoute, AssignedPlan, TeamsUpgradeEffectiveMode, HostedVoiceMail, LineURI, CallingLineIdentity, UsageLocation, DialPlan, UserPrincipalName, WindowsEmailAddress, SipAddress, OnPremLineURI, OnlineVoicemailPolicy, OnlineVoiceRoutingPolicy, WhenChanged
Example output:
DisplayName : Test User
RegistrarPool : Teams:
EnterpriseVoiceEnabled : True
AssignedPlan : {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
TeamsUpgradeEffectiveMode : TeamsOnly
LineUri : tel:+41442005000
CallingLineIdentity :
UsageLocation : CH
DialPlan : CH
UserPrincipalName : yourusername@yourcompany.com
SipAddress : sip:yourusername@yourcompany.com
OnPremLineUri :
OnlineVoicemailPolicy :
OnlineVoiceRoutingPolicy : sipcall
WhenChanged : 09.02.2022 15:53:21
Retrieve information about the voice route:
Get-CsOnlineVoiceRoute
Example output:
Identity : LocalRoute
Priority : 0
Description :
NumberPattern : ^(\+1[0-9]{10})$
OnlinePstnUsages : {}
OnlinePstnGatewayList : {}
BridgeSourcePhoneNumber :
Name : LocalRoute
Identity : sipcall
Priority : 1
Description :
NumberPattern : .*
OnlinePstnUsages : {sipcall}
OnlinePstnGatewayList : {cu<customerID>.msteams1.sipcall.ch}
BridgeSourcePhoneNumber :
Name : sipcall
Example output with "Geo-Redundancy" option:
Identity : LocalRoute
Priority : 0
Description :
NumberPattern : ^(\+1[0-9]{10})$
OnlinePstnUsages : {}
OnlinePstnGatewayList : {}
BridgeSourcePhoneNumber :
Name : LocalRoute
Identity : sipcall
Priority : 1
Description :
NumberPattern : .*
OnlinePstnUsages : {sipcall}
OnlinePstnGatewayList : {cu<customerID>.msteams1.sipcall.ch}
BridgeSourcePhoneNumber :
Name : sipcall
Identity : sipcall
Priority : 2
Description :
NumberPattern : .*
OnlinePstnUsages : {sipcall}
OnlinePstnGatewayList : {cu<CcustomerID>.msteams2.sipcall.ch}
BridgeSourcePhoneNumber :
Name : sipcall
Retrieve information about assigned phone numbers:
All phone numbers:
Get-CsPhoneNumberAssignment
Specific phone number:
Get-CsPhoneNumberAssignment -TelephoneNumber +41442005000
Assigned to a resource account:
Get-CsPhoneNumberAssignment -PstnAssignmentStatus VoiceApplicationAssigned
Example output of a phone number assigned to a user:
TelephoneNumber : +41442005000
OperatorId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
AssignmentCategory : Primary
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
City : St Gallen
CivicAddressId :
IsoCountryCode :
IsoSubdivision : St. Gallen
LocationId :
LocationUpdateSupported : True
NetworkSiteId :
PortInOrderStatus :
PstnAssignmentStatus : UserAssigned
PstnPartnerId :
PstnPartnerName :
NumberSource : Online
Example output of a phone number assigned to a Teams resource account:
TelephoneNumber : +41442005000
OperatorId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
AssignmentCategory : Primary
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
City : St Gallen
CivicAddressId :
IsoCountryCode :
IsoSubdivision : St. Gallen
LocationId :
LocationUpdateSupported : True
NetworkSiteId :
PortInOrderStatus :
PstnAssignmentStatus : VoiceApplicationAssigned
PstnPartnerId :
PstnPartnerName :
NumberSource : Online