Source record · tier 2 current vendor documentation
Teams Phone System Direct Routing: SIP protocol
- Publisher
- Microsoft
- URL
- https://learn.microsoft.com/en-us/microsoftteams/direct-routing-protocols-sip
- Published
- 2026-08-21
- Updated
- unknown
- Accessed
- 2026-09-23
- HTTP status
- 200
- License
- Microsoft Learn terms of use; no-redistribution; short excerpts and locators only
Source notes citing this source
- The SBC must be configured to stop retrying on a 603 response; otherwise a user who declines a call sees several missed calls. in context
- Direct Routing matches the FQDN in the Contact header against the certificate's CN or SAN (wildcards allowed) and then uses that FQDN, or its parent domain, to find the tenant; a mismatch fails the call. in context
- Every OPTIONS and INVITE the SBC sends to Direct Routing must carry the paired SBC FQDN in the Contact header; a Contact with an IP address is refused with 403 Forbidden. in context
- The SBC must support ICE restarts because Direct Routing restarts ICE with new candidates when a bypassed call is transferred to a Skype for Business, Teams web or Teams VDI client. in context
- Direct Routing does not support Delayed Offer INVITEs (INVITE without SDP) and does not support SIPS URIs. in context
- For incoming calls Direct Routing requires the phone numbers in the Request-URI and the From header to carry a leading plus sign, and Microsoft recommends always adding user=phone to the Request-URI. in context
- If the SBC advertises REFER in its Allow header, Direct Routing sends REFER to the SBC for transfers; this method is mandatory for media bypass certification, and transfer without SBC REFER handling is not supported in media bypass mode. in context
- Microsoft's SIP protocol page both says Direct Routing rejects SIP requests that carry a Replaces header and says the SBC must support INVITE with Replaces. disputed in context
- In Teams Direct Routing, a Teams endpoint's Call progress is converted by the SIP proxy into a 180 message, and on receiving 180 the SBC must generate local ringing. in context
- When a Teams user forwards a call and the caller is a PSTN user, the Direct Routing SIP proxy generates a 181 Call is being forwarded provisional response to the caller. in context
- In Teams Direct Routing, the SBC can receive one 183 per session in non-bypass mode and multiple 183 messages in media bypass mode; in both modes a call may proceed with or without a provisional 183. in context
- In Teams Direct Routing, an endpoint's Media answer is converted by the SIP proxy into a 183 with media candidates in SDP, and on receiving 183 the SBC is expected to connect to those media candidates. in context
- In non-bypass Direct Routing, the SIP proxy replaces the client's SDP in the 183 Session Progress with the Media Processor's SDP, and the 183 is generated only once, either by the Ring Bot or a client endpoint, on an existing or new fork. in context
- When a Teams user has several endpoints, the Direct Routing SIP proxy can send several 180 Ringing responses, one per endpoint Call progress, each a separate early dialog with a different To tag. in context
- Teams Direct Routing does not support a Delayed Offer INVITE (an INVITE without SDP). in context
- For Teams Direct Routing, an SBC that follows the RFC 3960 policy would play local ringing after the 180 and switch to media from the SDP candidates once the 183 arrives and media flows. inferred in context
- The Microsoft Direct Routing SIP protocol article says Direct Routing does not support Delayed Offer INVITE (an INVITE without SDP). in context
- The Microsoft Direct Routing SIP protocol article as of 2026-08-21 contains no guidance on which SDP direction attribute is used for hold or on music on hold. in context
- The Microsoft Direct Routing SIP protocol article says Direct Routing rejects SIP requests that carry Replaces headers and tells admins to make sure the SBC is not using them. disputed in context
- The Microsoft Direct Routing SIP protocol article says the SBC must support INVITE with Replaces. disputed in context
- Every OPTIONS and INVITE sent to the Microsoft SIP proxy must carry the paired SBC FQDN in the Contact header, and that FQDN must match the certificate CN or SAN; a Contact with an IP address is refused with 403 Forbidden. in context
- Direct Routing doesn't support Delayed Offer (an INVITE without SDP). in context
- For inbound calls the phone number in the Request-URI and in the From header must include a leading plus sign for user matching and caller reverse lookup to work. in context
- SBC-handled REFER is Microsoft's preferred transfer method and is mandatory for media bypass certification; call transfer without SBC REFER handling isn't supported in media bypass mode, and the SBC must accept REFER headers of up to 400 symbols. in context
- If the SBC lists REFER in its Allow header, the Microsoft SIP proxy sends the REFER to the SBC and acts as Transferor (RFC 5589 section 6); otherwise the proxy terminates the client's REFER itself and acts as Referee. in context
- The two Replaces statements on the SIP protocol page most plausibly reconcile by direction: SBCs must accept INVITE with Replaces sent from Microsoft but must not send Replaces toward Microsoft. The page does not say this explicitly. inferred in context
- The SIP protocol page tells SBC administrators to ensure they aren't using Replaces headers in SIP requests because Direct Routing rejects SIP requests that have Replaces headers defined. in context
- On an inbound INVITE the SIP proxy finds the tenant by looking up the full Contact-header FQDN as a registered tenant domain, falls back to the FQDN with the host label removed, and fails the call if neither is found; it then reverse-looks-up the Request-URI number within that tenant. in context
- Because Teams sends REFER to an SBC that advertises it while Zoom BYOC-P never sends REFER, an SBC bridging Teams and Zoom must complete Teams-originated transfers itself or stop advertising REFER on the Teams leg. The SBC cannot simply relay REFER to Zoom. inferred in context
- On an inbound INVITE, the Teams Direct Routing proxy finds the destination tenant from the FQDN in the Contact header (full FQDN first, then the FQDN without its host part), and that FQDN must match the certificate CN or SAN. in context
- If an INVITE or OPTIONS sent to the Teams SIP proxy carries an IP address rather than an FQDN as the Contact hostname, the connection is refused with 403 Forbidden. in context
- Teams Direct Routing does not support a Delayed Offer INVITE, meaning an INVITE without SDP. in context
- For inbound calls to Teams Direct Routing, the phone number in the Request-URI and in the From header must include a leading plus sign. in context
- Teams Direct Routing picks its transfer method from the SBC's advertised capabilities: if the SBC lists REFER in Allow, the proxy sends REFER to the SBC to complete the transfer; otherwise the proxy completes the transfer itself. in context
- Microsoft tells administrators to make sure the SBC does not use Replaces headers in SIP requests, because Direct Routing rejects SIP requests that define Replaces headers. in context
- The Teams Direct Routing SIP protocol page states that the SBC must support Invite with Replaces. in context
- When the SBC receives a 503 with a Retry-After header in response to an INVITE it must terminate that connection and try the next available Microsoft datacenter, and the SBC must not retry a call on a 603 response. in context
- The SIP proxy matches the Contact FQDN against the SBC certificate CN/SAN (exact or wildcard), then finds the tenant by looking up the full Contact FQDN as a registered domain and, failing that, the FQDN with its host portion removed; if neither is found the call fails. in context
- Every OPTIONS and INVITE sent to the Microsoft SIP proxy must carry the paired SBC FQDN as the Contact URI host with transport=tls; a Contact whose host is an IP address is refused with 403 Forbidden. in context
- For calls into Teams, the phone numbers in the Request-URI and From header must include a leading plus sign, and Microsoft recommends always adding user=phone to the Request-URI. in context
- The Direct Routing SIP proxy sends REFER to the SBC (acting as transferor) only when the SBC lists REFER in its Allow header; this is the preferred method, it is mandatory for media bypass certification, and call transfer without SBC REFER handling is not supported in media bypass mode. in context
- Microsoft's SIP protocol page tells administrators to make sure the SBC does not use Replaces headers in SIP requests, because Direct Routing rejects SIP requests that carry them. disputed in context
- Microsoft's SIP protocol page states that the SBC must support Invite with Replaces. disputed in context
- Microsoft does not support a third-party SIP proxy or UAS between the Microsoft SIP proxy and the paired SBC that might modify the Request-URI created by the SBC. in context
- For inbound Direct Routing calls the Microsoft SIP proxy performs a reverse number lookup of the phone number in the Request-URI within the tenant identified from the SBC FQDN. in context
- Microsoft states that for inbound Direct Routing calls the phone number in the Request-URI must contain a plus sign. in context
- Microsoft recommends always adding user=phone to the Request-URI; without it the Direct Routing SIP proxy applies heuristics to decide whether the user part is a phone number or a SIP address. in context
- In Teams Direct Routing, when the SBC gets a 503 with a Retry-After header in response to an INVITE, it must terminate that connection and try the next available Microsoft datacenter. in context
- If several missed calls appear for one declined call, the SBC or PSTN provider retry logic is misconfigured, and the SBC must be set to stop retrying on a 603 response. in context
- An INVITE or OPTIONS to the Direct Routing SIP proxy whose Contact header uses an IP address instead of the SBC FQDN is refused with 403 Forbidden. in context
- Direct Routing requires a successful OPTIONS exchange (200 OK) between the SBC and the Microsoft SIP proxy before calls can be set up. in context
- A busy Direct Routing datacenter can send the SBC a Retry-After with a one-second interval. in context
- If a device between a Direct Routing SBC and Microsoft could read and rewrite the Contact or Record-Route host to an IP address, Microsoft's documented rules would reject or fail the call. Because Direct Routing signaling runs over TLS, a firewall without TLS interception cannot normally rewrite it in the first place. inferred in context
- For Teams Direct Routing, every incoming OPTIONS and INVITE to the Microsoft SIP proxy must carry the paired SBC's FQDN, not an IP address, in the Contact header URI hostname. in context
- Teams Direct Routing refuses an incoming INVITE or OPTIONS whose Contact hostname is an IP address rather than an FQDN, with a 403 Forbidden. in context
- Teams Direct Routing supports only an FQDN matching the SBC certificate in Record-Route or Contact. If an IP address appears in either header, the certificate check and the call fail. in context
- Microsoft does not support a third-party SIP proxy or user agent server between the Microsoft SIP proxy and the paired SBC that might modify the Request-URI created by the SBC. in context
- Microsoft recommends using only the Contact header, not Record-Route, when no proxy SBC is in use. Record-Route is needed when a proxy SBC with Local Media Optimization must stay in the path, and if both headers are used their values must be identical. in context
- For in-dialog requests, the Direct Routing SIP proxy picks the next hop from the top Record-Route first. If there is no Record-Route, it uses the Contact header. in context
- Direct Routing does not support an IP address in Record-Route or Contact. Only an FQDN that matches the SBC certificate's CN or SAN is supported, and an IP address or mismatched FQDN makes the call fail. in context
- The Teams Direct Routing SIP proxy always offers the session timer on non-bypass calls, does not offer it on media-bypass calls, and does not require the SBC to use it. in context
- A Unified CM call that reaches Teams Direct Routing as a Delayed Offer will not be supported, so the SBC in front of Teams must either receive an Early Offer from Unified CM or convert Delayed Offer to Early Offer itself (for example with CUBE early-offer forced). inferred in context
- In Direct Routing non-bypass mode a Teams media answer is converted to a 183 Session Progress whose SDP is replaced by the Media Processor's SDP, and only one 183 per session is sent. in context
- On a Direct Routing inbound call, the Teams 'Call accepted' event is converted by the SIP proxy into a 200 response with SDP, and the SBC is expected to send and receive media to the candidates in that SDP. in context
- When a media-bypass Direct Routing call is transferred to a client that cannot use media bypass, Direct Routing starts an ICE restart by changing ice-pwd and ice-ufrag and offering new media candidates in a re-INVITE. in context
- Microsoft Teams Direct Routing does not support Delayed Offer INVITEs (INVITE without SDP). in context
- Direct Routing may send SIP messages larger than 1,500 bytes, mainly because of SDP, and Microsoft recommends the SBC strip SDP values such as ICE candidates or unused codecs before forwarding to UDP trunks. in context
- When a Teams user forwards a call from a PSTN caller, the Direct Routing SIP proxy sends the caller a 181 Call Is Being Forwarded provisional response, and the forwarded INVITE's Request-URI carries a cause parameter. in context
- Microsoft says that several missed calls for one declined call mean the SBC or PSTN trunk provider's retry mechanism is misconfigured, and the SBC must be reconfigured to stop retrying on a 603 response. in context
- Microsoft's Direct Routing SIP article cites RFC 4244 for History-Info, although RFC 7044 obsoleted RFC 4244 in February 2014. in context
- In Direct Routing, the trunk's ForwardCallHistory parameter controls whether History-Info is populated, and inbound History-Info is preserved only when ForwardCallHistory is enabled. in context
- Microsoft's Direct Routing SIP guidance says the History-Info header should be used for loop prevention in call-forwarding scenarios. in context
- The Direct Routing SIP proxy adds History-Info for simultaneous ring and call forwarding but not for call transfer. in context
- Because the Direct Routing protocol page documents History-Info but not Diversion for forwarded calls, an SBC facing a carrier that requires Diversion probably has to synthesize it from History-Info. inferred in context
- On inbound Direct Routing calls Microsoft uses the From header, which must carry a + prefixed number, to check the callee's blocked-number list and to look up the caller's name. in context
- Direct Routing adds History-Info for simultaneous ring and call forwarding, rebuilding entries as phone-number URIs on sip.pstnhub.microsoft.com with user=phone. in context
- Microsoft says inbound History-Info is preserved when ForwardCallHistory is enabled and that History-Info should be used for loop prevention on forwarded calls. in context
- Direct Routing does not add History-Info for call transfer cases. in context
- Microsoft forwards History-Info entries marked private as-is to the SIP trunk provider because it treats that provider as a trusted peer. in context
- When a media bypass call is transferred to a Skype for Business, Teams Web or Teams VDI client, Direct Routing inserts a Media Processor and starts an ICE restart by changing ice-pwd and ice-ufrag and offering new candidates in a reinvite; the SBC must support ICE restarts. in context
- Teams Direct Routing does not support Delayed Offer INVITE (an INVITE without SDP). in context
- Having the SBC handle REFER is Microsoft's preferred transfer method, is mandatory for media bypass certification, and transfer without SBC REFER handling is not supported in media bypass mode. in context
- Microsoft's Direct Routing SIP protocol article states that Direct Routing rejects SIP requests that have Replaces headers and tells administrators to make sure the SBC is not using them. disputed in context
- The same Microsoft article states that the SBC must support INVITE with Replaces, and Microsoft's transfer troubleshooting page lists INVITE with a Replaces header as the second-preference transfer method. disputed in context
- The Microsoft Direct Routing SIP proxy always offers the Session Timer on non-bypass calls, does not offer it on media bypass calls, and does not require the SBC to use it. in context
- Teams Direct Routing chooses its transfer method from the capabilities the SBC advertises: if the SBC's Allow header includes REFER, the SIP proxy sends REFER to the SBC and acts as Transferor; otherwise the proxy handles the transfer itself as Referee. in context
- The Direct Routing SIP proxy always offers the session timer on non-media-bypass calls and does not offer it on media bypass calls. in context
- Microsoft states that use of the session timer by the SBC is not mandatory for Direct Routing. in context
- Every OPTIONS and INVITE sent to the Microsoft SIP proxy must carry the paired SBC FQDN, matching the certificate CN or SAN, in the Contact header. A Contact header with an IP address is refused with 403 Forbidden. in context
- Direct Routing doesn't support Delayed Offer INVITEs (INVITE without SDP) and doesn't support SIPS URIs. in context
- If the SBC advertises REFER in its Allow header, the Direct Routing SIP proxy sends REFER to the SBC and acts as Transferor (RFC 5589 section 6). Otherwise the proxy terminates the client's REFER itself and acts as Referee. in context
- SBC handling of REFER is mandatory for devices seeking Direct Routing media bypass certification, and call transfer without SBC REFER support isn't supported in media bypass mode. in context
- For incoming calls, the phone number in the Request-URI (and in the From header, for blocking and reverse lookup) must contain a leading plus sign. in context
- On an incoming call, Direct Routing finds the tenant by looking up the full Contact-header FQDN as a registered domain, then falls back to the FQDN minus its host portion. If neither matches, the call fails. in context
- If an INVITE or OPTIONS sent to the Microsoft SIP proxy has an IP address instead of an FQDN as the Contact header hostname, the proxy refuses it with 403 Forbidden. An IP address in Record-Route or Contact also fails the certificate check. in context
- If a Direct Routing datacenter is busy, it can send the SBC a 503 with Retry-After (one-second interval) in response to an INVITE. The SBC must then terminate that connection and try the next available Microsoft datacenter. in context
- Wildcard SBC certificates are supported for Direct Routing when they follow RFC 2818 matching, where *.a.com matches foo.a.com but not bar.foo.a.com. in context
Cite this source record
APA
WarmTransfer. (2026, August 21). Teams Phone System Direct Routing: SIP protocol. WarmTransfer. https://warmtransfer.net/knowledge/sources/ms-learn-dr-protocols-sip
BibTeX
@misc{warmtransfer-ms-learn-dr-protocols-sip,
title = {Teams Phone System Direct Routing: SIP protocol},
author = {{WarmTransfer}},
year = {2026},
url = {https://warmtransfer.net/knowledge/sources/ms-learn-dr-protocols-sip},
note = {Microsoft, accessed 2026-09-23}
}