[asterisk-users] Continue AGI after Dial() following caller hang up?
Danny Nicholas
danny at debsinc.com
Mon Nov 21 08:34:20 CST 2011
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
More information about the asterisk-users
mailing list