Teams Phone and calling
Planning and deployment

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.

StepAction
1Review infrastructure, networking, and licensing requirements.
2Select a Microsoft-certified SBC.
3Configure DNS, certificates, firewall rules, and connectivity.
4Connect the SBC to Microsoft Teams.
5Configure voice routing and dial plans.
6Assign Teams Phone licenses and voice routing policies.
7Validate user calling and expand deployment.

Quick links

ResourceDescription
Configure Direct RoutingComplete Direct Routing deployment after planning.
PSTN connectivity optionsCompare Direct Routing with Calling Plan, Operator Connect, and Teams Phone Mobile.
Session Border Controllers certified for Direct RoutingView Microsoft-certified SBCs.
Plan your Teams voice solutionUnderstand Teams Phone deployment options.
Manage Teams phone numbersAssign and manage phone numbers.
Assign Teams Phone licensesAssign required licenses before deployment.
Teams admin centerManage Teams Phone users and voice settings.
Teams PowerShellAutomate 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,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 Microsoft-certifiedsupported SBC. For more information, see Supported SBCs.
Telephony trunks One or more PSTNtelephony 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 verifieddomains added to your Microsoft 365 domains (notor Office 365 organizations.You can't use the default domain, *.onmicrosoft.com).com, which is automatically created for your tenant.To view the domains, you can use the following Teams PowerShell cmdlet:`Get-CsTenant
Public IP PublicA public IP address reachable by Microsoft Teams.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 withindomains in your Microsoft 365 tenant.or Office 365 organization. For more information, see SBC domain names.
Public DNS Public DNS entry for the SBC FQDN.
Public certificate TrustedA supported certificate for secure TLS communication.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, com – Global FQDN, must be tried first.sip2.pstnhub.microsoft.com, 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 RequiredThe 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 Teams signaling and media ports.Cloud, described later in this document.For more information, see the Microsoft Teams section in URLs and IP address ranges.
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 traffic
  • Supported 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 Primary global connection point.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 Secondary regional failover endpoint.Geographically maps to the second priority region.
Tertiary sip3.pstnhub.microsoft.com Tertiary regional failover endpoint.Geographically maps to the third priority region.

FQDNs in caseIf your SBC uses IPv6IPv6, configure the following FQDNs:

Priority IPv6 FQDN Purpose
Primary sip.ipv6.pstnhub.microsoft.com Primary global connection point.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 Secondary regional failover endpoint.Geographically maps to the second priority region.
Tertiary sip3.ipv6.pstnhub.microsoft.com Tertiary regional failover endpoint.Geographically maps to the third priority region.

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 portDestination Portport
SIP/TLS SBCMicrosoft SIP Proxy SBC1024 – 65535Defined on the SBC (For Office 365 GCC High/DoD only port 5061 must be used)
SIP/TLS Microsoft SBCSIP Proxy SBCConfiguredDefined on the SBC5061

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:

  1. Microsoft redirects trafficdatacenter experiences an issue, the SBC tries sip2.pstnhub.microsoft.com, which resolves to the secondary region.
  2. 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 tertiary region.
  3. Existing resiliency mechanisms help maintain service continuity.
datacenter IP.

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)EMEANOAMAPACOCEA
The secondary datacenter (sip2.pstnhub.microsoft.com)NOAMEMEANOAMAPAC
The tertiary datacenter (sip3.pstnhub.microsoft.com)APACAPACEMEANOAM

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 PortsSource portDestination port
UDP/SRTP Media Processor SBC 3478–3481, 49152–3478-3481 and 49152 – 53247Defined on the SBC
UDP/SRTP SBC Media Processor 3478–3481, 49152–Defined on the SBC3478-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:

  1. Contactissues, you must contact your SBC vendor.
  2. The vendor investigates's customer support first. If needed, the issue.
  3. If necessary, theSBC vendor escalates the issue to Microsoft through established 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:

User typePSTN connectivity
Knowledge workersOperator Connect
Frontline and mobile workersTeams Phone Mobile
Contact centersDirect Routing
Analog devices and legacy PBXsDirect Routing
Small satellite officesMicrosoft 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 \ No newline at end of file