Answer the question
In order to leave comments, you need to log in
How to correctly register the launch of a script on a specific queue in the dialplan?
Good afternoon.
Telephony has been deployed, IVR menus and queues have been created. There is a task to run a certain script when entering a certain queue. I can’t figure out how to correctly register this launch in diaplan.
The test script works if you write the command in extensions_custom:
[from-internal-custom]
exten => 123,1,AGI(/var/lib/asterisk/agi-bin/add.php,${CALLERID(num)},$ {CALLERID(all)},${RequesterName})
Registered in different ways in custom and in override, the script never started.
I have been dealing with telephony for literally a week, please do not judge strictly for a Nubian question.
Answer the question
In order to leave comments, you need to log in
Let's assume that your queue number is 123. Then you will have to add an extension like this to ext-queues in extensions_override_freepbx.conf:
exten => 123,1,AGI(/var/lib/asterisk/agi-bin/add.php,${CALLERID(num)},${CALLERID(all)},${RequesterName})
same => n,Queue(${EXTEN})
There is a task to run a certain script when entering a certain queue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question