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

NetLeverage
NetLeverage

Teams Direct Routing 408 / 500001 "Gateway (SBC) failover timer expired": the SBC answers too slowly

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.

An outbound Direct Routing call starts when Microsoft sends an invitation to the business's session border controller (SBC) and waits for the SBC to start answering. Microsoft gives each gateway a timer for that wait. When the timer runs out, Microsoft records SIP 408 with Microsoft response code 500001, tries the next trunk if there is one, and drops the call if there is not.

The sections below show how to read the code, where the delay can sit, how to measure it without changing anything, how to lengthen the timer for one gateway with a record to undo from, and how to confirm the result. The companion fault, where the callee answers and the SBC never acknowledges, is covered in the 408 / 1106 page.

What the error means

Microsoft's SIP 408 page lists "500001 408 Gateway (SBC) failover timer expired", with Microsoft response code 500001 and SIP response code 408. Its suggested action begins: "Investigate why the SBC didn't send a response to the invitation within the configured time-out value, as defined by FailoverTimeSeconds. The default value is 10 seconds."

The page goes on to say that the error occurs in regions that have long PSTN setup times, and suggests changing the failover timer to 20 seconds in those regions or on all Direct Routing trunks.

Microsoft's cmdlet reference for Set-CsOnlinePSTNGateway describes what the timer does: when it is set to 10, the default, outbound calls that are not answered by the gateway within 10 seconds are routed to the next available trunk, and if there are no additional trunks the call is automatically dropped. The page adds that in an organisation with slow networks and slow gateway responses, that could result in calls being dropped unnecessarily.

The same Microsoft page carries three other 408 rows. They are different faults and this page does not take them further:

Code and text Microsoft's suggested action in short
1106 "An acknowledgement was not received for the call acceptance in the allotted time" The callee answered and the SBC did not acknowledge the answer; work with the SBC vendor
560408 "SBC indicated that the user did not respond (request timeout)" Look through call records with CallEndSubReason = 560408 for trends in called numbers or destination countries
0 "Establishment timeout" A client error; check the network connection between the client and the Teams service

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

Likely causes

Cause Where Microsoft's pages describe it
The path to the destination has a long PSTN setup time, so the SBC cannot answer within the timer The 500001 row
The timer is still at its default of 10 seconds The 500001 row and the SBC settings table
The SBC or another device on the network produces the failure The outbound-calls page, "Outbound calls fail after reaching the SBC", Cause 1
The PSTN provider has a problem The same page, Cause 2
A device on the network, such as a firewall, blocks the SIP messages, so the gateway never responds The same page, "No users can make outbound calls", Cause 2

Prove the cause before changing anything

All of these steps only read.

  1. Find which calls fail. In the Teams call records for the failing calls, list the called numbers, the destination countries and the time of day. Microsoft's page ties the error to regions with long PSTN setup times.

  2. Read the timer. Microsoft's SBC connection page shows this read-only command, whose output includes the FailoverTimeSeconds value:

Get-CsOnlinePSTNGateway -Identity sbc.contoso.com

Replace the example name with the SBC's name. Write down the value shown for FailoverTimeSeconds, and the time.

  1. Measure the delay on the SBC. In the SBC's own SIP trace for a failing call, compare the time the invitation arrived from Microsoft with the time the SBC sent its first response. Microsoft's outbound-calls page says to inspect the SIP trace, and to contact the PSTN provider if the failure originates in the PSTN network.

  2. Look at what can sit between Microsoft and the SBC. Microsoft's page says to allow SIP signalling IP addresses and FQDNs on all network devices that connect the SBC to the internet. The planning page gives the signalling ranges 52.112.0.0/14 and 52.120.0.0/14 and says to allow signalling to and from all Microsoft Teams IP ranges, not only the addresses returned from DNS. The 1106 page lists the ports. Read the firewall's rules and logs for blocked SIP traffic; do not change a rule yet.

  3. Note how many SBCs the policy reaches. Microsoft's SBC settings table says FailoverResponseCodes defaults to 408, 503, 504, and that these codes force Direct Routing to try another SBC in the user's voice routing policy when one exists. Our own reading: with two SBCs, a call can fail on the first and succeed on the second, so look at the call records for both before deciding that the second one is healthy.

Fix

Route 1 changes the timer on the gateway. The section after it describes what Microsoft's pages say about a delay inside the SBC, at the carrier or on the network, and gives no steps.

Route 1: lengthen the failover timer on one gateway

Write down the current FailoverTimeSeconds value of the gateway and the time.

Risk: the next command changes how long Microsoft waits for this gateway before moving an outbound call to the next trunk. Microsoft says calls that are not answered within the time are routed to the next available trunk, and the call is dropped if there is none. Our own reading: a longer timer means a caller waits longer before the call moves on when the SBC is really down.

Microsoft's 500001 row suggests 20 seconds. The cmdlet reference shows the parameter on Set-CsOnlinePSTNGateway:

Set-CsOnlinePSTNGateway -Identity sbc.contoso.com -FailoverTimeSeconds 20

Replace the example name with the SBC's name. Our own advice: change one gateway first.

To undo it: run the same command with -FailoverTimeSeconds set to the value you wrote down.

What Microsoft's pages say about the delay itself

Changes to a firewall or an SBC belong to whoever runs those devices, and no steps are given for them. Microsoft's suggested action is to find out why the SBC did not respond in time. Where the SIP trace shows the delay inside the SBC, Microsoft says to troubleshoot the device that returns the error and, if help is needed, to contact the device vendor. Where it shows the failure coming from the PSTN network, the page says to contact the PSTN provider. Where traffic never reached the SBC, Microsoft's outbound-calls page says to allow SIP signalling IP addresses and FQDNs on all network devices that connect the SBC to the internet, and its planning page lists the signalling ranges 52.112.0.0/14 and 52.120.0.0/14 and says to allow signalling to and from all Microsoft Teams IP ranges, not only the addresses returned from DNS. The same outbound-calls page gives, as a cause of a gateway that does not respond, a device on the network such as a firewall that blocks the messages.

Confirm the fix

  • Run Get-CsOnlinePSTNGateway -Identity sbc.contoso.com again, with the SBC's name. FailoverTimeSeconds shows the new value.
  • Place test calls to the destinations that failed. The calls connect and the call records no longer show 500001 for them.
  • Call a destination that answers quickly as well. A change to the timer should not alter it.
  • In the SBC trace, the first response now arrives inside the timer.

What to watch afterwards

  • Repeat failures at the new value. If 500001 continues at 20 seconds, go back to the SBC trace and to what Microsoft's pages say about the delay itself.
  • The 1106 and 560408 rows from the same Microsoft page. A longer timer does not touch them. The 1106 page covers the first.
  • Network devices that drop sessions. Our articles on idle connection drops, firewall pair failover and asymmetric routing describe those faults.
  • Capacity. Microsoft's SBC settings table says that when MaxConcurrentSessions is set, the alerting system notifies when the number of concurrent sessions is 90 percent or higher than that value.

Risks and limits

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

Microsoft's SIP 408 page, dated 9 November 2026, gives the code, the default timer and the 20-second suggestion. A longer timer changes behaviour for every call through the gateway, not only for the slow destinations.

Sources