Microsoft Teams with Direct Routing

If you are already familiar with Microsoft Teams you will know what a great multi-platform collaboration tool it is allowing secure communication and sharing between your team members. However you can now turn teams into the UC platform you need by adding the ability to dial PSTN services (Landline and mobile phones) through the Teams app.

The service is called direct routing and it allows the MS Teams platform to connect to your own VoIP provider through a SBC (Session Border Controller). This means you have more flexibility over your phone service and are not tied to Microsoft calling plans.

We can provide a fully managed per seat service or consultancy and implementation services to get you up and running with Teams Direct Routing.

Learn more about MS Teams – https://www.microsoft.com/en-gb/microsoft-365/microsoft-teams/group-chat-software

Contact Us to get started or just to talk through what we can do.

How it Works

The Direct Routing service connects the Microsoft Teams PBX to our SBC which securely connects calls to and from the VoIP provider.

Prerequisites

To use MS Teams and direct routing you will need the following, which we can provide along with upgrade and security services for Windows 10.

  • MS 365 Business Standard (or above) or MS 365 E1 (or above)
  • Business Voice (without calling plan) or Phone System License
  • SIP service (Recommend Invosys)

Fig 1. Using Invosys allows voice control through the EASY WIFI dashboard.

Getting Started

Note: If you have taken managed Microsoft 365 from EASY WIFI then we will complete these steps for you.

Step 1 – Add the domain we have assigned for the SBC to your Microsoft Account. Login to https://admin.microsoft.com and select “Show All” from the left menu. Then select “Settings” > “Domains”.

Click add domain
Provide the sub domain E.e. customer-sbc1.routing.cloud-teams.co.uk
Select add your own DNS records

Note: You may be asked to validate the domain using a TXT record. Contact EASY WIFI with the TXT contents to complete this step.

Select download zone file and send to EASY WIFI for setup

Step 2 – To complete adding the SBC to Teams a user MUST exist with the required license and using the sub domain we have just assigned. E.g. admin@customer-sbc1.routing.cloud-teams.co.uk.

Once added this can be changed back to the original user or removed and the license re-assigned.

You can either add a new admin user and assign a licence or you can use your existing licensed admin and temporarily update the account. Click the 3 dots and “Manage username and email”.
Edit the primary user email and set the suffix to the domain we just added.

Step 3 – Setup the SBC in Teams Admin. Access the Teams Admin Center https://admin.teams.microsoft.com/ and select “Voice” from the left menu and then “Direct Routing” from the sub menu.

Click add to create a new SBC.
Input the SBC details and make sure the SIP signalling port and Forward P-Asserted-Identity header are enabled and correct
Now you have added the SBC click “Voice Routes” tab and select add PSTN usage link at the top right of the screen. Then add a PSTN usage, this is used for call routing.
Now add a voice route
Under the voice route set a pattern to match dialled numbers to this route, then select the SBC and PSTN usage to use and click save.

There are many policy options for call routing but for now we will just concentrate on the core setup. For more detailed information contact your EASY WIFI account manager.

Step 4 – Setup user for Enterprise Voice using Powershell. Each user must have a phone number assigned and enterprise voice enabled to use the Teams dial pad.

Open Powershell in Administrator mode:

Make sure the following modules are installed and up to date.

install-module AzureAD
install-module AzureADPreview
install-module MSOnline
Uninstall-Module -Name MicrosoftTeams
Install-Module -Name MicrosoftTeams -Repository PSGallery

Then run the following, you will be promted for your admin login several times.

Connect-MicrosoftTeams
Set-ExecutionPolicy RemoteSigned
$credential = Get-Credential
Connect-MsolService -Credential $credential
Connect-MicrosoftTeams -Credential $credential
Import-Module SkypeOnlineConnector
$SfBoSession = New-CsOnlineSession
Import-PSSession $SfBoSession
$SfBoSession = New-CsOnlineSession –Credential $credential –OverrideAdminDomain “yourdomain.onmicrosoft.com”

Set-CsUser -Identity “” -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:+44XXXXXXXXXX

It can take a few hours to propogate but then restart your Teams app and the dial pad will be available.

Leave a Reply

Your email address will not be published. Required fields are marked *