[Asterisk-Users] DeadAGI and Hangup on channel

Grigoriy Puzankin asterisk at b-great.net
Fri Jan 27 01:53:42 MST 2006


Hello,

I'm trying to catch channel hangup in DeadAgi script. For example, A
calls to DeadAgi script which connects (Dial) to B. After Dial command
exits I need to identify where hangup came from: A or B. CHANNEL
STATUS returns 6 (Line is Up) regardless of who hungup.

In CLI "show channels" states that channel A to DeadAgi is UP even if
A and B hungup.

If A stays on the line after conversation with B (hangup from B), then
DeadAgi would continue (with prompts and etc.), if A is off then
DeadAgi should exit gracefully (not killed as Agi).

Does anyone know how to do it?

Thanks in advance.

--
Grigoriy Puzankin




More information about the asterisk-users mailing list