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
  • 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 “Skip and do this later” as no further services must be activated for the domain.
  • 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:

Before starting this setup, verify that you have received the following information from peoplefone:
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

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:

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 “” 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:
  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
  6. After creating the Policy, you assign it to users to allow them to make outgoing calls

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?

Setting the Caller ID for a user:


This How-To is based on the Microsoft documentation version published 27.06.2018 (GA)
You can find more info on the following links: