Microsoft Teams Integration
You can use the “Direct Routing” feature of Microsoft Teams to integrate with the Vodia PBX, explained on Microsoft® site here:
https://docs.microsoft.com/en-US/microsoftteams/direct-routing-configure
Especially “Plan Direct Routing” and “Configure Direct Routing”. This document presents it in a single step by step process to present it in a simplified way for integrating with the Vodia PBX, including the steps required on the Vodia PBX side.
Pre-Requisites
- Microsoft Teams Account: One or more users with licenses that support Direct Routing (e.g., Microsoft Teams Phone Standard, E3 with Phone System add-on, E5, or Business Voice).
- Calling Policy: Ensure "Prevent toll bypass and send calls through the PSTN" is set to Off in the user's calling policy (Teams Admin Center → Voice → Calling policies).
- Vodia PBX
- Version 69.5.17+
- Hosted PBX edition or collaboration license from Vodia
- Tenant with a valid TLS certificate
Network: Public IP address recommended for easier setup. Private IP addresses require proper firewall configuration and additional PBX settings.
Vodia PBX configuration
- Create a tenant with a Fully Qualified Domain Name (FQDN) that will serve as the SBC for Teams enrollment.
- Version 69
- Version 70


- Ensure the tenant has a valid certificate.
- Version 69
- Version 70


- Create a Teams trunk using Vodia's predefined template, remembering to set the country code.
- Version 69
- Version 70


- Version 69
- Version 70


-
Create a generic SIP trunk for routing inbound and outbound calls for Teams users.

-
Configure the dial plan as depicted in the screenshot and assign it as default dialplan within the tenant's general settings. This is where you can normalize numbers (e.g., remove the '+' sign). Importantly, note the entry labeled
[teams]for the Teams trunk, as this is crucial for proper routing of Teams calls. This entry should have the highest preference.
- Version 69
- Version 70


- Create extensions and assign a Teams number to each. Remember to enable the Include Microsoft Teams when calling the extension setting. For call queues make sure you turn on the setting Include calling teams extensions in queue as queue agents under tenant general settings.
You must ensure the number in the Teams number field exactly matches the number configured in Teams (e.g., +500 in both places). This exact match is required so that when Teams routes a call to the PBX, it correctly associates the call with this extension and uses its dialplan and Caller ID.
- Version 69
- Version 70


We recommend using your existing extension numbers as the Teams numbers. Additionally, map any external Direct Inward Dialing (DID) numbers to their corresponding extensions within your Vodia PBX.
Microsoft Teams Direct Routing Configuration Guide
You could use the vodia-teams NPM tool to configure the Teams tenant for direct routing.
All PowerShell equivalent commands are provided for each step where applicable. sbc.vodia-teams.com is an example tenant
Prerequisites
- Global Administrator or Teams Administrator access
- Domain ownership and DNS access
- SBC FQDN (e.g., sbc.vodia-teams.com)
- Valid TLS certificate on SBC