[Asterisk-Users] Re: Stop AGI proccess after user hang-up

Vikram Rangnekar vicky at freebsdcluster.net
Fri Nov 5 10:42:23 MST 2004


+++ Victor Cartes [04/11/04 13:14 -0400]:
> Does anybody know how to stop the AGI process after the user Hang-Up? 
> 'Cause it stills running if the transaction is ended by the user.
> 
> Thanks
> 
> V?ctor 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

Use a signal handler to exit() from your code from your agiapp gets the HUP
signal. I'm almost positive that asterisk sends the AGI application a HUP
signal when the user hangsup.


-- 
regards
Vikram (http://www.vicramresearch.com)



More information about the asterisk-users mailing list