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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to