📜 ⬆️ ⬇️

Technical support 3CX responds: conditions for switching to the backup route (trunk) in outgoing rules

We are often addressed with a similar question: on what principle does a trunk switch occur in an outbound rule if the primary trunk is unavailable?

We have prepared a comprehensive answer to this question. It can be divided into 3 parts:


Introduction


As you know, 3CX can have up to 5 different routes in the outgoing rule . You can prioritize these routes. If the first route (in fact, a trunk or a VoIP gateway) cannot complete a call, it is transmitted via the second route, etc.
')
image

It is important for us to understand which events can affect the failure to terminate the call on the main trunk and switch to the backup trunk.

Select and switch route



Early Media and Ringing options


When using more than one trunk in an outbound rule, the processing of Early Media and Ringing messages has its own characteristics. Since 3CX cannot predict in advance whether it will switch to the backup route, it changes the Early media message processing rules (usually 183 Ringing).

After receiving SIP 183 Ringing messages, which are usually used when transmitting specific messages from the operator (for example, service voice messages of the “wait for a subscriber” network), this message is converted to SIP message 180, and the audio stream from the operator is “silenced”. The subscriber on the extension number 3CX hears not the operator’s service messages, but the dial tone of the SIP telephone (CPV). For reference:


Trunks with IP authorization


If the operator has provided a trunk for the 3CX server to the public IP address of this server (trunk with IP authorization), 3CX does not register the trunk on the operator’s SIP server. Thus, 3CX cannot determine whether this trunk “works” or not. From the point of view of 3CX, it always “works” (in 3CX it “glows” in green). When processing an outbound rule, 3CX will always try to use this trunk. If the trunk is “idle”, it will delay 32 seconds. before switching to the next trunk. Unfortunately, this behavior cannot be changed.

SIP error codes for trunk switching


SIP codes of messages (errors), in which the trunk is switched:

Source: https://habr.com/ru/post/331568/


All Articles