A
A
Arseny Karas2017-05-19 08:38:33
Asterisk
Arseny Karas, 2017-05-19 08:38:33

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

2 answer(s)
D
Dmitry Shitskov, 2017-05-19
@JLD

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})

G
George, 2017-05-19
@gogametreveli

There is a task to run a certain script when entering a certain queue.

If you mean by this the moment when the operator answers the call in the queue, then add a macro call when calling the queue,
for example
....
exten=>_X.,n,Queue(queu_name,tT,,,,,script)
...
[macro -script ]
exten => s,1,AGI(/var/lib/asterisk/agi-bin/add.php,${CALLERID(num)},${CALLERID(all)},${RequesterName})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question