Menu Close

Microsoft Teams

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)
  • Select “Add a TXT record instead”
  • Copy-paste this screen and send it back to peoplefone so they can setup the validation 

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 “I’ll add the DNS records myself”
  • Disable all services and click Next
  • 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

Assigning Global Admin to an account

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:

  1. Go to Users -> Manage users.
  2. Select a user.
  3. Under Account General information, select Edit.
  4. Under Assign phone number, from the Phone number type drop-down menu, select Direct Routing.
  5. Enter an assigned phone number and a phone number extension if applicable.
  6. Select Apply.

Configure the SBC: 

  1. In the left navigation, go to Voice > Direct Routing, and then click the SBCs tab.
  2. Click Add.
  3. Enter your “xxxxx.uctrunk.com” FQDN for the SBC.
  4. 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
  5. Set the Concurrent call capacity according the amount of channels you ordered
  6. When you’re done, click Save.

Create the PSTN Usage Record

  1. 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.
  2. Click Add, type in a name, and then click Apply.

Create the VoIP routing policy

  1. In the left navigation, go to Voice > Voice Routing Policies
  2. Click Add.
  3. Give the Policy a name
  4. Click on Add PSTN usage… and select the PSTN Usage record and Click Apply
  5. Click Save

Create an online voice route:

  1. In the left navigation of the Microsoft Teams admin center, go to Voice > Direct Routing, and then select the Voice routes tab.
  2. Click Add, enter a name, and then add the description.
  3. Set the priority to 1, and then set the dialed number pattern to .*
  4. Under SBCs enrolled, click Add SBCs, select the Direct Routing Trunk then click Apply.
  5. Under PSTN usage records, click Add PSTN usage, select the PSTN usage record, and then click Apply.
  6. Click Save.

Setup Resource Accounts

  1. In the left navigation of the Microsoft Teams admin center, go to Voice > Resource accounts, and then click on Add
  2. Give the resource account a username and select whether it is for an Auto attendant or Call queue
  3. Select the resource account in the list and then click on Assign/unassign
  4. Select Direct Routing as the phone number type and then enter the phone number below like with the users
  5. You can now assign the Resource account to your call queue or auto attendant to route incoming calls to them

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