Prohibiting calls via a backup route

When describing outgoing routes, it is allowed to use the same phone number template.

If several routes are used with the same template, the PBX will try to make a call on each of the routes until the call is accepted.

This functionality is not always necessary and there may be a need to disable it.

At the moment, this can only be done through the customization of the PBX.

  1. Go to the provider's settings and copy its ID in the browser's address bar:

Provider ID
  1. Go to the section "System file customization"

System file cuztomization menu
  1. Go to the editing section of the extensions.conf file.

extensions.conf file
  1. Add the following context to the end of the file:

[SIP-1687941868-outgoing-after-dial-custom]
exten => _X!,1,Hangup()
	same => n,return
Code in extensions.conf

Save the changes. Now all calls via routes associated with the provider will occur without taking into account the backup provider. It will work out only the first of the outgoing routes.

Last updated