You can add to /etc/asterisk/globals_custom.conf
QGOSUB=context,extension,priority
Working code
on /etc/asterisk/globals_custom.conf
QGOSUB=subCreateTicket,start,1
on /etc/asterisk/extensions_custom.conf
[subCreateTicket]
exten => s,1,System(/usr/scripts/createsupportticket.sh CALLID=${FROMEXTEN} EXT=${CALLERID(num)})
same => n,Return()
http://community.freepbx.org/t/trigger-shell-script-on-queue-answer/22919
No hay comentarios:
Publicar un comentario