[Asterisk-Users] AGI hangup problem

Branko Samardzic branko_samardzic at rogers.com
Sat Apr 1 13:11:32 MST 2006


Well that's fine but then I don't have any channel variable info I might
have from channel otherwise. I am catchning exception now but I am wondering
if there is some more appropriate way for Asterisk to handle hangup (to
stick around for some more time just in case someone wants to pull any
channel info after hangup).


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Stefan
Reuter
Sent: Saturday, April 01, 2006 2:04 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] AGI hangup problem


Branko Samardzic wrote:
> I have problem with Asterisk.
> [sendCommand]=EXEC "DIAL" "IAX2/somehost/somenumber|10"
> [readReply]=200 result=-1
> [sendCommand]=GET VARIABLE "ANSWEREDTIME"
> 1086422 [Thread-7] ERROR - establishConnection: exec encountered exception
> net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up.
> This means that AGI is not capable of extracting data about call
performed.
> Is there any workaround?

just catch the exception and go on...





More information about the asterisk-users mailing list