T
T
ThreeDHead2021-01-20 12:56:47
Asterisk
ThreeDHead, 2021-01-20 12:56:47

How to catch the hook up event?

There is a call center, an incoming call from outside, when the operator picks up the phone, you need to run some AGI script. How to catch this event (?)?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Barbolin, 2021-01-20
@ThreeDHead

Like this for example

exten => _XXXX,1,NoOp(-------AGENT-DIALPLAN----------)
 same => n,Dial(${EXTEN},60,rU(sub-agi,${CALLERID(num)},${EXTEN},${UNIQUEID}))



[sub-agi]
exten => s,1,Noop(------------Start-Sub-AGI---------------)
 same => n,NoCDR()
 same => n,Noop(${ARG1}
 same => n,Noop(${ARG2}
 same => n,Noop(${ARG3}
 same => n,AGI(myscript.php,${ARG1},${ARG2},${ARG3})
 same => n,return

R
Rsa97, 2021-01-20
@Rsa97

Try the G() option for Dial.

D
Drill, 2021-01-20
@Drill

run script on pickup

D
Dmitry Shitskov, 2021-01-20
@Zarom

Maybe this event will fit
https://wiki.asterisk.org/wiki/display/AST/Asteris...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question