In this guide, you will setup a Direct Routing Connection between your Microsoft Teams Account and our SBC.
Prerequisite Licensing for Direct routing.
One of the below licenses will be required to activate MSFT direct routing.
• Business Basic + 365 Business voice without calling plan
• Business Standard + 365 Business voice without calling plan
• Business Premium + 365 Business voice without calling plan
• Office 365 E1 + Phone System
• Office 365 E3 + Phone System
• Office 365 E5
• Microsoft 365 E1 + Phone System
• Microsoft 365 E3 + Phone System
• Microsoft 365 E5
Create a unique subdomain name for every customer.
In the below example, a subdomain has been created with the identity ck-110999.mstsbc.net (where 110999 is the customer account number) within the tenant that you already own.
Add a subdomain to the customer tenant and verify it
In Microsoft 365 admin centre, go to Settings > Domains > Add domain
The below is an example only , use the FQDN provided by the CK team similar to the below format ck-110999.mstsbc.net
The FQDN has never been registered in the tenant. In the next step, verify the domain.
Select Add a TXT record to the domain's DNS record
Click Next
Note the TXT value generated to verify the domain name.
IMPORTANT Email the TXT value to the CK Team, then wait for confirmation that TXT value has been added.
Click Continue this will take you to the final page.
Untick Exchange and Exchange online protection box
Click Continue
It is recommend to create a new user (Temporary User) to register & activate the subdomain.
To complete this go to Users> Active Users > Add a user (Using the new domain)
The below can be completed inthe Microsoft Teams admin centre or PowerShell.
In the PowerShell session run the following command:
New-CsOnlinePSTNGateway -Identity <SBC FQDN> -SipSignalingPort <SBC SIP Port>
-MaxConcurrentSessions <N> -Enabled $true
Where:
• <SBC FQDN> is the SBC FQDN.
• <SBC SIP Port> is the TLS SIP port of the SBC.
• <N> is the max number of concurrent sessions the SBC can handle (Microsoft's default number is 100) we have put 10.
Example:
New-CsOnlinePSTNGateway -Identity xxx-xxx.mstsbc.net -SipSignalingPort 5061 - MaxConcurrentSessions 10 -Enabled $true
You may complete this also in Teams Admin Centre, this is how it looks in Admin Centre:
In the PowerShell session run the following commands:
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="Rout to SBC"}
In the rout description field, you can put any text instead of "Rout to SBC".
New-CsOnlineVoiceRoutingPolicy -Identity "SBC Only" -OnlinePstnUsages "Route to SBC"
In the rout type description field, you can add any text instead of "SBC Only".
New-CsOnlineVoiceRoute -id "<ROUT NAME>" -NumberPattern ".*" -OnlinePstnGatewayList
<SBC FQDN> -OnlinePstnUsages "Rout to SBC"
Where:
<SBC FQDN> is the SBC FQDN;
<ROUT NAME> is the name of the rout, for example, “Rout 1”.
Example:
New-CsOnlineVoiceRoute -id "Rout 1" -NumberPattern ".*" -OnlinePstnGatewayList
ck-110999.mstsbc.net - OnlinePstnUsages "Rout to SBC"
To add the phone number to Teams user run the following commands:
Get-CsOnlineUser -Identity "<User name>" | fl RegistrarPool
Where: <User name> is the name of the user followed by the domain name.
Example: example@yourdomain.com
Grant- CsOnlineVoiceRoutingPolicy -Identity "<User name>" -PolicyName "SBC Only"
Then run the following command with the phone number:
Set-CsUser -Identity "<User name>" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true - OnPremLineURI tel:<E.164 phone number>
Example: Get-CsOnlineUser -Identity "example@yourdomain.com" | fl RegistrarPool
Grant-CsOnlineVoiceRoutingPolicy -Identity "example@yourdomain.com" -PolicyName "SBC Only"
Set-CsUser -Identity "example@yourdomain.com" -EnterpriseVoiceEnabled $true - HostedVoiceMail$true -OnPremLineURI tel: +61XXXXXXX
Enter the E.164 formatted number provided by the team
• Go to Voice
• Dial Plans and add new dial plan.
• Add new Normalization rule.
• Enter the Name of the rule
• Select Advanced radio button.
• Configure IF condition field.
• The number dialed matches this regular expression as shown: ^(\d*)$
• Configure Then do this field.
• Translate the number based on this regular expression as shown: $1