How-to configure direct routing
Set up of the domain, step 1
- During the onboarding process, peoplefone will assign you a specific domain that must be configured in your O365 account.
To configure them, go to your O365 portal, select on the left menu Setup → Domain and select Add domain
- Enter the domain that you received from peoplefone (in this example 31857.uctrunk.com)
![](https://support.peoplefone.com/wp-content/uploads/2024/03/image-7.png)
- Select “Add a TXT record instead”
![](https://support.peoplefone.com/wp-content/uploads/2024/03/image-8.png)
- Copy-paste this screen and send it back to peoplefone so they can setup the validation
![](https://support.peoplefone.com/wp-content/uploads/2024/03/image-9.png)
Set up of the domain, step 2
- When you receive the confirmation that the TXT verification is ready from peoplefone, you must go back to this domain set up and start the verification process.
- After that you must select “Skip and do this later” as no further services must be activated for the domain.
![](https://support.peoplefone.com/wp-content/uploads/2024/03/image-12.png)
- The domain should now be ready
Activation of the domain
- Once the domain setup’s are completed, the next step is to activate them.
For this, we will need to add a “dummy” user (with a E3 or E5 license) to this specific domain, not the default one.
When the setup is completed you can delete this “dummy” user. IMPORTANT: This user must have the global admin role
![](http://support.peoplefone.ch/wp-content/uploads/2020/06/08_domain_activation-593x1024.png)
![](https://support.peoplefone.com/wp-content/uploads/2020/07/image.png)
Direct Routing Configuration
Please note, that enabling the rules you configure on Microsoft’s pages via PowerShell can take up to 72 hours.
This How-To covers the setup for a simple solution where only Teams is enabled as communication solution in your O365 account.
If you have or plan to have a hybrid solution with Teams and Skype for Business online or Skype, then you will need to select more parameters.
More information on:
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-plan
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-configure
Before starting this setup, verify that you have received the following information from peoplefone:
sbc_port
sbc_domain
sbc_nb_channels (voice channels)
In the following setup, we will use as example: (it is possible that the sbc_port is the same)
sbc_port: 6000
sbc_domain: 31857.uctrunk.com
Setup the Direct Routing, Voice Routing Policies and User in the Teams Admin dashboard
For this setup you will need to login to your Teams Admin dashboard: https://admin.teams.microsoft.com/
Assign DDI to each user with these instructions:
- Go to Users -> Manage users.
- Select a user.
- Under Account General information, select Edit.
- Under Assign phone number, from the Phone number type drop-down menu, select Direct Routing.
- Enter an assigned phone number and a phone number extension if applicable.
- Select Apply.
Configure the SBC:
- In the left navigation, go to Voice > Direct Routing, and then click the SBCs tab.
- Click Add.
- Enter your “xxxxx.uctrunk.com” FQDN for the SBC.
- Configure the following settings for the SBC, Port->6000, Forward Call History->On, Forward PAI Header->On
For details on each of these settings, see Microsoft Documentation: https://learn.microsoft.com/en-us/microsoftteams/direct-routing-connect-the-sbc#sbc-settings - Set the Concurrent call capacity according the amount of channels you ordered
- When you’re done, click Save.
![](https://support.peoplefone.com/wp-content/uploads/2023/03/directroutigntrunk.png)
Create the PSTN Usage Record
- In the left navigation of the Microsoft Teams admin center, go to Voice > Direct Routing, and then in the upper-right corner, select Manage PSTN usage records.
- Click Add, type in a name, and then click Apply.
![](https://support.peoplefone.com/wp-content/uploads/2023/03/image.png)
Create the VoIP routing policy
- In the left navigation, go to Voice > Voice Routing Policies
- Click Add.
- Give the Policy a name
- Click on Add PSTN usage… and select the PSTN Usage record and Click Apply
- Click Save
- After creating the Policy, you assign it to users to allow them to make outgoing calls
![](https://support.peoplefone.com/wp-content/uploads/2023/03/image-1.png)
Create an online voice route:
- In the left navigation of the Microsoft Teams admin center, go to Voice > Direct Routing, and then select the Voice routes tab.
- Click Add, enter a name, and then add the description.
- Set the priority to 1, and then set the dialed number pattern to .*
- Under SBCs enrolled, click Add SBCs, select the Direct Routing Trunk then click Apply.
- Under PSTN usage records, click Add PSTN usage, select the PSTN usage record, and then click Apply.
- Click Save.
![](https://support.peoplefone.com/wp-content/uploads/2023/03/image-2.png)
Setup Resource Accounts
- In the left navigation of the Microsoft Teams admin center, go to Voice > Resource accounts, and then click on Add
- Give the resource account a username and select whether it is for an Auto attendant or Call queue
- Select the resource account in the list and then click on Assign/unassign
- Select Direct Routing as the phone number type and then enter the phone number below like with the users
- You can now assign the Resource account to your call queue or auto attendant to route incoming calls to them
![](https://support.peoplefone.com/wp-content/uploads/2023/03/image-21.png)
Other Information
How can a caller ID be used in your organization?
https://docs.microsoft.com/en-us/SkypeForBusiness/what-are-calling-plans-in-office-365/how-can-caller-id-be-used-in-your-organization
Setting the Caller ID for a user:
https://docs.microsoft.com/en-us/skypeforbusiness/what-are-calling-plans-in-office-365/set-the-caller-id-for-a-user
References
This How-To is based on the Microsoft documentation version published 27.06.2018 (GA)
You can find more info on the following links:
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