I’ve developed a subroutine for a PBX, and everything works fine.
It’s a simple subroutine for call recording, via MixMonitor.
features.conf
...
[applicationmap]
recondemand => *9,caller,Gosub(hash-custom-record,recondemand,1)
...
extensions.conf
...
[globals]
DYNAMIC_FEATURES => recondemand
...
[hash-custom-record]
; sub recondemand - Custom recording feature for the PBX:
exten => recondemand,1,Noop(Custom recording action - Running in ${CONTEXT} at ${EXTEN})
same => 2,Read(digs,/etc/asterisk/custom/sounds/wave-entercode,0,1,,60)
same => 3,GotoIf($["${digs}"="0"]?4:7)
same => 4,StopMixMonitor
same => 5,StopMonitor
same => 6,Return()
same => 7,MixMonitor(/home/asterisk/monitor/${digs}.wav49,b)
same => 8,Return()
exten => t,1,playback(timeout-msg)
exten => t,n,Hangup()
...
On this PBX the configuration above works just fine, so I copied that conf on another PBX where I need the same feature.
But, on this other PBX, the Gosub doesn’t get called.
The DTMF are detected, I see the DTMF on the Asterisk CLI, but they are just ignored. Nothing happens after the DTMF signals.
If I try to call some other feature (even another Gosub) it works as expected.
But, my recondemand no, the “*9” DTMFs are detected but nothing happens after.
What can I check?
There is some option in Asterisk .conf files that can prevent my Gosub to get called?
Thank you for your help