This post is part of a short series that will explore Microsoft Teams Direct Routing; it’s similar to my previous series, but this time, we’re going to use a Ribbon Edge SBC, specifically a SWe Lite.
Pre-requisites
Before proceeding:
- Ensure you’ve prepared the environment; see Part 1 for details of the setup in my environment
- Ensure you’ve configured the SBC; see Part 2 for details of this
Connect to Microsoft Teams
- Install the Teams PowerShell Module by entering the following at a PowerShell prompt:
Install-Module -Name Microsoft Teams
- Enter Y to install the NuGet provider:
- Enter Y to install the module:
- Connect to Microsoft Teams by entering the following:
Connect-MicrosoftTeams
- Enter your credentials at the Sign in prompt and click Next:
- Enter your password and click Sign in:
- The cmdlet should complete successfully and a Tenant ID shown:
Configure Microsoft Teams Enterprise Voice
-
Note: the following assumptions are made for this section:
- A user called User01 is defined in Azure AD
- User01 is licensed for Microsoft Teams and Microsoft Phone System:
-
Define the SBC
-
At the PowerShell prompt, enter the following:
New-CsOnlinePSTNGateway -Fqdn sbc01.<Domain> -Enabled $true -SipSignalingPort 5061 -MaxConcurrentSessions 5
-
-
Configure PSTN Usages
- At the PowerShell prompt, enter the following:
Set-CsOnlinePstnUsage -Identity “Global” -Usage @{add=”UK-All”}
-
Configure Voice Routes
- At the PowerShell prompt, enter the following:
New-CsOnlineVoiceRoute -Name “UK-All” -OnlinePstnGatewayList “sbc01.<Domain>” -NumberPattern “.*” -OnlinePstnUsages “UK-All”
-
Configure a Voice Routing Policy
- At the PowerShell prompt, enter the following:
New-CsOnlineVoiceRoutingPolicy -Identity “UK” -OnlinePstnUsages “UK-All”
-
Assign the Voice Routing Policy to a test user
- At the PowerShell prompt, enter the following:
Grant-CsOnlineVoiceRoutingPolicy -PolicyName “UK” -Identity “User01@<Domain>”
-
Enterprise Voice-enable the user and configure a phone number
- At the PowerShell prompt, enter the following:
Set-CsUser -Identity “User01@<Domain>” -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI “tel+<TelephoneNumber>
Validation
-
Confirm ITSP Registration [this is likely not applicable to your environment, but is included here for completeness]
- Navigate to SIP on the Settings tab and select click Contact Registrant Table > ITSP Contact Registrant Table
- Click the Registration Status link
- The Registration Status should be Registered
-
- If the SBC is not registered to the ITSP, review the Remote Authorization and Remote Registrant Table configuration
-
Confirm the Microsoft Teams and ITSP SIP trunks are up
- Navigate to Signaling Groups on the Setup tab; both signalling groups should be up:
-
Review the SBC status in the Teams Admin Center
- Launch the Teams Admin Center and navigate to Voice > Direct Routing; the SBC should show Active for the TLS connectivity status and the SIP options status:
-
Perform an outbound call
- Launch the Microsoft Teams client, select Calls and enter a PSTN number:
- Click Call; the call should setup and two-way audio heard
- You should also be able to make an inbound call; dial the phone number assigned to the Microsoft Teams user from the PSTN and a toast similar to the following should appear:
- Answer the call and two-way audio should be heard
That’s it for this post; in Part 4, we’ll take an in-depth look at media.
Thanks for reading!