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

2011-11-22 Thread Kingsley Tart
When something makes a socket connection to your fastAGI daemon, does
your daemon fork a child process to deal with that connection, or handle
it in the main process?

I've set ours up to fork a child process and detach itself from the
parent socket. When it ends, the child exits (which is what we want) and
the parent stays running (which is also what we want).

Is there any particular reason you want your fastAGI instance to persist
for the duration of the call?

Cheers,
Kingsley.

On Tue, 2011-11-22 at 14:27 +1100, David Cunningham wrote:
 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 kings...@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-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()
 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
 kings...@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

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

2011-11-22 Thread David Cunningham
Kingsley,

We have the same - the daemon forks child processes to handle individual
calls.

We need the fastAGI to continue so it can take some further action
recording details of the call. This could be done using the 'h' extension,
but it would be nice to avoid this method for simplicity sake. It does
appear that some people can continue after the Dial and we can't for some
reason.


On 22 November 2011 21:21, Kingsley Tart kings...@skymarket.co.uk wrote:

 When something makes a socket connection to your fastAGI daemon, does
 your daemon fork a child process to deal with that connection, or handle
 it in the main process?

 I've set ours up to fork a child process and detach itself from the
 parent socket. When it ends, the child exits (which is what we want) and
 the parent stays running (which is also what we want).

 Is there any particular reason you want your fastAGI instance to persist
 for the duration of the call?

 Cheers,
 Kingsley.

 On Tue, 2011-11-22 at 14:27 +1100, David Cunningham wrote:
  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 kings...@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-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()
  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
  kings...@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

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 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


-- 
Thorsten Gllner

OVM Office Voice Media GmbH
Herderstrasse 68
40237 Dsseldorf

Tel.: +49(0)211 / 618 57 53
Fax: +49(0)211 / 618 57 54
  


--
_
-- 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

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, 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


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 t...@ovm-group.com wrote:

  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 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


 --
 Thorsten Göllner

 OVM Office Voice Media GmbH
 Herderstrasse 68
 40237 Düsseldorf

 Tel.: +49(0)211 / 618 57 53
 Fax: +49(0)211 / 618 57 54


 --
 _
 -- 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

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 kings...@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

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 catched:
  signo=$signal_number");
   
   switch($signal_number) {
   case SIGHUP:
   // signal for hangup (comes from asterisk)
   $this-log_message("debug", "Hangup
  detected.");
   exit(0);
   break;
  
   default:
   $this-log_message("error", "Undefined signal
  '".$signal_number."'.");
   break;
   }
   }

Work for me. Give it a try.

Best regards,
-Thorsten-

Am 21.11.2011 13:00, schrieb 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 Gllner t...@ovm-group.com
wrote:

   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 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!
  

  


-- 
Thorsten Gllner

OVM Office Voice Media GmbH
Herderstrasse 68
40237 Dsseldorf

Tel.: +49(0)211 / 618 57 53
Fax: +49(0)211 / 618 57 54
  

  
  
  
  -- 
  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

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, 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 kings...@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


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

2011-11-21 Thread Danny Nicholas
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-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() 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 kings...@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


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

2011-11-21 Thread Kingsley Tart
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-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() 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 kings...@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

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

2011-11-21 Thread David Cunningham
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 kings...@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-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() 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 kings...@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

[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.

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