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

2011-11-22 Thread David Cunningham
n...@lists.digium.com > > > [mailto:asterisk-users-boun...@lists.digium.com] On Behalf > > Of Kingsley Tart > > > Sent: Monday, November 21, 2011 7:54 AM > > > To: Asterisk Users Mailing List - Non-Commercial Discussion > >

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

2011-11-22 Thread Kingsley Tart
sterisk-users-boun...@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() >

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

2011-11-21 Thread David Cunningham
n a hangup. > > > > -Original Message- > > From: asterisk-users-boun...@lists.digium.com > > [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Kingsley > Tart > > Sent: Monday, November 21, 2011 7:54 AM > > To: Asterisk Users Mailing List - Non-Commerci

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

2011-11-21 Thread Kingsley Tart
ists.digium.com > [mailto:asterisk-users-boun...@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?

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

2011-11-21 Thread Danny Nicholas
l Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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() f

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

2011-11-21 Thread Kingsley Tart
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

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

2011-11-21 Thread Thorsten Göllner
Hi, I use an AGI with PHP. Here is a short snippet: [...] declare(ticks = 1); pcntl_signal(SIGHUP, array($this, "signal_handler")); [...] public function signal_handler($signal_number)     {     $this->log_message("debug", "Signal

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

2011-11-21 Thread David Cunningham
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 wrote: > We do that with the "F" option in Dial(). > > > >From http://www.voip-info.org/wiki/view/Asteri

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

2011-11-21 Thread David Cunningham
Thorsten, We have SIGHUP set to 'IGNORE', but it still does not continue the AGI after the Dial(). Do you have any idea why that might happen? Thanks for your advice. On 21 November 2011 22:19, Thorsten Göllner wrote: > If the caller hangs up Asterisk sends a SIGHUP. You can catch the signal

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

2011-11-21 Thread Kingsley Tart
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,

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

2011-11-21 Thread Thorsten Göllner
If the caller hangs up Asterisk sends a SIGHUP. You can catch the signal and do whatever you want to do. Am 21.11.2011 07:38, schrieb David Cunningham: Hello, We would like to continue a Perl AGI after a Dial() it has done completes following caller ha

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

2011-11-20 Thread David Cunningham
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. I