
Microsoft Teams Direct Routing
Setting up Microsoft Teams Direct Routing
peoplefone GmbH

Heiko Hochländer
Support
Content Blocks
Set up a domain / Step 1
!!!IMPORTANT!!! If you have the new domains «[CustomerNumber].sbc01.uctrunk.com» and «CustomerNumber].sbc02.uctrunk.com», you must BOTH be added as a domain.
During the onboarding process, peoplefone will assign you a specific domain that must be configured in your O365 account. To configure it, go to your O365 portal, select Setup → Domain from the left menu, and then Add Domain.
Enter the domain you receive from peoplefone (in this example 136007.sbc01uctrunk.com).


Select “More options” and then “Add a TXT record to the domain’s DNS records.”
Select “More options” and then “Add a TXT record to the domain’s DNS records.”




Set up a domain / Step 2
Once you receive confirmation from peoplefone that TXT verification is ready, you will need to return to this configured domain and start the verification process.
In the next step, you can select "Skip." No additional services are required.


!!!IMPORTANT!!!
!!!IMPORTANT!!!
Please inform us as soon as the domain verification is complete, as we will need to remove the TXT records again, otherwise they will interfere with the IP resolution, which will result in outgoing calls not working.
Direct routing configuration
Once the domain setup is complete, you need to activate it in the next step.
This requires a user who has the Teams Admin role and a license with Teams as a product.
If you don't have such an administrator, you can add a "dummy" user to that particular domain. Once setup is complete, you can delete this "dummy" user.
IMPORTANT:
This user must have the Teams Admin role assigned or be a Global Administrator and have a Teams license.
The exact specifications for the administrator can be found in the Microsoft Teams documentation.
https://learn.microsoft.com/en-us/microsoftteams/using-admin-roles
Example creation of «dummy» user.


Administrator
Select Teams Administrator or Global Administrator.


Danger:
Please note that it may take up to 72 hours for the rules you configure on Microsoft sites to be activated.
This guide describes how to set up a simple solution where only Teams is enabled as the communications solution in your O365 account. If you have or are planning a hybrid solution with Teams and Skype for Business online or Skype on-premises, you'll need to select additional parameters.
Set up Direct Routing, voice routing policies, and users in the Teams admin dashboard
For this setup, you need to log in to your Teams admin dashboard
https://admin.teams.microsoft.com
Powershell:
Set-CsPhoneNumberAssignment -Identity [user@domain] -PhoneNumber +[ddi] -PhoneNumberType DirectRouting
Assign DDI to each user using the following instructions.


Powershell:
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="Peoplefone"}


Setting up the Voice Route
New method; only with xxxxxx.sbc01.uctrunk.com and xxxxxx.sbc02.uctrunk.com domain
Powershell:
New-CsOnlineVoiceRoute -Identity "[Name]" -NumberPattern ".*" -OnlinePstnGatewayList @{add="[CustomerID].sbc01.uctrunk.com","[CustomerID].sbc02.uctrunk.com"} -Priority 1 -OnlinePstnUsages "Peoplefone"
Compare the setup with the screenshots below to be sure




With the new method, you can now proceed directly to the step “Create the VoIP routing policies”.
The steps «Setting up the SBC» and «Creating the VoIP route» are both covered by the method above.
Setting up the SBC
old method; only with xxxxxx.uctrunk.com domain
Powershell:
New-CsOnlinePSTNGateway -Fqdn [sbc_domain] -SipSignalingPort [sbc_port] -ForwardCallHistory $true -Enabled $true -ForwardPai $true -MaxConcurrentSessions [sbc_nb_channels]
Forward P-Asserted-Identity (PAI) header->On
For details on each of these settings, see the Microsoft documentation: https://learn.microsoft.com/en-us/microsoftteams/direct-routing-connect-the-sbc#sbc-settings
Powershell:
New-CsOnlineVoiceRoutingPolicy "Peoplefone" -OnlinePstnUsages "Peoplefone"
Grant-CsOnlineVoiceRoutingPolicy -Identity "<user>" -PolicyName "Peoplefone"




IMPORTANT:
If this auto attendant or call queue is to forward to external numbers, then the resource account must be assigned the voice routing policy, just like a regular user.


How can Caller ID be used
Set up Caller ID for a user
This guide was translated from Microsoft documentation published June 27, 2018 (GA)
You can find more information at the following links.
https://learn.microsoft.com/en-us/microsoftteams/using-admin-roles
https://learn.microsoft.com/en-us/microsoftteams/direct-routing-connect-the-sbc
https://learn.microsoft.com/en-us/microsoftteams/direct-routing-enable-users
https://learn.microsoft.com/en-us/microsoftteams/direct-routing-voice-routing
https://learn.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants
Comments
Login to comment