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

Steven Critchfield critch at basesys.com
Thu Nov 4 11:43:33 MST 2004


On Thu, 2004-11-04 at 13:14 -0400, Victor Cartes wrote:
> 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.

You must handle t his in your AGI application. If you start getting back
broken reads from the STDIN filehandle, the other side of the pipe has
gone away and you need to clean up and exit. Also most AGI commands will
let you know when asterisk has detected a hangup or other failure
condition and you should handle those appropriately.

-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list