I am trying to set up a feature code for my users that will transfer the channel they are currently connected to, to a specific external number. The users should not be able to reach the external number by dialing it (or the shortcode) directly - it should only be accessible via transfer.
I currently have the following set up (using Custom Dynamic Feature Codes):
[globals](+) DYNAMIC_FEATURES = externaltransfer#apprecord
externaltransfer => *300,peer,Dial(Local/<redacted>@from-internal)
When dialing *300 during an active call, the Dial executes (and I can hear ringing on the called side’s end), but thereafter the call disconnects and my original call is still active.
I have also tried the following:
externaltransfer => *300,peer,Gosub(ext-transfer,1,1)
with this in extensions_custom.conf:
[ext-transfer] exten => 1,1,Answer() exten => 1,n,Dial(Local/<redacted>@from-internal) exten => 1,n,Hangup()
This doesn’t work either.
Here is an output of a call attempt using the setup described above:
Where am I going wrong?