The strange thing is that we are using fast AGI, and for some reason the AGI always exits when the caller hangs up - even when I set HUP to IGNORE. If I set HUP to a subroutine that just logs a message, that message is never logged.<br>
<br>Thanks for all the help.<br><br><br><div class="gmail_quote">On 22 November 2011 05:23, Kingsley Tart <span dir="ltr"><<a href="mailto:kingsley@skymarket.co.uk">kingsley@skymarket.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Yeah fastAGI is great, I've been using it for a while for performance<br>
reasons but yes I guess it would solve problems like this too.<br>
<br>
Cheers,<br>
Kingsley.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, 2011-11-21 at 08:34 -0600, Danny Nicholas wrote:<br>
> Just offhand, I think you should utilize the FastAGI protocol, since it<br>
> doesn't seem to live or die based on when the call hangs up. Otherwise,<br>
> the<br>
> $SIG{'HUP'} = 'IGNORE';<br>
> Statement will "separate" the process so it doesn't die on a hangup.<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Kingsley Tart<br>
> Sent: Monday, November 21, 2011 7:54 AM<br>
> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
> Subject: Re: [asterisk-users] Continue AGI after Dial() following caller<br>
> hang up?<br>
><br>
> Yeah I think I slightly misread your original question, which I realised<br>
> when I saw Thorsten's reply. I initially thought you just wanted to avoid<br>
> going into the h extension.<br>
><br>
> I'm not doing any AGI stuff here that hangs around while the call does stuff<br>
> - the AGI process just runs quickly then quits, returning control back to<br>
> the dialplan. I had incorrectly assumed you were doing the same.<br>
><br>
> Cheers,<br>
> Kingsley.<br>
><br>
> On Mon, 2011-11-21 at 23:01 +1100, David Cunningham wrote:<br>
> > Kingsley,<br>
> ><br>
> > Thanks for the reply, but I am looking to continue within the same AGI<br>
> > process and I believe that method would require starting a new AGI.<br>
> ><br>
> ><br>
> > On 21 November 2011 22:22, Kingsley Tart <<a href="mailto:kingsley@skymarket.co.uk">kingsley@skymarket.co.uk</a>><br>
> > wrote:<br>
> > We do that with the "F" option in Dial().<br>
> ><br>
> ><br>
> > >From <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial</a> :<br>
> ><br>
> > F(context^exten^pri): When the caller hangs up, transfer the<br>
> > called<br>
> > party to the specified context and extension and continue<br>
> > execution.<br>
> ><br>
> ><br>
> > Cheers,<br>
> > Kingsley.<br>
> ><br>
> > On Mon, 2011-11-21 at 17:38 +1100, David Cunningham wrote:<br>
> > > Hello,<br>
> > ><br>
> > > We would like to continue a Perl AGI after a Dial() it has<br>
> > done<br>
> > > completes following caller hangup. We would like to do this<br>
> > in the<br>
> > > same AGI, and not using a new AGI from the 'h' extension. It<br>
> > works<br>
> > > fine when the called party hangs up and the 'g' option is<br>
> > used, but<br>
> > > not for caller hangup.<br>
> > ><br>
> > > Is this possible?<br>
> > ><br>
> > > If not a confirmation that this is the case would be very<br>
> > helpful.<br>
> > ><br>
> > > Thanks for any advice!<br>
> > ><br>
> > > --<br>
> > > David Cunningham, Voisonics<br>
> > > <a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
> > > US toll-free: <a href="tel:%2B1%20888%20842%202720" value="+18888422720">+1 888 842 2720</a><br>
> > > UK: <a href="tel:%2B44%20%280%29%2020%203298%201642" value="+442032981642">+44 (0) 20 3298 1642</a><br>
> > > Australia: <a href="tel:%2B61%20%280%29%202%208063%209019" value="+61280639019">+61 (0) 2 8063 9019</a><br>
> > ><br>
> ><br>
> > > --<br>
> > ><br>
> ><br>
> _____________________________________________________________________<br>
> > > -- Bandwidth and Colocation Provided by<br>
> > <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> > > New to Asterisk? Join us for a live introductory webinar<br>
> > every Thurs:<br>
> > > <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
> > ><br>
> > > asterisk-users mailing list<br>
> > > To UNSUBSCRIBE or update options visit:<br>
> > > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
> ><br>
> ><br>
> > --<br>
> ><br>
> _____________________________________________________________________<br>
> > -- Bandwidth and Colocation Provided by<br>
> > <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> > New to Asterisk? Join us for a live introductory webinar every<br>
> > Thurs:<br>
> > <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
> ><br>
> > asterisk-users mailing list<br>
> > To UNSUBSCRIBE or update options visit:<br>
> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > David Cunningham, Voisonics<br>
> > <a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
> > US toll-free: <a href="tel:%2B1%20888%20842%202720" value="+18888422720">+1 888 842 2720</a><br>
> > UK: <a href="tel:%2B44%20%280%29%2020%203298%201642" value="+442032981642">+44 (0) 20 3298 1642</a><br>
> > Australia: <a href="tel:%2B61%20%280%29%202%208063%209019" value="+61280639019">+61 (0) 2 8063 9019</a><br>
> ><br>
> > --<br>
> > _____________________________________________________________________<br>
> > -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> > New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> > <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
> ><br>
> > asterisk-users mailing list<br>
> > To UNSUBSCRIBE or update options visit:<br>
> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
> --<br>
> Cheers,<br>
> Kingsley.<br>
><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>US toll-free: +1 888 842 2720<br>UK: +44 (0) 20 3298 1642<br>
Australia: +61 (0) 2 8063 9019<br><br>