Disable forwarding to mobile for internal calls

In the extension settings you can configure routing. If an employee is not available, the call can be directed to his mobile phone number. This function is not necessary for all cases. For example, clients often ask to turn it off for internal calls.

  1. Go to the “System” section -> “System file customization

  1. Select the file “/etc/asterisk/extensions.conf” to edit.

  1. Select the “Add to end of file” mode.

  1. Add the code to the second field:

[internal-users-custom]
exten => _X!,1,ExecIf($[ "${FROM_DID}x" == "x" ]?Set(__QUEUE_SRC_CHAN=${CHANNEL}))
	same => n,return

Last updated