VOS3000 guide

Carrier failover: when VOS3000 tries the next routing gateway

A carrier fails a call. Whether VOS3000 tries the next one depends on what the carrier sent first, and on a few settings.

Updated · By the VOS3000 Web team

Quick answer: VOS3000 tries the next routing gateway when a carrier fails a call. With Switch gateway until connect off (the default), it stops switching once the call connects or rings, on busy or no answer, and on the protocol rules: by default a SIP carrier's SDP or its RTP also ends the search. Switch gateway until connect keeps trying until 200 OK, except after busy or RTP start.

Main switch
Switch gateway until connect, Off
Stops on busy
SS_GATEWAY_SWITCH_STOP_AFTER_USER_BUSY, On
Stops on SDP
SS_SIP_STOP_SWITCH_AFTER_SDP, On
Attempt limit
SS_GATEWAY_SWITCH_LIMIT, None
Carrier failover rules – Main switch: Switch gateway until connect, Off; Stops on busy: SS_GATEWAY_SWITCH_STOP_AFTER_USER_BUSY, On; Stops on SDP: SS_SIP_STOP_SWITCH_AFTER_SDP, On
What makes VOS3000 try the next carrier and what stops it: ringing, busy, SDP, RTP start, response codes, timeouts and the switch limit.

Failover means moving a failed call to the next routing gateway. Which gateway comes next is set by routing order. This page is about the other question: does VOS3000 move on at all?

The basic rule

The main setting is Switch gateway until connect on the routing gateway. Its Default option follows the system parameter SS_GATEWAY_SWITCH_UNTIL_CONNECT, which is Off.

  • Off: VOS3000 tries the next gateway, except when the call has connected or is ringing, when it receives busy or no answer, and when a protocol setting says stop.
  • On: VOS3000 keeps switching until it gets a connect signal, SIP 200 OK or H.323 Connect.

In practice, with the default, a carrier that sends 180 Ringing keeps the call, even if it fails a moment later. Only failures before ringing move the call on.

Every switch condition

Each routing gateway setting has a Default option that follows its system parameter. The defaults below are from the manual's parameter table.

Setting / parameterDefaultEffect
Switch gateway until connect / SS_GATEWAY_SWITCH_UNTIL_CONNECTOffOn: switch until 200 OK or Connect. Overrides the SDP and OLC settings.
Stop switch gateway when rtp start / SS_GATEWAY_SWITCH_STOP_AFTER_RTP_STARTOnWith media proxy, stop once RTP arrives from the gateway. Applies even with Switch gateway until connect on.
Callee busy stop switch / SS_GATEWAY_SWITCH_STOP_AFTER_USER_BUSYOnStop when the gateway sends busy. Applies even with Switch gateway until connect on.
Stop switch gateway after receive sdp (SIP) / SS_SIP_STOP_SWITCH_AFTER_SDPOnStop once the carrier sends SDP. Ignored when Switch gateway until connect is on.
Stop switch gateway after olc (H323) / SS_H323_STOP_SWITCH_AFTER_OLCOffStop after faststart or OpenLogicalChannel (H245). Ignored when Switch gateway until connect is on.
Stop switching response code (SIP)Not statedStop when the carrier sends one of these codes.
SS_SIP_USER_AGENT_STOP_SWITCH_AFTER_INVITE_TIMEOUTOffStop Switch Gateway After INVITE Timeout. The manual lists it with the SIP user agent parameters and gives no more detail.
SS_GATEWAY_SWITCH_LIMITNoneTimes limit for routing gateway auto-switch.

Why SDP and RTP stop the search

A carrier that sends 183 Session Progress with SDP, or starts sending audio, may already be playing ringback or an announcement to the caller. Switching after that would mix two carriers' tones on one call. That is why both stops are on by default.

It changes your reports too. The manual's analysis report counts a routing gateway's 183 with SDP as ringing when Stop switch gateway after receive sdp is on.

The cost: a carrier that sends SDP and then fails, for example with 503, takes the call down with it. If one carrier does this often, turn off Stop switch gateway after receive sdp on that routing gateway only. Check with a few test calls that the caller does not hear the first carrier's tones.

Response codes

Use Stop switching response code for answers that are true on every route. 404 and 484 mean the number is wrong; another carrier will say the same. Leave 502, 503 and 408 out, so congestion and outages move the call on. Busy is already covered by Callee busy stop switch. See Q.850 cause codes for which causes are worth a second route.

Timeouts

A carrier that never answers the INVITE is the slowest failure. VOS3000 waits SS_SIP_TIMEOUT_INVITE, 10 seconds by default, before it moves on. Lower it on a routing gateway to fail over sooner; see SIP timeouts. To skip a dead carrier before any call waits, use SIP OPTIONS checks.

The routing gateway option Do not disabled when timeout keeps a gateway usable after a timeout. The manual gives only that line; it implies that a gateway can otherwise be set aside after timeouts.

Capping the attempts

Each failed attempt adds post dial delay, and the caller's own equipment may give up first. SS_GATEWAY_SWITCH_LIMIT caps how many times one call switches gateway. A route marked Set to protect route is used only when the normal gateways do not connect.

Worked example

Gateways A, B and C carry the same prefix, with priorities 1, 2 and 3. All settings are at their defaults.

  1. A answers 503. Nothing has rung, so VOS3000 tries B.
  2. B does not answer the INVITE within 10 seconds. VOS3000 tries C.
  3. Had B sent 183 with SDP and then 503, the call would end there: C is not tried.
  4. Had B sent 486 Busy Here, the call would also end: the callee is busy everywhere.

To see which carriers fail and why, use gateway fail analysis. For the reason on a single call, see call failed errors.

Questions about this topic

Why does VOS3000 not try the next carrier after the call rings?

With Switch gateway until connect off, the default, ringing ends the search. Only failures before ringing move the call on.

Why do calls not fail over after 183 Session Progress?

SS_SIP_STOP_SWITCH_AFTER_SDP is on by default, so VOS3000 stops switching once a SIP carrier sends SDP. Turn it off on that routing gateway if the carrier often sends SDP and then fails.

How do I limit how many carriers one call tries?

Set the system parameter SS_GATEWAY_SWITCH_LIMIT, the times limit for routing gateway auto-switch. Its default is None.

Does Switch gateway until connect also retry after a busy?

No. Callee busy stop switch and Stop switch gateway when rtp start still apply when Switch gateway until connect is on.

Run VOS3000 without the server work

Pick a VOS3000 server hosted by us, or have us install VOS3000 on your own server. VOS3000 Web and the Android app come with it.