Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Teams Direct Routing 488 / 531027 "There are no ICE candidates in the SDP. Non-ice endpoints cannot use bypass"

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Direct Routing is the Microsoft Teams Phone feature that connects Teams to an organisation's own telephone system through a customer-provided session border controller (SBC). Media bypass is an option on that connection: instead of sending the voice through Microsoft's cloud and back, the voice stays between the Teams client and the SBC. When a call is refused with SIP 488 and Microsoft response code 531027, the trunk has media bypass switched on but the SBC did not take part in the way bypass needs.

The sections below show what the message says the SBC failed to offer, how to prove it from the trunk setting and the SBC's own call trace, how to correct it with a record to undo from, and how to confirm the result. Nothing before the Fix section changes anything.

What the error means

Microsoft's SIP 488 page lists the row as "531027 488 There are no ICE candidates in the SDP. Non-ice endpoints cannot use bypass", with Microsoft response code 531027 and SIP response code 488. Its suggested action reads: "Media bypass doesn't work if the SBC doesn't provide any ICE candidates in its SDP offer. Make sure that you enable ICE Lite on the SBC."

Three terms in that text matter:

  • SDP is the Session Description Protocol, the body of the call setup message in which the SBC lists how it proposes to carry the voice.
  • ICE, Interactive Connectivity Establishment, is how two endpoints find a media path. Microsoft's media bypass planning page says media bypass uses ICE on the Teams client and ICE Lite on the SBC, and that both are WebRTC standards described in RFC 5245.
  • A candidate is an address and port at which an endpoint offers to receive media. Microsoft's media protocols page says the SBC "must offer only one candidate" and that "Currently, only IPV4 candidates are supported."

The page applies to Direct Routing PSTN calls only. It does not apply to Microsoft Calling Plan or Operator Connect deployments.

The SIP 488 page has other rows that are different faults. The 531000 rows about SRTP and unsupported codecs are covered in Teams Direct Routing 488 / 531000. The row 531052 "Cannot negotiate a new modality with blackhole media" is about an SDP connection address of 0.0.0.0, which Microsoft's page says its SIP stack does not support.

Likely causes

Microsoft's 488 row names one cause: no ICE candidates in the SBC's offer. The media bypass pages add the conditions that have to be true for an offer to carry them.

Cause to check Where Microsoft's pages describe it
ICE Lite is not enabled on the SBC profile that faces Teams The 488 row: enable ICE Lite on the SBC
Media bypass was switched on for the trunk before the SBC was ready for it The configure page: the SBC vendor must support media bypass and give instructions for it; "Switch all users at once" can affect production users
The SBC vendor or model does not support media bypass The configure page points to the list of certified SBCs for the vendor's instructions
Our own reading: also check that the SBC follows Microsoft's ICE Lite rules, that is, it sends no connectivity checks of its own and does not change its candidates, password or ufrag between the 183 and 200 messages The media protocols page, ICE Lite requirements, which does not name 531027
The Teams client is not one that supports bypass The media bypass planning page: other endpoints are converted to non-bypass automatically

The last row is listed so it can be ruled out. Microsoft's media bypass planning page says calls from endpoints that do not support media bypass are converted to non-bypass "even if it started as a bypass call", with no action from the administrator.

Prove the cause before changing anything

All of these steps only read.

  1. Read the exact text from the SBC log or its SIP trace and confirm the code is 531027. Microsoft's monitoring page says Direct Routing sends a detailed description of each issue to the SBC, and that these issues can be read from the SBC logs.

  2. Check whether the trunk is in media bypass. Microsoft's Get-CsOnlinePSTNGateway reference says the cmdlet shows each SBC's configuration, including whether media bypass is enabled. Run this read-only command in a Teams PowerShell session, with your own SBC name in place of the example:

Get-CsOnlinePSTNGateway -Identity sbc.contoso.com

Our own reading: if media bypass is not enabled for the trunk, the 531027 text does not match that trunk's configuration, so check that the log entry belongs to this SBC.

  1. Find the SDP body of the INVITE the SBC sent for a failing call and look for ICE information. Microsoft's pages name the ICE attributes ice-ufrag and ice-pwd, and the a=remote-candidate attribute that appears in the later offer from Teams. Our own reading: an offer with none of these ICE lines matches the message text.

  2. Compare the SBC's behaviour with Microsoft's ICE Lite requirements for the leg to Teams: the SBC offers one IPv4 candidate, answers every connectivity check it receives, sends no connectivity check of its own, and keeps the same candidates, password and ufrag between the 183 and the 200 OK. Microsoft says a check sent by an ICE Lite endpoint can cause unexpected peer-derived candidates and call failures.

  3. Check the firewall requirement for direct media. Microsoft's media bypass planning page lists these ports:

Traffic From To Source port Destination port
UDP/SRTP Client SBC 50000-50019 Defined on the SBC
UDP/SRTP SBC Client Defined on the SBC 50000-50019
  1. Ask whether the SBC model is on Microsoft's certified list for media bypass. Microsoft's configure page says to use the SBC vendor's instructions for media bypass, and its plan page says to contact the SBC vendor first when there are issues.

Fix

Enable ICE Lite on the SBC

Write down the current ICE or ICE Lite setting of the SBC profile that faces Teams, and the time.

Risk: the next step changes how the SBC negotiates media for every call that uses that profile.

Microsoft's instruction on the 488 page is "Make sure that you enable ICE Lite on the SBC." After the change the SBC must meet the requirements in the proof section: one IPv4 candidate, responses to checks, and no checks sent.

To undo it: set the SBC's ICE setting back to the value you wrote down, in the same place in the SBC's interface.

Introducing media bypass in stages

Microsoft's configure page describes a phased approach as the recommended way to introduce media bypass: create a new trunk for the same SBC with a different port, test it, and change the online voice routing policy for the users to point to the new trunk. The page says this approach allows a smoother transition and an uninterrupted user experience, and that switching all users at once can affect production users.

Confirm the fix

  • Place a test call through the trunk. The SBC log no longer shows 531027 for it, and the call connects with audio both ways.
  • Read the SDP of the new INVITE and find the ICE information that was missing.
  • Place a test call from a user inside the network and one from a user outside it. Microsoft's media bypass planning page says media paths differ between them: direct between client and SBC, or through Teams Transport Relays when the client cannot reach the SBC's public IP address.
  • If the next failure is a call that connects and then drops, Teams Direct Routing 410 / 531004 and 531005 covers it.

What to watch afterwards

  • Calls that still use Microsoft's Media Processors on a bypass trunk. Microsoft's media bypass planning page lists the cases: a call escalated from one-to-one to a group call, a call to a federated Teams user, and a call forwarded or transferred to a Skype for Business user.
  • Delay in answering a call, or a few seconds of silence after answering. Microsoft's inbound calls page links this to multiple SIP reinvites sent before the call connects, says that media bypass can require several reinvites by design, and that an SBC which does not offer the appropriate media IP in the original invite must send a reinvite.
  • Calls that drop after about 10 to 20 seconds with no audio. Microsoft's inbound calls page says the reason might be that no media information was received or that the ICE connectivity checks failed.
  • Any change to the firewall between the clients and the SBC. Direct media needs UDP 50000-50019 on the SBC's public address, and the page says translated source ports must also be allowed.
  • A 531052 row for the same trunk, which means the SBC sent an SDP with a connection address of 0.0.0.0.

Risks and limits

These steps come from Microsoft's pages and have not been run or lab-tested. They apply to Direct Routing PSTN calls only.

The ICE Lite step describes what must be true of the offer; the setting that produces it is in the SBC's own interface. Microsoft supports Direct Routing only with certified devices and says to contact the SBC vendor's customer support first.

Sources