[asterisk-users] Re: How to determine which party h angup the call? cause of Hang-up needed.‏

2010-08-10 Thread Philipp von Klitzing
Hi!

 Is there ANYWAY to find out which party hang-up the call or if the call
 was cut-off due to other reasons? 

The only way - apart from putting DAHDI or SIP into debug mode - I can 
think of is to use the 'g' option of Dial(): If the remote side hangs up 
then 'g' will come into effect; if the local side hangs up this will not 
happen.

But don't ask me what happens if Asterisk in between the two (as B2BUA 
man-in-the-middle) decides to to hang up... is it in this case acting on 
behalf of one of the two call legs?

In general: It would be a great help if Asterisk provided an easy way to 
get at this information, i.e. who was it that hung up a call.

Philipp


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] Re: How to determine which party h angup the call? cause of Hang-up needed.‏

2010-08-10 Thread Philipp von Klitzing
 read the value of var ${HANGUPCAUSE} next line to dial command.

So how can you be sure this has been populated by PRI and not by SIP?
This will not tell you which side hung up.

Philipp


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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