Many teams assume Microsoft Teams Direct Routing is difficult to set up. In practice, setup is the straightforward part: Microsoft publishes a clear checklist, and most organizations work through it without major problems. The harder part comes after go-live, because Direct Routing depends on several components that need ongoing maintenance. When one of them is neglected, calls to and from Teams users can stop working without warning.
Direct Routing is the option that connects Microsoft Teams Phone to the public phone network through a session border controller (SBC) that you operate and a SIP trunk from a carrier you choose. Organizations use it when they want to keep their own carrier, phone numbers and calling rates instead of buying calling plans from Microsoft. The trade-off is responsibility: because you run the SBC, any failure between Teams and the carrier is yours to find and fix.
This article focuses on what goes wrong after launch, not on the setup steps. It covers the seven problems we see most often, roughly in order of how frequently they cause outages, and explains how to prevent each one.
How Direct Routing compares with the other Teams calling options
Teams offers three ways to connect users to the phone network, and the right choice depends on how much control you want and how much work you’re willing to take on.
With Calling Plans, Microsoft acts as your carrier and handles the connection to the phone network. With Operator Connect, a participating carrier provisions phone service directly into your Teams tenant and manages the connection for you. With Direct Routing, you connect any carrier through an SBC that you install and maintain.
Direct Routing gives you the most freedom over carrier choice, call routing and number management. It also gives you the most operational work, so it’s worth choosing deliberately and making sure someone is responsible for keeping it running.
Problem 1: the SBC certificate expires or isn’t trusted
The most common cause of Direct Routing outages is a problem with the TLS certificate on the SBC.
Microsoft requires an encrypted connection between Teams and your SBC. To set it up, the SBC needs a certificate issued by a public certificate authority, and that certificate must match the SBC’s domain name. Like all certificates, it has an expiry date. If nobody is responsible for renewing it, it eventually expires, Microsoft stops trusting the SBC, and both inbound and outbound calls fail at the same moment.
The same problem can also happen in the other direction. Your SBC has to trust the certificates that Microsoft presents, and Microsoft has changed its certificate authorities in the past. When that happened, SBCs whose lists of trusted certificates hadn’t been updated stopped connecting.
To prevent both problems, add the SBC certificate to the same renewal process you use for your public website certificates, with reminders 30 days and 7 days before expiry. Subscribe to Microsoft’s Direct Routing announcements and to your SBC vendor’s security advisories, and keep the SBC software up to date so that changes to trusted certificates are installed in time.
Problem 2: Teams marks the SBC as unavailable
Microsoft checks whether your SBC is available by regularly exchanging small test messages with it, known as SIP OPTIONS messages. If those messages stop getting through, Microsoft marks the SBC as inactive and stops sending calls to it, even when the SBC itself is working normally.
These failures usually start with a change to the network around the SBC rather than with the SBC itself. For example, a firewall update might block the port Teams uses, a change to network address translation might alter how traffic reaches the SBC, or a DNS edit might point the SBC’s domain name at the wrong address. From inside the office everything looks normal, so the problem often goes unnoticed until users report that calls are failing.
The best protection is to monitor the OPTIONS exchange itself, not just whether the SBC is switched on. Treat any firewall or DNS change near the SBC as a controlled change, and place a test call after each one. If you run two SBCs for resilience, check that Teams sees both as active, because a backup SBC that Microsoft has already marked inactive won’t take over when you need it. Our guide to geo-redundant SIP trunk design covers how to build failover on the carrier side as well.
Problem 3: phone numbers are in the wrong format
Direct Routing passes phone numbers between three systems, and each one has its own expectations about how a number should be written.
Teams stores numbers in international E.164 format, such as +44 20 7946 0000. Users, however, dial in whatever way they’re used to, which might be a national format, a short extension or a local code. Meanwhile, the carrier expects numbers on the SIP trunk in a particular format, which can differ between inbound and outbound calls. Teams uses dial plans to convert what users type, the SBC can rewrite numbers in both directions, and the carrier applies its own rules on top.
When these three sets of rules don’t agree, calls can fail with errors that look like routing faults. They can also connect but show the wrong caller ID. An outbound call that presents the company number in the wrong format may be rejected by the carrier, have its caller ID removed, or be blocked by the network it’s trying to reach.
To avoid this, choose a single standard format, ideally E.164, and have the SBC convert every number to it in both directions. Before rolling out to all users, test outbound calls from a pilot user to national landlines, mobiles, international numbers and emergency services. For each test, check what actually appears on the recipient’s phone, so you know customers will see the company number in a format they recognize.
Problem 4: audio fails because of the firewall
A call can connect successfully and still have no audio, or audio in only one direction. This happens because the call setup messages and the audio itself travel separately, so the setup can succeed while the audio is blocked somewhere along the way.
Media bypass makes this more complicated. It’s a Teams feature that sends audio directly between users’ Teams clients and the SBC, instead of routing it through Microsoft’s cloud. Media bypass can improve audio quality for users on the same network as the SBC, but it also means the SBC must be reachable from wherever users work, including their home networks, which requires opening more paths through your firewall.
Decide whether to use media bypass as a deliberate choice rather than leaving it at the default. Open the port ranges Microsoft documents for media, and test calls from the office, from home networks and from mobile data. If audio fails in one direction, follow the steps in our guide to fixing one-way audio and NAT problems on SIP trunks.
Problem 5: the SBC runs out of capacity for converting audio
Teams and the public phone network usually use different codecs, which are the formats used to encode voice as data. Teams uses its own preferred codecs internally, while most phone networks use G.711. As a result, audio usually has to be converted between formats, and that conversion normally happens on the SBC.
Converting audio, known as transcoding, uses processing power on the SBC and adds a small amount of delay. Under normal traffic this isn’t a problem. However, as call volumes grow, the SBC can run out of transcoding capacity at busy times. A configuration change can also cause calls to be converted twice instead of once. In both cases, users experience poor audio or failed calls during peak hours, which can easily be mistaken for a carrier problem.
To prevent this, find out exactly where transcoding happens in your setup, and size the SBC for the number of calls it must convert at peak, not on average. On the carrier side of the SBC, offer G.711 first, because it matches most phone networks and avoids an extra conversion. Our post on choosing SIP trunk codecs explains the trade-offs in more detail.
Problem 6: emergency calls don’t carry the right location
Emergency calling problems are easy to miss because they rarely show up in everyday use. Teams supports emergency calling over Direct Routing, but only if location information is set up correctly and passed to the carrier in the form emergency services need.
In the US, rules require emergency calls from business phone systems to include a dispatchable location, which means enough detail for responders to find the caller. That’s harder to provide when employees work from home or move between offices. Teams can work out a user’s location automatically based on the network they’re connected to, but only if you’ve defined your network sites and their addresses, and keep them up to date.
Set up emergency locations as part of the rollout rather than afterwards. Test emergency call routing using your carrier’s test procedure, and never by placing a real call to emergency services. Review the locations whenever you open or move an office or change your network. Because the rules differ by country, get advice on the requirements in each country where you operate.
Problem 7: the number port and the Teams setup don’t line up
Many Direct Routing projects are delayed by phone numbers rather than technology. Moving an organization’s existing numbers to the carrier behind the SBC is a porting project, with its own paperwork and timeline, and its timing has to match the moment users are configured in Teams.
If the numbers move before Teams users are set up, inbound calls arrive with nowhere to go. If Teams is configured before the numbers move, users can make outbound calls but can’t receive calls on their own numbers.
The solution is to manage porting as a tracked process with a confirmed date from the losing provider, known as the firm order commitment. Configure Teams users and call routing before that date, and test inbound calls to each number as soon as the port completes. Our guide to porting numbers with an LOA and FOC explains each step.
Why these problems happen: unclear ownership
All seven problems share a common cause. Direct Routing sits between the Microsoft 365 team, the network team and the telephony team, and each group tends to assume one of the others is looking after it.
The most effective fix is to name a single owner for the SBC and everything that depends on it: the certificate, the firewall rules, the number formats and the monitoring. That person should keep a short runbook describing how to recognize and resolve each of the problems above.
Run the same test calls after every change
Because most outages begin with a change somewhere nearby, a short and repeatable set of test calls catches problems before users do. After any change to Teams policies, the SBC, the firewall, DNS or the carrier configuration, place the following calls:
- an inbound call to a user’s direct number and to a main number or auto attendant
- an outbound call to a national landline, a mobile and an international number
- a transfer to an external number, and a call forwarded to a mobile
- a call from a user working outside the office, to test the audio path from the internet
For each call, check that audio works in both directions and note what caller ID the recipient sees. Keep the results with the change record. If something breaks a week later, knowing which tests passed after which change makes the cause much quicker to find.
Choosing the carrier behind your SBC
The carrier connected to your SBC affects call quality, how caller ID is handled, which countries you can reach and how quickly problems are resolved. When comparing carriers, ask which codecs they support, what number format they expect, whether they have experience working with SBCs used for Direct Routing, what redundancy options they offer, and how support escalation works for Direct Routing customers.
IDT Express provides SIP trunking from 40+ locations, so organizations can connect their Teams SBCs to a nearby point of presence while keeping their own numbers and routes. You can read more about how the service works on our SIP trunking page.
Frequently asked questions
What is Teams Direct Routing?
Teams Direct Routing connects Microsoft Teams Phone to the public phone network through a session border controller you operate and a SIP trunk from a carrier you choose. It lets organizations keep their own carrier, numbers and rates.
What is the most common cause of Teams Direct Routing outages?
An expired or untrusted TLS certificate on the SBC is the most common cause. Direct Routing requires a valid public certificate that matches the SBC’s domain name, and calls stop when it lapses.
Why does Teams mark my SBC as inactive?
Microsoft checks SBC availability with SIP OPTIONS messages. If those messages fail, often because of a firewall, network address translation or DNS change, Teams marks the SBC inactive and stops sending calls to it.
What is the difference between Direct Routing and Operator Connect?
With Direct Routing, you operate the SBC and can connect any carrier. With Operator Connect, a participating carrier provisions and manages the connection into your Teams tenant, so you manage less infrastructure but choose from a smaller set of carriers.
Does Direct Routing support emergency calling?
Yes, but emergency locations must be configured and kept up to date so that the correct location reaches emergency services. Test routing with your carrier’s test procedure and follow the rules in each country where you operate.
Connect your SBC to our network
If you’re planning a Direct Routing deployment or fixing an existing one, talk to the IDT Express carrier team about connecting your SBC to SIP trunks close to your users.


