[Asterisk-Users] AGI script will not be terminated

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Mar 16 09:24:44 MST 2004


On Tuesday 16 March 2004 08:58, Thomas Haeger wrote:
> if i answer a call on my astbox and go into an AGI script... then
> there is somthing happens.(play music or something like that)...and
> the person who called to the box hangs up the script will never be
> terminated. The process hangs around self the asterisk process is
> terminated.
>
> Is this a bug, or is there something i'am doing wrong ?

Your script may be ignoring the HUP signal sent to it when the caller
hangs up.  You'll probably want to install a signal handler for the
HUP signal which does something other than ignore the signal (e.g.
clean up its resources and exit).

-Tilghman




More information about the asterisk-users mailing list