[asterisk-users] Continue AGI after Dial() following caller hang up?

David Cunningham dcunningham at voisonics.com
Mon Nov 21 21:27:56 CST 2011


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.

Thanks for all the help.


On 22 November 2011 05:23, Kingsley Tart <kingsley at skymarket.co.uk> wrote:

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



-- 
David Cunningham, Voisonics
http://voisonics.com/
US toll-free: +1 888 842 2720
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111122/b2ce4056/attachment.htm>


More information about the asterisk-users mailing list