Direct Routing Plan
In brief
The page adds guidance on when to choose Direct Routing and using it alongside other Teams Phone connectivity options. It also revises SBC, telephony trunk, domain, and architecture descriptions while removing the onboarding table and quick-links section.
What Teams admins need to know
Administrators planning Direct Routing deployments should use the revised guidance and terminology when assessing connectivity, SBC, trunk, and domain requirements.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Tip
If you're evaluating Microsoft Teams Phone connectivity options, compare Direct Routing with Microsoft Calling Plan,Plans, Operator Connect, and Teams Phone Mobile before choosing your deployment model.
Deployment overview
| 5 | Configure voice routing and assign users. |
| 6 | Validate inbound and outbound calling before production rollout. |
Onboarding
Follow the recommended onboarding sequence below.
Quick links
Why choose Direct Routing?
Direct Routing is a good fit for organizations that:
- Have an existing PSTN carrier relationship.
- Require integration with third-party PBXs or analog devices.
- Need advanced voice routing capabilities.
- Want greater control over their telephony infrastructure.
- Support complex or multinational voice deployments.
Organizations can also deploy Direct Routing alongside Microsoft Calling Plan,Plans, Operator Connect, and Teams Phone Mobile within the same Microsoft Teams tenant.
Deployment overview
| 5 | Configure voice routing and assign users. | | 6 | Validate inbound and outbound calling before production rollout. |
Direct Routing architecture
The following diagram shows how Direct Routing connects Microsoft Teams Phone to your existing telephony infrastructure.
Microsoft Teams
+---------------------------+
| Teams Phone |
+-------------+-------------+
|
Direct Routing
|
+---------------+---------------+
| Certified SBC |
+---------------+---------------+
|
+-----------------+----------------+
| |
+-----------+-----------+ |+-------+--------+
| Existing PSTN Carrier | | Existing PBX |
+-----------+-----------+ | Analog Devices |
| SIP Trunks |
+-------+--------+
Infrastructure requirements
| Infrastructure requirement | Requirement |
|---|---|
| Session Border Controller (SBC) | A |
| Telephony trunks | One or more |
| Microsoft 365 organization | Microsoft 365 tenant hosting Teams users. |
| User registrar | Users must be homed online in Microsoft 365. |
| Domains | One or more |
| Public IP | |
| SBC FQDN | An FQDN for the SBC, where the domain portion of the FQDN is one of the registered |
| Public DNS | Public DNS entry for the SBC FQDN. |
| Public certificate | |
| Direct Routing connection points | The connection points for Direct Routing are the following three FQDNs:sip.pstnhub.microsoft. – Global FQDN, must be tried first.sip2.pstnhub.microsoft. – Secondary FQDN, geographically maps to the second priority region.sip3.pstnhub.microsoft.com – Tertiary FQDN, geographically maps to the third priority region.For information on configuration requirements, see SIP Signaling: FQDNs. |
| Firewall | |
| Media transport | TCP/RTP/SAVP and UDP/RTP/SAVP |
Licensing requirements
For additional guidance, see Audio Conferencing with Direct Routing for GCC High and DoD.
Unplanned call escalation and Audio Conferencing license
A Teams user can start a one-on-one Teams-to-PSTN or Teams-to-Teams call and add a PSTN participant to it. The path that the call takes depends on whether the user who escalates the call has a Microsoft Audio Conferencing license assigned or not:
- If the Teams user who escalates the call has a Microsoft Audio Conferencing license assigned, the escalation happens through the Microsoft Audio Conferencing service. The remote PSTN participant who is invited to the existing call receives a notification about the incoming call, and sees the number of the Microsoft bridge assigned to the Teams user who initiated the escalation.
- If the Teams user who escalates the call doesn't have the Microsoft Audio Conferencing license assigned, the escalation happens through a Session Border Controller connected to the Direct Routing interface. The remote PSTN participant who is invited to the call receives a notification about the incoming call and sees the number of the Teams user who initiated the escalation. The specific SBC used for the escalation is defined by the routing policy of the user.
You must ensure the following:
- CsOnlineVoiceRoutingPolicy is assigned to the user.
- Allow Private Calling is enabled at the tenant level for Microsoft Teams.
Direct Routing with Calling PlanPlans and Operator Connect
Organizations can combine Direct Routing also supports users who are licensed for Microsoft Calling Plans or assigned an Operator Connect phone number. Teams Phone users with a Calling Plan or Operator Connect can route some calls through Direct Routing.
Mixing Calling Plans or Operator Connect and Direct Routing connectivity for the same user is optional, but could be useful. For example, when the user is assigned a Microsoft Calling Plan or Operator Connect.Connect number but wants to route some calls internally using the SBC.
Call routing follows a defined order of evaluation. Teams first evaluates Direct Routing voice routes associated with the user’s Online Voice Routing Policy. When no applicable Direct Routing route matches the called number, Teams checks whether the user has Calling Plan or Operator Connect available and attempts to complete the call using that connectivity.
A common deployment pattern is:
- Microsoft Calling
PlanPlans or Operator Connect for PSTN calling. - Direct Routing for calls to third-party PBXs.
- Direct Routing for analog devices.
- Direct Routing for specialized routing scenarios.
This hybrid deployment allows organizations to optimize call routing while maintaining existing telephony investments.
For more information about Teams Phone licensing, see Microsoft Teams add-on licensing.
Supported endpoints
Direct Routing supports:
- Teams-certified phones
- Common Area Phones
For Common Area Phones, a Calling PlanPlans license isn't required when Direct Routing is used. For more information, see Set up common area phones for Microsoft Teams.
SBC domain names
| contoso.com | Yes | sbc1.contoso.com | | contoso.onmicrosoft.com | No | Not supported |
If you create a new subdomain such as sip.contoso.com,subdomain, you must first register that domain in Microsoft 365 before pairing the SBC. For example, if contoso.com is registered in your tenant and you want to use sbc1.sip.contoso.com , first register sip.contoso.com .
Before you can pair an SBC with the name sbc1.sip.contoso.com, you must register the domain name sip.contoso.com in Domains in your tenant. If you try pairing an SBC with sbc1.sip.contoso.com before registering the domain name, you'll get the following error: Can't use the "sbc1.sip.contoso.com" domain as it wasn't configured for this tenant.
After you add the domain name, you need to create a user with UPN [email protected] and assign a Teams license. It may take up to 24 hours to fully provision the domain name after it's added to Domains of your tenant, to create a user with a new name, and to assign a license to the user.
It's possible that a company might have several SIP address spaces in one tenant. For example, a company might have contoso.com as a SIP address space and fabrikam.com as the second SIP address space. Some users have addresses such as [email protected] ; others have addresses such as [email protected] .
The SBC only needs one FQDN and can service users from any address space in the paired tenant. For example, an SBC with the name sbc1.contoso.com can receive and send the PSTN traffic for users with addresses [email protected] and [email protected] as long as these SIP address spaces are registered in the same tenant.
Note
SBC FQDN in Azure Communication Services direct routing must be different from SBC FQDN in Teams Direct Routing.
Public trusted certificate for the SBC
Microsoft recommends requesting a certificate by generating a Certificate Signing Request (CSR) directly from your SBC. For specific instructions on generating a CSR for an SBC, see the interconnection instructions or documentation provided by your SBC vendors.
The certificate should:
- Be signed by a Certificate Authority included in the Microsoft Trusted Root Program.
- Include the Server Authentication EKU.
Note
Most Certificate Authorities (CAs) require the private key size to be at least 2048 bits. Keep this in mind when generating the CSR.
Wildcard certificates are supported when they comply with RFC 2818.RFC HTTP Over TLS. An example would be using *.contoso.com, which would match the SBC FQDN sbc.contoso.com, but wouldn't match with sbc.test.contoso.com.
Direct Routing SIP interface will only trust certificates that are signed by Certificate Authorities (CAs) that are part of the Microsoft Trusted Root Certificate Program. Make sure that a CA that is part of the program signs your SBC certificate. Also make sure that the Extended Key Usage (EKU) extension of your certificate includes Server Authentication. For more information, see Program Requirements - Microsoft Trusted Root Program.
For Direct Routing in Office 365 GCCH and DoD environments, the following root certificate authorities are currently supported:
- DigiCert High Assurance EV Root CA
- DigiCert Global Root G2
Customers can request addition CAthat additional CAs be added to the supported list viathrough their regular support channel.
Note
If Mutual TLS (MTLS) support is enabled,enabled for the Teams connection on the SBC, then you must install all required Microsoftthe CAs listed under the 'Root Certificate Authorities' section in the Azure Certificate Authority details page in the SBC Trusted Root Store of the Teams TLS context. (This is because the Microsoft service certificates use these root certificates.) To download the root certificates, see Microsoft 365 Encryption chains. For more information, see Office TLS Certificate Changes.
To verify that the MTLS connection originates from Teams infrastructure, the SBC should be configured to implement the following checks on the SBC.
Continue with:Teams server-side certificate:
SIP signalingVerify that the certificate chain leads to one of the listed root CAs under the 'Root Certificate Authorities' section in Azure Certificate Authority details page.Media trafficSupported Session Border Controllers (SBCs)Support boundariesCheck that the certificate "Subject Alternative Name" includes "sip.pstnhub.microsoft.com".
SIP signaling
Direct Routing supports is offered in the following environments:
- Microsoft
365, Office 365,365 or Office 365 - Office 365 GCC
- Office 365 GCC High
- Office 365 DoD
For more information about government environments, such as GCC, GCC High, and DoD environments. Each environment uses dedicated SIP connection points to establish secure signaling between your Session Border Controller (SBC) and Microsoft Teams.DoD, see Office 365 and US Government environments.
The following sections describe the required Fully Qualified Domain Names (FQDNs), ports, and failover behavior used for Direct Routing.
| Priority | FQDN | Purpose |
|---|---|---|
| Primary | sip.pstnhub.microsoft.com |
|
| Secondary | sip2.pstnhub.microsoft.com |
|
| Tertiary | sip3.pstnhub.microsoft.com |
FQDNs in caseIf your SBC uses IPv6IPv6, configure the following FQDNs:
| Priority | IPv6 FQDN | Purpose |
|---|---|---|
| Primary | sip.ipv6.pstnhub.microsoft.com |
|
| Secondary | sip2.ipv6.pstnhub.microsoft.com |
|
| Tertiary | sip3.ipv6.pstnhub.microsoft.com |
These FQDNs provide:
- Geographic routing to the nearest Microsoft datacenter.
- Automatic failover during service interruptions. For more information, see Failover mechanism.
- High availability for SIP signaling.
The FQDNs resolve to Microsoft IP ranges:
Important
Configure your SBC and firewall to allow signaling traffic to and from all Microsoft Teams IP ranges, not only the addresses returned from DNS queries.
Note
Inbound SIP traffic to the SBCs from Teams SIP endpoints can originate from any IPs in these subnets--not only from IPs that resolve from the previously mentioned FQDNs. For more information on how to set up SIP peering, see your SBC documentation.
SIP signaling: GCC High
sip.pstnhub.gov.teams.microsoft.us
The FQDN sip.pstnhub.gov.teams.microsoft.us is resolved to an IP address from the following subnet: 52.127.88.0/21 To allow incoming and outgoing traffic to and from the addresses for signaling, you need to open ports for all these IP addresses in your firewall.
SIP signaling: DoD
For Office 365 DoD, use:
sip.pstnhub.dod.teams.microsoft.us
The FQDN sip.pstnhub.dod.teams.microsoft.us is resolved to an IP address from the following subnet: 52.127.64.0/21 To allow incoming and outgoing traffic to and from the addresses for signaling, you need to open ports for all these IP addresses in your firewall.
Because these environments operate within dedicated Microsoft Government clouds, secondary and tertiary FQDNs aren't required.
SIP signaling ports
Direct Routing requires the following SIP/TLS ports.
| Traffic | From | To | Source port | Destination |
|
|---|---|---|---|---|---|
| SIP/TLS | SBC | 1024 – 65535 | Defined on the SBC (For Office 365 GCC High/DoD only port 5061 must be used) | ||
| SIP/TLS | SIP Proxy | 5061 |
SIP signaling failover
Microsoft automatically directsTo resolve sip.pstnhub.microsoft.com, the SBC tomakes a DNS query. Based on the nearest healthy datacenter.SBC location and the datacenter performance metrics, the primary datacenter is selected.
If the primary region becomes unavailable:
Microsoft redirects trafficdatacenter experiences an issue, the SBC tries sip2.pstnhub.microsoft.com, which resolves to thesecondary region.If necessary, traffic is redirected tosecond assigned datacenter. In the rare case that datacenters in two regions aren't available, the SBC retries the last FQDN (sip3.pstnhub.microsoft.com), which provides the tertiaryregion.Existing resiliency mechanisms help maintain service continuity.
No manual administrator intervention is required.The following table summarizes the relationships between primary, secondary, and tertiary datacenters:
| The primary datacenter (sip.pstnhub.microsoft.com) | EMEA | NOAM | APAC | OCEA |
|---|---|---|---|---|
| The secondary datacenter (sip2.pstnhub.microsoft.com) | NOAM | EMEA | NOAM | APAC |
| The tertiary datacenter (sip3.pstnhub.microsoft.com) | APAC | APAC | EMEA | NOAM |
Media traffic
Media processor IP ranges
Microsoft 365 / Office 365 / Office 365 GCC environments
Allow media traffic for:
- 52.112.0.0/14 (IP addresses from 52.112.0.0 to 52.115.255.255)
- 52.120.0.0/14 (IP addresses from 52.120.0.0 to 52.123.255.255)
In case of IPv6 allow media traffic for:
- 2603:1063:400::/40
- 2603:1063:100::/40
Office 365 GCC High environment
- 52.127.88.0/21
Office 365 DoD environment
- 52.127.64.0/21
The following ports are used for media.
| Traffic | From | To | Destination port | |
|---|---|---|---|---|
| UDP/SRTP | Media Processor | SBC | Defined on the SBC | |
| UDP/SRTP | SBC | Media Processor | 3478-3481 and 49152 – 53247 |
Tip
Media processor locations
MicrosoftMedia traffic flows through components called media processors. Media processors are deployed globally to optimize call quality and reduce latency.
Regions include:placed in the same datacenters as SIP proxies as follows:
North AmericaNOAM (US South Central, two in US West and US East datacenters)- Europe (UK South, France Central, Amsterdam, and Dublin datacenters)
- Asia (Singapore datacenter)
- Japan (JP East and West datacenters)
- Australia (AU East and Southeast datacenters)
Latin AmericaLATAM (Brazil South)
Media is routed to the closest available Microsoft datacenter whenever possible.
Supported media codecs
Leg between SBC and Microsoft Cloud Media Processor
Applies with and without Media Bypass.
The Direct Routing interface supports the following codecs on the leg between the Session Border Controller (SBC) and Microsoft Teams and the SBC.Cloud Media Processor:
- SILK
- G.711
- G.729
- AMR-WB (non-bypass only)
Administrators can prioritize or restrict codecsforce use of a specific codec on the SBC according to organizational requirements.Session Border Controller by excluding undesirable codecs from the offer.
Leg between Microsoft Teams client and Cloud media processor
Applies only when Media Bypass is disabled. With Media Bypass, the media flows directly between the Teams client and the SBC.
On the leg between the Cloud media processor and the Teams client, either SILK or G.722 is used. The codec choice on this leg is based on Microsoft algorithms, which take into consideration multiple parameters.
Note
Microsoft doesnMedia re-targeting isn't support mediasupported. During a call, if a SIP re-targeting during an activeINVITE offer from the Direct Routing call.SBC contains a new media IP address, port, or transport, media isn't sent from PSTN Hub to the new target. Per RFC 3264 8.3.1, media re-target support is optional (not required).
Supported Session Border Controllers (SBCs)
Only Microsoft-Microsoft only supports certified SBCs are supportedto pair with Direct Routing.
Because Enterprise Voice is critical for businesses, Microsoft validates certified SBCs through interoperability testingruns intensive tests with the selected SBCs, and works with the SBC vendors to ensure compatibility with Microsoftthe two systems are compatible.
Devices that are validated are listed as Certified for Teams Phone.Direct Routing. The certified devices are guaranteed to work in all scenarios.
For the latest list of certified devices, see:
more information about supported SBCs, see Session Border Controllers certified for Direct Routing.
Support boundaries
Microsoft only supports Teams Phone with Direct Routing only when used with certified SBCsdevices. If there are used.
If issues occur:
Contactissues, you must contact your SBCvendor.Thevendorinvestigates's customer support first. If needed, theissue.If necessary, theSBC vendor escalates the issue to Microsoft throughestablished supportinternal channels.
Customers should provide theTo escalate SBC-related issues to Microsoft support, customers must present an SBC vendor investigation report when opening Microsoft support requests.report. This document, containing the vendor's ticket reference number, will be supplied by their certified SBC vendor.
Microsoft may declinereserves the right to reject support requests involvingcases where a non-certified SBCs.device is connected to Teams Phone through Direct Routing. If Microsoft determines that a customer's Direct Routing issue is with a vendor's SBC device, the customer needs to re-engage the SBC vendor for support.
Best practices
- Configure all Microsoft-required firewall rules.
- Monitor call quality after deployment.
- Test failover scenarios before production rollout. \ No newline at end of file
- Review Microsoft Teams network planning guidance before deployment.
Verify your deployment
After completing configuration:
Verify that the SBC reports a healthy connection to Microsoft Teams.Validate inbound PSTN calling.Validate outbound PSTN calling.Verify emergency calling functionality if configured.Test failover between SIP connection points.Confirm voice routing policies are assigned correctly.Validate call quality across representative user scenarios.
Example deployment
Many organizations deploy Direct Routing alongside other Microsoft Teams PSTN connectivity options.
For example:
This flexible approach allows organizations to optimize PSTN connectivity for different user populations while maintaining a single Microsoft Teams tenant.
\ No newline at end of file
\ No newline at end of file
@@ -46,8 +46,12 @@ item_type: Content source_path: Teams/direct-routing-plan.md cmProducts: - https://authoring-docs-microsoft.poolparty.biz/devrel/63959238-cb90-4871-a33d-4a5519097e47+- https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/b5267373-9b61-4d5a-a4ac-5d03f8f8800f+- https://authoring-docs-microsoft.poolparty.biz/devrel/1dd701e0-441f-4b0a-9806-aa47decc4e35 spProducts: - https://authoring-docs-microsoft.poolparty.biz/devrel/78d87f42-5582-4a6b-90be-7db2f12b34e6+- https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/bcd4f3ef-c612-47a8-aa4a-7f9bedc3a98c+- https://authoring-docs-microsoft.poolparty.biz/devrel/0a2fc935-5977-4aa6-9f55-0be03bd2acb8 platformId: 32c82af6-0bf7-908c-6b0f-2fe82660f4ca --- @@ -61,7 +65,19 @@ For configuration instructions, see [Configure Direct Routing](direct-routing-co
Tip
-If you're evaluating Microsoft Teams Phone connectivity options, compare Direct Routing with Microsoft Calling Plan, Operator Connect, and Teams Phone Mobile before choosing your deployment model.
+If you're evaluating Microsoft Teams Phone connectivity options, compare Direct Routing with Microsoft Calling Plans, Operator Connect, and Teams Phone Mobile before choosing your deployment model.
+
+## Why choose Direct Routing?
+
+Direct Routing is a good fit for organizations that:
+
+- Have an existing PSTN carrier relationship.
+- Require integration with third-party PBXs or analog devices.
+- Need advanced voice routing capabilities.
+- Want greater control over their telephony infrastructure.
+- Support complex or multinational voice deployments.
+
+Organizations can also deploy Direct Routing alongside Microsoft Calling Plans, Operator Connect, and Teams Phone Mobile within the same Microsoft Teams tenant.
## Deployment overview
@@ -76,45 +92,6 @@ Planning a Direct Routing deployment typically includes the following steps. | 5 | Configure voice routing and assign users. |
| 6 | Validate inbound and outbound calling before production rollout. |
-## Onboarding
-
-Follow the recommended onboarding sequence below.
-
-| Step | Action |
-| --- | --- |
-| 1 | Review infrastructure, networking, and licensing requirements. |
-| 2 | Select a Microsoft-certified SBC. |
-| 3 | Configure DNS, certificates, firewall rules, and connectivity. |
-| 4 | Connect the SBC to Microsoft Teams. |
-| 5 | Configure voice routing and dial plans. |
-| 6 | Assign Teams Phone licenses and voice routing policies. |
-| 7 | Validate user calling and expand deployment. |
-
-## Quick links
-
-| Resource | Description |
-| --- | --- |
-| **Configure Direct Routing** | Complete Direct Routing deployment after planning. |
-| **PSTN connectivity options** | Compare Direct Routing with Calling Plan, Operator Connect, and Teams Phone Mobile. |
-| [Session Border Controllers certified for Direct Routing](direct-routing-border-controllers) | View Microsoft-certified SBCs. |
-| **Plan your Teams voice solution** | Understand Teams Phone deployment options. |
-| **Manage Teams phone numbers** | Assign and manage phone numbers. |
-| **Assign Teams Phone licenses** | Assign required licenses before deployment. |
-| **Teams admin center** | Manage Teams Phone users and voice settings. |
-| **Teams PowerShell** | Automate Direct Routing administration. |
-
-## Why choose Direct Routing?
-
-Direct Routing is a good fit for organizations that:
-
-- Have an existing PSTN carrier relationship.
-- Require integration with third-party PBXs or analog devices.
-- Need advanced voice routing capabilities.
-- Want greater control over their telephony infrastructure.
-- Support complex or multinational voice deployments.
-
-Organizations can also deploy Direct Routing alongside Microsoft Calling Plan, Operator Connect, and Teams Phone Mobile within the same Microsoft Teams tenant.
-
## Direct Routing architecture
The following diagram shows how Direct Routing connects Microsoft Teams Phone to your existing telephony infrastructure.
@@ -122,21 +99,23 @@ The following diagram shows how Direct Routing connects Microsoft Teams Phone to ```text
Microsoft Teams
- +---------------------------+
- | Teams Phone |
- +-------------+-------------+
+ +-------------+
+ | Teams Phone |
+ +------+------+
|
Direct Routing
|
- +---------------+---------------+
- | Certified SBC |
- +---------------+---------------+
+ +--------+--------+
+ | Certified SBC |
+ +--------+--------+
|
- +-----------------+------------------+
- | |
- Existing PSTN Carrier Existing PBX
- Analog Devices
- SIP Trunks
+ +--------+----------------+
+ | |
+ +-----------+-----------+ +-------+--------+
+ | Existing PSTN Carrier | | Existing PBX |
+ +-----------+-----------+ | Analog Devices |
+ | SIP Trunks |
+ +-------+--------+
```
## Infrastructure requirements
@@ -145,17 +124,17 @@ The following infrastructure is required to deploy Direct Routing.
| Infrastructure requirement | Requirement |
| --- | --- |
-| Session Border Controller (SBC) | A Microsoft-certified SBC. |
-| Telephony trunks | One or more PSTN trunks connected to the SBC. |
+| Session Border Controller (SBC) | A supported SBC. For more information, see Supported SBCs. |
+| Telephony trunks | One or more telephony trunks connected to the SBC. On one end, the SBC connects to Teams Phone through Direct Routing. The SBC can also connect to third-party telephony entities, such as PBXs, Analog Telephony Adapters, and so on. Any PSTN connectivity option connected to the SBC will work. (For configuration of the PSTN trunks to the SBC, refer to the SBC vendors or trunk providers.) |
| Microsoft 365 organization | Microsoft 365 tenant hosting Teams users. |
| User registrar | Users must be homed online in Microsoft 365. |
-| Domains | One or more verified Microsoft 365 domains (not \*.onmicrosoft.com). |
-| Public IP | Public IP address reachable by Microsoft Teams. |
-| SBC FQDN | FQDN registered within your Microsoft 365 tenant. |
+| Domains | One or more domains added to your Microsoft 365 or Office 365 organizations.You can't use the default domain, \*.onmicrosoft.com, which is automatically created for your tenant.To view the domains, you can use the following Teams PowerShell cmdlet:`Get-CsTenant | fl Domains`For more information about domains and Microsoft 365 or Office 365 organizations, see [Domains FAQ](https://support.office.com/article/Domains-FAQ-1272bad0-4bd4-4796-8005-67d6fb3afc5a). |
+| Public IP | A public IP address that can be used to connect to the SBC. Based on the type of SBC, the SBC can use NAT. |
+| SBC FQDN | An FQDN for the SBC, where the domain portion of the FQDN is one of the registered domains in your Microsoft 365 or Office 365 organization. For more information, see SBC domain names. |
| Public DNS | Public DNS entry for the SBC FQDN. |
-| Public certificate | Trusted certificate for secure TLS communication. |
-| Direct Routing connection points | sip.pstnhub.microsoft.com, sip2.pstnhub.microsoft.com, sip3.pstnhub.microsoft.com |
-| Firewall | Required Microsoft Teams signaling and media ports. |
+| Public certificate | A supported certificate for the SBC to be used for all communication with Direct Routing. For more information, see Public trusted certificate for the SBC. |
+| Direct Routing connection points | The connection points for Direct Routing are the following three FQDNs:`sip.pstnhub.microsoft.com` – Global FQDN, must be tried first.`sip2.pstnhub.microsoft.com` – Secondary FQDN, geographically maps to the second priority region.`sip3.pstnhub.microsoft.com` – Tertiary FQDN, geographically maps to the third priority region.For information on configuration requirements, see SIP Signaling: FQDNs. |
+| Firewall | The SBC communicates to the following services in the cloud:- SIP proxy: handles signaling- Media processor: handles media except when Media Bypass is enabledThese two services have separate IP addresses in Microsoft Cloud, described later in this document.For more information, see the [Microsoft Teams section](/en-us/office365/enterprise/urls-and-ip-address-ranges#skype-for-business-online-and-microsoft-teams) in [URLs and IP address ranges](/en-us/office365/enterprise/urls-and-ip-address-ranges). |
| Media transport | TCP/RTP/SAVP and UDP/RTP/SAVP |
## Licensing requirements
@@ -188,19 +167,37 @@ For GCC High and DoD environments, Microsoft recommends completing Direct Routin
For additional guidance, see [Audio Conferencing with Direct Routing for GCC High and DoD](audio-conferencing-with-direct-routing-for-gcch-and-dod).
-## Direct Routing with Calling Plan and Operator Connect
+### Unplanned call escalation and Audio Conferencing license
-Organizations can combine Direct Routing with Microsoft Calling Plan or Operator Connect.
+A Teams user can start a one-on-one Teams-to-PSTN or Teams-to-Teams call and add a PSTN participant to it. The path that the call takes depends on whether the user who escalates the call has a Microsoft Audio Conferencing license assigned or not:
+
+- **If the Teams user who escalates the call has a Microsoft Audio Conferencing license assigned**, the escalation happens through the Microsoft Audio Conferencing service. The remote PSTN participant who is invited to the existing call receives a notification about the incoming call, and sees the number of the Microsoft bridge assigned to the Teams user who initiated the escalation.
+- **If the Teams user who escalates the call doesn't have the Microsoft Audio Conferencing license assigned**, the escalation happens through a Session Border Controller connected to the Direct Routing interface. The remote PSTN participant who is invited to the call receives a notification about the incoming call and sees the number of the Teams user who initiated the escalation. The specific SBC used for the escalation is defined by the routing policy of the user.
+
+You must ensure the following:
+
+- CsOnlineVoiceRoutingPolicy is assigned to the user.
+- Allow Private Calling is enabled at the tenant level for Microsoft Teams.
+
+## Direct Routing with Calling Plans and Operator Connect
+
+Direct Routing also supports users who are licensed for Microsoft Calling Plans or assigned an Operator Connect phone number. Teams Phone users with a Calling Plan or Operator Connect can route some calls through Direct Routing.
+
+Mixing Calling Plans or Operator Connect and Direct Routing connectivity for the same user is optional, but could be useful. For example, when the user is assigned a Microsoft Calling Plan or Operator Connect number but wants to route some calls internally using the SBC.
+
+Call routing follows a defined order of evaluation. Teams first evaluates Direct Routing voice routes associated with the user’s Online Voice Routing Policy. When no applicable Direct Routing route matches the called number, Teams checks whether the user has Calling Plan or Operator Connect available and attempts to complete the call using that connectivity.
A common deployment pattern is:
-- Microsoft Calling Plan or Operator Connect for PSTN calling.
+- Microsoft Calling Plans or Operator Connect for PSTN calling.
- Direct Routing for calls to third-party PBXs.
- Direct Routing for analog devices.
- Direct Routing for specialized routing scenarios.
This hybrid deployment allows organizations to optimize call routing while maintaining existing telephony investments.
+For more information about Teams Phone licensing, see [Microsoft Teams add-on licensing](teams-add-on-licensing/microsoft-teams-add-on-licensing).
+
## Supported endpoints
Direct Routing supports:
@@ -209,7 +206,7 @@ Direct Routing supports: - Teams-certified phones
- Common Area Phones
-For Common Area Phones, a Calling Plan license isn't required when Direct Routing is used.
+For Common Area Phones, a Calling Plans license isn't required when Direct Routing is used. For more information, see [Set up common area phones for Microsoft Teams](set-up-common-area-phones).
## SBC domain names
@@ -224,11 +221,23 @@ Examples include: | contoso.com | Yes | sbc1.contoso.com |
| contoso.onmicrosoft.com | No | Not supported |
-If you create a new subdomain such as **sip.contoso.com**, you must first register that domain in Microsoft 365 before pairing the SBC.
+If you create a new subdomain, you must first register that domain in Microsoft 365 before pairing the SBC. For example, if contoso.com is registered in your tenant and you want to use sbc1.sip.contoso.com , first register sip.contoso.com .
+
+Before you can pair an SBC with the name sbc1.sip.contoso.com, you must register the domain name sip.contoso.com in Domains in your tenant. If you try pairing an SBC with sbc1.sip.contoso.com before registering the domain name, you'll get the following error: `Can't use the "sbc1.sip.contoso.com" domain as it wasn't configured for this tenant.`
+
+After you add the domain name, you need to create a user with UPN [email protected] and assign a Teams license. It may take up to 24 hours to fully provision the domain name after it's added to Domains of your tenant, to create a user with a new name, and to assign a license to the user.
+
+It's possible that a company might have several SIP address spaces in one tenant. For example, a company might have contoso.com as a SIP address space and fabrikam.com as the second SIP address space. Some users have addresses such as [email protected] ; others have addresses such as [email protected] .
+
+The SBC only needs one FQDN and can service users from any address space in the paired tenant. For example, an SBC with the name sbc1.contoso.com can receive and send the PSTN traffic for users with addresses [email protected] and [email protected] as long as these SIP address spaces are registered in the same tenant.
+
+Note
+
+SBC FQDN in Azure Communication Services direct routing must be different from SBC FQDN in Teams Direct Routing.
## Public trusted certificate for the SBC
-Microsoft recommends requesting a certificate by generating a Certificate Signing Request (CSR) directly from your SBC.
+Microsoft recommends requesting a certificate by generating a Certificate Signing Request (CSR) directly from your SBC. For specific instructions on generating a CSR for an SBC, see the interconnection instructions or documentation provided by your SBC vendors.
The certificate should:
@@ -236,7 +245,13 @@ The certificate should: - Be signed by a Certificate Authority included in the Microsoft Trusted Root Program.
- Include the Server Authentication EKU.
-Wildcard certificates are supported when they comply with RFC 2818.
+Note
+
+Most Certificate Authorities (CAs) require the private key size to be at least 2048 bits. Keep this in mind when generating the CSR.
+
+Wildcard certificates are supported when they comply with [RFC HTTP Over TLS](https://tools.ietf.org/html/rfc2818#section-3.1). An example would be using \*.contoso.com, which would match the SBC FQDN sbc.contoso.com, but wouldn't match with sbc.test.contoso.com.
+
+Direct Routing SIP interface will only trust certificates that are signed by Certificate Authorities (CAs) that are part of the Microsoft Trusted Root Certificate Program. Make sure that a CA that is part of the program signs your SBC certificate. Also make sure that the Extended Key Usage (EKU) extension of your certificate includes Server Authentication. For more information, see [Program Requirements - Microsoft Trusted Root Program](/en-us/security/trusted-root/program-requirements).
For Direct Routing in Office 365 GCCH and DoD environments, the following root certificate authorities are currently supported:
@@ -244,20 +259,27 @@ For Direct Routing in Office 365 GCCH and DoD environments, the following root c - DigiCert High Assurance EV Root CA
- DigiCert Global Root G2
-Customers can request addition CA be added to the supported list via their regular support channel.
+Customers can request that additional CAs be added to the supported list through their regular support channel.
-If Mutual TLS (MTLS) is enabled, install all required Microsoft Trusted Root certificates on the SBC.
+Note
+
+If Mutual TLS (MTLS) support is enabled for the Teams connection on the SBC, then you must install all the CAs listed under the 'Root Certificate Authorities' section in the Azure Certificate Authority details page in the SBC Trusted Root Store of the Teams TLS context. (This is because the Microsoft service certificates use these root certificates.) To download the root certificates, see [Microsoft 365 Encryption chains](/en-us/microsoft-365/compliance/encryption-office-365-certificate-chains). For more information, see [Office TLS Certificate Changes](/en-us/microsoft-365/compliance/encryption-office-365-tls-certificates-changes).
-Continue with:
+To verify that the MTLS connection originates from Teams infrastructure, the SBC should be configured to implement the following checks on the Teams server-side certificate:
-- SIP signaling
-- Media traffic
-- Supported Session Border Controllers (SBCs)
-- Support boundaries
+- Verify that the certificate chain leads to one of the listed root CAs under the 'Root Certificate Authorities' section in [Azure Certificate Authority details page](/en-us/azure/security/fundamentals/azure-ca-details?tabs=root-and-subordinate-cas-list).
+- Check that the certificate "Subject Alternative Name" includes "sip.pstnhub.microsoft.com".
## SIP signaling
-Direct Routing supports Microsoft 365, Office 365, Office 365 GCC, GCC High, and DoD environments. Each environment uses dedicated SIP connection points to establish secure signaling between your Session Border Controller (SBC) and Microsoft Teams.
+Direct Routing is offered in the following environments:
+
+- Microsoft 365 or Office 365
+- Office 365 GCC
+- Office 365 GCC High
+- Office 365 DoD
+
+For more information about government environments, such as GCC, GCC High, and DoD, see [Office 365 and US Government environments](/en-us/office365/servicedescriptions/office-365-platform-service-description/office-365-us-government/office-365-us-government).
The following sections describe the required Fully Qualified Domain Names (FQDNs), ports, and failover behavior used for Direct Routing.
@@ -267,22 +289,22 @@ For Microsoft 365, Office 365, and Office 365 GCC, configure the following conne
| Priority | FQDN | Purpose |
| --- | --- | --- |
-| Primary | `sip.pstnhub.microsoft.com` | Primary global connection point. |
-| Secondary | `sip2.pstnhub.microsoft.com` | Secondary regional failover endpoint. |
-| Tertiary | `sip3.pstnhub.microsoft.com` | Tertiary regional failover endpoint. |
+| Primary | `sip.pstnhub.microsoft.com` | Global FQDN – must be tried first. When the SBC sends a request to resolve this name, the Microsoft Azure DNS servers return an IP address pointing to the primary Azure datacenter assigned to the SBC. The assignment is based on performance metrics of the datacenters and geographical proximity to the SBC. The IP address returned corresponds to the primary FQDN. |
+| Secondary | `sip2.pstnhub.microsoft.com` | Geographically maps to the second priority region. |
+| Tertiary | `sip3.pstnhub.microsoft.com` | Geographically maps to the third priority region. |
-FQDNs in case SBC uses IPv6
+If your SBC uses IPv6, configure the following FQDNs:
| Priority | IPv6 FQDN | Purpose |
| --- | --- | --- |
-| Primary | `sip.ipv6.pstnhub.microsoft.com` | Primary global connection point. |
-| Secondary | `sip2.ipv6.pstnhub.microsoft.com` | Secondary regional failover endpoint. |
-| Tertiary | `sip3.ipv6.pstnhub.microsoft.com` | Tertiary regional failover endpoint. |
+| Primary | `sip.ipv6.pstnhub.microsoft.com` | Global FQDN – must be tried first. When the SBC sends a request to resolve this name, the Microsoft Azure DNS servers return an IP address pointing to the primary Azure datacenter assigned to the SBC. The assignment is based on performance metrics of the datacenters and geographical proximity to the SBC. The IP address returned corresponds to the primary FQDN. |
+| Secondary | `sip2.ipv6.pstnhub.microsoft.com` | Geographically maps to the second priority region. |
+| Tertiary | `sip3.ipv6.pstnhub.microsoft.com` | Geographically maps to the third priority region. |
These FQDNs provide:
- Geographic routing to the nearest Microsoft datacenter.
-- Automatic failover during service interruptions.
+- Automatic failover during service interruptions. For more information, see Failover mechanism.
- High availability for SIP signaling.
The FQDNs resolve to Microsoft IP ranges:
@@ -296,7 +318,11 @@ In the case of IPv6 the FQDNs resolve to Microsoft IP range:
Important
-Configure your firewall to allow signaling traffic to and from all Microsoft Teams IP ranges, not only the addresses returned from DNS queries.
+Configure your SBC and firewall to allow signaling traffic to and from all Microsoft Teams IP ranges, not only the addresses returned from DNS queries.
+
+Note
+
+Inbound SIP traffic to the SBCs from Teams SIP endpoints can originate from any IPs in these subnets--not only from IPs that resolve from the previously mentioned FQDNs. For more information on how to set up SIP peering, see your SBC documentation.
### SIP signaling: GCC High
@@ -304,34 +330,39 @@ For Office 365 GCC High, use:
`sip.pstnhub.gov.teams.microsoft.us`
+The FQDN sip.pstnhub.gov.teams.microsoft.us is resolved to an IP address from the following subnet: 52.127.88.0/21 To allow incoming and outgoing traffic to and from the addresses for signaling, you need to open ports for all these IP addresses in your firewall.
+
### SIP signaling: DoD
For Office 365 DoD, use:
`sip.pstnhub.dod.teams.microsoft.us`
+The FQDN sip.pstnhub.dod.teams.microsoft.us is resolved to an IP address from the following subnet: 52.127.64.0/21 To allow incoming and outgoing traffic to and from the addresses for signaling, you need to open ports for all these IP addresses in your firewall.
+
Because these environments operate within dedicated Microsoft Government clouds, secondary and tertiary FQDNs aren't required.
## SIP signaling ports
Direct Routing requires the following SIP/TLS ports.
-| Traffic | From | To | Destination Port |
-| --- | --- | --- | --- |
-| SIP/TLS | SBC | Microsoft SIP Proxy | 5061 |
-| SIP/TLS | Microsoft SIP Proxy | SBC | Configured on the SBC |
+| Traffic | From | To | Source port | Destination port |
+| --- | --- | --- | --- | --- |
+| SIP/TLS | SIP Proxy | SBC | 1024 – 65535 | Defined on the SBC (For Office 365 GCC High/DoD only port 5061 must be used) |
+| SIP/TLS | SBC | SIP Proxy | Defined on the SBC | 5061 |
## SIP signaling failover
-Microsoft automatically directs the SBC to the nearest healthy datacenter.
+To resolve sip.pstnhub.microsoft.com, the SBC makes a DNS query. Based on the SBC location and the datacenter performance metrics, the primary datacenter is selected.
-If the primary region becomes unavailable:
+If the primary datacenter experiences an issue, the SBC tries sip2.pstnhub.microsoft.com, which resolves to the second assigned datacenter. In the rare case that datacenters in two regions aren't available, the SBC retries the last FQDN (sip3.pstnhub.microsoft.com), which provides the tertiary datacenter IP.
-1. Microsoft redirects traffic to the secondary region.
-2. If necessary, traffic is redirected to the tertiary region.
-3. Existing resiliency mechanisms help maintain service continuity.
+The following table summarizes the relationships between primary, secondary, and tertiary datacenters:
-No manual administrator intervention is required.
+| The primary datacenter (sip.pstnhub.microsoft.com) | EMEA | NOAM | APAC | OCEA |
+| --- | --- | --- | --- | --- |
+| The secondary datacenter (sip2.pstnhub.microsoft.com) | NOAM | EMEA | NOAM | APAC |
+| The tertiary datacenter (sip3.pstnhub.microsoft.com) | APAC | APAC | EMEA | NOAM |
## Media traffic
@@ -341,23 +372,23 @@ For Media Bypass planning guidance, see [Plan for Media Bypass with Direct Routi
## Media processor IP ranges
-### Microsoft 365 / Office 365
+### Microsoft 365 / Office 365 / Office 365 GCC environments
Allow media traffic for:
-- 52.112.0.0/14
-- 52.120.0.0/14
+- 52.112.0.0/14 (IP addresses from 52.112.0.0 to 52.115.255.255)
+- 52.120.0.0/14 (IP addresses from 52.120.0.0 to 52.123.255.255)
In case of IPv6 allow media traffic for:
- 2603:1063:400::/40
- 2603:1063:100::/40
-### GCC High
+### Office 365 GCC High environment
- 52.127.88.0/21
-### DoD
+### Office 365 DoD environment
- 52.127.64.0/21
@@ -365,10 +396,10 @@ In case of IPv6 allow media traffic for:
The following ports are used for media.
-| Traffic | From | To | Ports |
-| --- | --- | --- | --- |
-| UDP/SRTP | Media Processor | SBC | 3478–3481, 49152–53247 |
-| UDP/SRTP | SBC | Media Processor | 3478–3481, 49152–53247 |
+| Traffic | From | To | Source port | Destination port |
+| --- | --- | --- | --- | --- |
+| UDP/SRTP | Media Processor | SBC | 3478-3481 and 49152 – 53247 | Defined on the SBC |
+| UDP/SRTP | SBC | Media Processor | Defined on the SBC | 3478-3481 and 49152 – 53247 |
Tip
@@ -376,22 +407,24 @@ Microsoft recommends allocating at least two media ports per concurrent call on
## Media processor locations
-Microsoft media processors are deployed globally to optimize call quality and reduce latency.
-
-Regions include:
+Media traffic flows through components called media processors. Media processors are placed in the same datacenters as SIP proxies as follows:
-- North America
-- Europe
-- Asia
-- Japan
-- Australia
-- Latin America
+- NOAM (US South Central, two in US West and US East datacenters)
+- Europe (UK South, France Central, Amsterdam, and Dublin datacenters)
+- Asia (Singapore datacenter)
+- Japan (JP East and West datacenters)
+- Australia (AU East and Southeast datacenters)
+- LATAM (Brazil South)
Media is routed to the closest available Microsoft datacenter whenever possible.
-## Supported codecs
+## Supported media codecs
+
+### Leg between SBC and Microsoft Cloud Media Processor
-Direct Routing supports the following codecs between Microsoft Teams and the SBC.
+Applies with and without Media Bypass.
+
+The Direct Routing interface supports the following codecs on the leg between the Session Border Controller (SBC) and Microsoft Cloud Media Processor:
- SILK
- G.711
@@ -399,35 +432,33 @@ Direct Routing supports the following codecs between Microsoft Teams and the SBC - G.729
- AMR-WB (non-bypass only)
-Administrators can prioritize or restrict codecs on the SBC according to organizational requirements.
+Administrators can force use of a specific codec on the Session Border Controller by excluding undesirable codecs from the offer.
-Note
+### Leg between Microsoft Teams client and Cloud media processor
-Microsoft doesn't support media re-targeting during an active Direct Routing call.
+Applies only when Media Bypass is disabled. With Media Bypass, the media flows directly between the Teams client and the SBC.
-## Supported Session Border Controllers (SBCs)
+On the leg between the Cloud media processor and the Teams client, either SILK or G.722 is used. The codec choice on this leg is based on Microsoft algorithms, which take into consideration multiple parameters.
-Only Microsoft-certified SBCs are supported with Direct Routing.
+Note
-Microsoft validates certified SBCs through interoperability testing to ensure compatibility with Microsoft Teams Phone.
+Media re-targeting isn't supported. During a call, if a SIP re-INVITE offer from the Direct Routing SBC contains a new media IP address, port, or transport, media isn't sent from PSTN Hub to the new target. Per RFC 3264 8.3.1, media re-target support is optional (not required).
-For the latest list of certified devices, see:
+## Supported Session Border Controllers (SBCs)
-[Session Border Controllers certified for Direct Routing](direct-routing-border-controllers)
+Microsoft only supports certified SBCs to pair with Direct Routing. Because Enterprise Voice is critical for businesses, Microsoft runs intensive tests with the selected SBCs, and works with the SBC vendors to ensure the two systems are compatible.
-## Support boundaries
+Devices that are validated are listed as Certified for Teams Direct Routing. The certified devices are guaranteed to work in all scenarios.
-Microsoft supports Teams Phone with Direct Routing only when certified SBCs are used.
+For more information about supported SBCs, see [Session Border Controllers certified for Direct Routing](direct-routing-border-controllers).
-If issues occur:
+## Support boundaries
-1. Contact your SBC vendor.
-2. The vendor investigates the issue.
-3. If necessary, the vendor escalates the issue to Microsoft through established support channels.
+Microsoft only supports Teams Phone with Direct Routing when used with certified devices. If there are issues, you must contact your SBC vendor's customer support first. If needed, the SBC vendor escalates the issue to Microsoft through internal channels.
-Customers should provide the vendor investigation report when opening Microsoft support requests.
+To escalate SBC-related issues to Microsoft support, customers must present an SBC vendor investigation report. This document, containing the vendor's ticket reference number, will be supplied by their certified SBC vendor.
-Microsoft may decline support requests involving non-certified SBCs.
+Microsoft reserves the right to reject support cases where a non-certified device is connected to Teams Phone through Direct Routing. If Microsoft determines that a customer's Direct Routing issue is with a vendor's SBC device, the customer needs to re-engage the SBC vendor for support.
## Best practices
@@ -439,32 +470,4 @@ For the best Direct Routing experience, Microsoft recommends that you: - Configure all Microsoft-required firewall rules.
- Monitor call quality after deployment.
- Test failover scenarios before production rollout.
-- Review Microsoft Teams network planning guidance before deployment.
-
-## Verify your deployment
-
-After completing configuration:
-
-- Verify that the SBC reports a healthy connection to Microsoft Teams.
-- Validate inbound PSTN calling.
-- Validate outbound PSTN calling.
-- Verify emergency calling functionality if configured.
-- Test failover between SIP connection points.
-- Confirm voice routing policies are assigned correctly.
-- Validate call quality across representative user scenarios.
-
-## Example deployment
-
-Many organizations deploy Direct Routing alongside other Microsoft Teams PSTN connectivity options.
-
-For example:
-
-| User type | PSTN connectivity |
-| --- | --- |
-| Knowledge workers | Operator Connect |
-| Frontline and mobile workers | Teams Phone Mobile |
-| Contact centers | Direct Routing |
-| Analog devices and legacy PBXs | Direct Routing |
-| Small satellite offices | Microsoft Calling Plan |
-
-This flexible approach allows organizations to optimize PSTN connectivity for different user populations while maintaining a single Microsoft Teams tenant.\ No newline at end of file+- Review Microsoft Teams network planning guidance before deployment.\ No newline at end of file 