Hi all, 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 ? Thanks for help, Thomas.
willy@yponeinc.com
2004-Mar-16 08:07 UTC
[Asterisk-Users] AGI script will not be terminated
To amplify the question: Here's a non-AGI scenario: Call from outside. Dial VoiceMail extension in order to allow the user to check his/her mailbox. User decides this is wrong time, and hangs up. Asterisk keeps looping 4-ever (as witnessed by lookign at console messages) prompting th e(now disconnected) user to select an option. What gives? Cheers, Willy ----- Original Message Follows -----> Hi all, > > 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 ? > > Thanks for help, > > Thomas. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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
Hi Thomas, Do you answer correctly in your dial plan ? I met the same problem but unfortunately I don t remember what I was doing wrong :/ exten => 1112,1,Answer exten => 1112,2,Wait(1) exten => 1112,3,agi,myscript On Tue, 2004-03-16 at 15:58, Thomas Haeger wrote:> Hi all, > > 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 ? > > Thanks for help, > > Thomas. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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
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