Can't you use the "h" extension?

exten => h,1,AGI(hangup)

-wade

> -----Original Message-----
> From: James Golovich [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 16, 2003 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Dev] AGI script - Hang up
> 
> 
> On 16 Sep 2003, Areski wrote:
> 
> > Someone know if it's possible in an agi to run a function when the
user
> > hang up the phone.
> 
> Unfortunately when the call has hungup all AGI functions stop working.
> If the call is in an AGI script you can detect the call hangup by
checking
> the return value of the AGI calls and take action based on that, but
you
> are unable to execute any AGI commands.
> 
> I tried modifying app_agi.c to allow the AGI commands to continue to
> function but its not exactly trivial to do this.  I was able to make *
> continue to accept AGI commands after hangup, but I couldn't come up
with
> a good way to get * to stop servicing the AGI commands without some
kind
> of timeout.
> 
> James
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-dev
_______________________________________________
Asterisk-Dev mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to