1. FAQ
  2. Microsoft Teams

How to Manually Set Up Microsoft Teams Telephony

To manually set up Microsoft Teams Telephony, you first need to configure it through PBXAdmin, where you initiate the automatic setup and then complete it using PowerShell scripts in the 365 Admin Center.

Manual Setup of Microsoft Teams Telephony

Follow this guide to set up Microsoft Teams Telephony manually:

1. Go to PBXAdmin and select the Integration section from the left menu and click on Microsoft Teams telefoni (Microsoft Teams Telephony)

2. Select the employees you wish to activate Microsoft Teams Telephony for by checking the boxes next to their names

3. Ensure that the email addresses for the selected employees are entered

4. Click on Opdatér opsætning (Update Setup)

FAQ Punkt 1

Accept Terms and Conditions

1. A pop-up will appear where you need to accept the terms and conditions related to the setup of Microsoft Teams Telephony

2. Click on the Automatiseret opsætning (Automated Setup) button

Manuel vejledning

Email Confirmation

1. You will have the option to enter an email address to receive a confirmation after the setup is complete

2. Click on the Videre (Next) button

FAQ Punkt 3

Run Setup Update

1. After the entered information is validated, click on the Kør opsætningsopdatering (Run Setup Update) button.

FAQ Punkt 4

After this, you need to click on Opdater system (Update System) in the upper right corner of PBXAdmin

Within 15 minutes, you will receive an email at the previously entered address confirming that the setup is complete.

Manual Setup Guide

Upon receiving the confirmation email, follow this guide for the manual setup of Microsoft Teams Telephony:

1. Go to Integration, select the submenu Microsoft Teams telefoni (Microsoft Teams Telephony), and click on the Call2Teams-adminmodul (Call2Teams Admin Module) button

FAQ Punkt 5

You can generate an admin link, enter your email address to receive the link via email, or directly access the portal by clicking on Gå til Call2Teams' administrationssite (Go to Call2Teams Administration Site)

FAQ Punkt 5-2

Note: The Call2Teams admin module redirects to an external link at the domain https://admin.teams.dstny.com/. It is important to click only on the buttons indicated in this guide, as other changes may cause errors in your Microsoft Teams setup.

Call2Teams Portal Setup


In the Call2Teams portal, select the Services menu at the top and then the Teams tab.
Click the following buttons in order:

  1. Services
  2. Teams
  3. Disable Sync Enabled
    C2TM3
  4. Click on Save
  5. Use the domains for further setup in the 365 Admin Center and add the TXT values from the 365 Admin and click Save.
    C2TM4

365 Admin Center Configuration

  • Add the domains in the 365 Admin Center and assign the TXT values to the Call2Teams Customer Portal.
  • Create a new 365 user or change the login domain for an existing user to the PSTN Gateway domain you just created.
  • Open a Teams PowerShell terminal and run the cmdlet – Get-cstenant.
  • When the PSTN Gateway is present in the SIPDomains list, repeat the process for the second gateway indicated

Direct Routing Initial Setup

Run the following PowerShell cmdlets, replacing the variables below with your PSTN Gateways. In this example, the Voice Routing Policy is named PBX, but you can rename it as desired.

Set-CsOnlinePstnUsage ` 
-Identity Global ` 
-Usage @{add='PBX'}

New-CsOnlineVoiceRoutingPolicy ` 
-Identity PBX ` 
-OnlinePstnUsages PBX

New-CsOnlineVoiceRoute ` 
-Name Domain1 ` 
-Description PBX ` 
-Priority 0 ` 
-OnlinePstnGatewayList Domain1 ` 
-OnlinePstnUsages PBX ` 
-NumberPattern .*

New-CsOnlineVoiceRoute ` 
-Name Domain2 ` 
-Description PBX ` 
-Priority 1 ` 
-OnlinePstnGatewayList Domain2 ` 
-OnlinePstnUsages PBX ` 
-NumberPattern .*
$rule = New-CsVoiceNormalizationRule ` 
-Parent Global ` 
-Name PBX ` 
-Description PBX ` 
-InMemory ` 
-Pattern '^(\*[\*\d]+|[1-9]\d{0,5})$' ` 
-Translation ‘$1’ ` 
-IsInternalExtension $false

Set-CsTenantDialPlan ` 
-Identity Global ` 
-NormalizationRules @{ "add" = $rule }

User Provisioning

In the manual setup, use the Call2Teams portal to add phone numbers and create the SIP registrations you intend to associate with Teams users. Add a phone number to a Teams user and assign the Voice Routing Policy. To connect a Teams user to a phone number and enable them for calling, run the two cmdlets.

Grant-CsOnlineVoiceRoutingPolicy ` 
-Identity “Email Address” ` 
-PolicyName PBX

Set-CsPhoneNumberAssignment ` 
-Identity “Email Address” ` 
-PhoneNumber 'PSTN Number’ ` 
-PhoneNumberType DirectRouting

If the Teams user attempts to make a call, it will route to the Call2Teams service, and if the phone number is associated with a SIP registration in the portal, the call will be forwarded to PBX/PSTN.

Remove Users from the Service

To remove users from the service, uncheck the box next to the user in PBXAdmin.

  • Go to the Integration section in the left menu, click on the Microsoft Teams telefoni (Microsoft Teams Telephony) submenu, and uncheck the boxes next to the employees you wish to deactivate Microsoft Teams Telephony for.
  • Click on Opdatér opsætning (Update Setup) and then Opdater system (Update System) in the upper right corner of PBXAdmin.
  • To remove all configuration applied to a Teams user, run the following cmdlets using Teams PowerShell:

Remove-CsPhoneNumberAssignment -Identity [email] -PhoneNumber "PSTN number" -PhoneNumberType DirectRouting
Grant-CsOnlineVoiceRoutingPolicy -Identity [email] -PolicyName null