Re: [asterisk-users] Forking AGI or GoSub

2019-04-23 Thread John Runyon
Glancing at the code, Asterisk appears to wait for the pipe between
Asterisk and the AGI to be closed before it considers it completed. So, the
problem is this pipe is duplicated into the child.

Try adding this after setsid:
fclose(STDIN);
fclose(STDOUT);
fclose(STDERR);
fopen('/dev/null', 'r'); // set fd/0
fopen('/dev/null', 'w'); // set fd/1
fopen('php://stdout', 'w'); // a hack to duplicate fd/1 to 2

(from
https://andytson.com/blog/2010/05/daemonising-a-php-cli-script-on-a-posix-system/
 )

On Mon, 22 Apr 2019 at 12:28, Dovid Bender  wrote:

> Eric,
>
> As I mentioned before that does not seem to work with PHP
>
>   == Using SIP RTP CoS mark 5
> -- Executing [my_test_test@from-external:1]
> NoOp("SIP/fpp--09ca", "") in new stack
> -- Executing [my_test_test@from-external:2]
> AGI("SIP/fpp--09ca",
> "fast_agi_wrapper,my_test,cnum=1009=Dovid Bender") in new stack
> -- Launched AGI Script /opt/dovid/fastagi/fast_agi_wrapper
>  fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: We are the
> parent. Let's die!
>  fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: We are child
> here. Taking a nap !
>  fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: That nap was
> god!
> -- AGI Script
> /opt/dovid/fastagi/fast_agi_wrapper completed, returning 0
> -- Executing [my_test_test@from-external:3]
> Playback("SIP/fpp--09ca", "tt-monkeys") in new stack
> --  Playing 'tt-monkeys.slin' (language
> 'en')
> -- Remote UNIX connection
> -- Remote UNIX connection disconnected
>
>
> My code:
> 
>
> $pid = pcntl_fork();
> if ($pid != 0) {
>  // we are the parent
>  // do parent stuff
> $fastagi->verbose("We are the parent. Let's die!");
>  exit;
> }
>
> // we are the child, detatch from terminal
> $sid = posix_setsid();
> if ($sid < 0) {
>  die;
> }
> // do child stuff
>
> $fastagi->verbose("We are child here. Taking a nap !");
> sleep(5);
> $fastagi->verbose("That nap was god!");
>
> ?>
>
>
>
>
> On Fri, Apr 19, 2019 at 2:16 PM Eric Wieling  wrote:
>
>> In PHP something like:
>>
>> $pid = pcntl_fork();
>> if ($pid != 0) {
>>  // we are the parent
>>  // do parent stuff
>>  exit;
>> }
>>
>> // we are the child, detatch from terminal
>> $sid = posix_setsid();
>> if ($sid < 0) {
>>  die;
>> }
>> // do child stuff
>>
>> On 04/19/2019 02:00 PM, Mark Wiater wrote:
>> > On 4/19/2019 1:49 PM, Dovid Bender wrote:
>> >> Mark,
>> >>
>> >> I am using PHP agi and when forking the call does not continue util
>> >> the forked process is done. Am I doing it wrong?
>> >>
>> >>
>> >> On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater > >> > wrote:
>> >>
>> >> On 4/10/2019 3:54 PM, Dovid Bender wrote:
>> >>> I have an AGI that can sometimes take time complete. I don't want
>> >>> the dialplan to be held up by the agi. Is there any way to call
>> >>> it and have Asterisk continue with the dialplan?
>> >>>
>> >>
>> >> Is there a reason you can't fork in the AGI and just return to the
>> >> dialplan in the parent?
>> >>
>> > Dovid,
>> >
>> > I'm not much of a PHP person, but in perl, i check the process id
>> that's
>> > returned from fork() and exit if it's 1 (parent) and keep processing if
>> > it's the child (greater than 1).
>> >
>> > I think php uses pcntl_fork().
>> >
>> > Is that how you're doing it?
>> >
>> >
>> >
>>
>> --
>> http://help.nyigc.net/
>>
>> --
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> 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 --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users



-- 
Regards,
John Runyon
Simply NUC
512-766-0401 x1110
495 Round Rock West Dr, Round Rock, TX 78681
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-22 Thread Dovid Bender
Eric,

As I mentioned before that does not seem to work with PHP

  == Using SIP RTP CoS mark 5
-- Executing [my_test_test@from-external:1]
NoOp("SIP/fpp--09ca", "") in new stack
-- Executing [my_test_test@from-external:2]
AGI("SIP/fpp--09ca",
"fast_agi_wrapper,my_test,cnum=1009=Dovid Bender") in new stack
-- Launched AGI Script /opt/dovid/fastagi/fast_agi_wrapper
 fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: We are the
parent. Let's die!
 fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: We are child
here. Taking a nap !
 fast_agi_wrapper,my_test,cnum=1009=Dovid Bender: That nap was
god!
-- AGI Script
/opt/dovid/fastagi/fast_agi_wrapper completed, returning 0
-- Executing [my_test_test@from-external:3]
Playback("SIP/fpp--09ca", "tt-monkeys") in new stack
--  Playing 'tt-monkeys.slin' (language 'en')
-- Remote UNIX connection
-- Remote UNIX connection disconnected


My code:
verbose("We are the parent. Let's die!");
 exit;
}

// we are the child, detatch from terminal
$sid = posix_setsid();
if ($sid < 0) {
 die;
}
// do child stuff

$fastagi->verbose("We are child here. Taking a nap !");
sleep(5);
$fastagi->verbose("That nap was god!");

?>




On Fri, Apr 19, 2019 at 2:16 PM Eric Wieling  wrote:

> In PHP something like:
>
> $pid = pcntl_fork();
> if ($pid != 0) {
>  // we are the parent
>  // do parent stuff
>  exit;
> }
>
> // we are the child, detatch from terminal
> $sid = posix_setsid();
> if ($sid < 0) {
>  die;
> }
> // do child stuff
>
> On 04/19/2019 02:00 PM, Mark Wiater wrote:
> > On 4/19/2019 1:49 PM, Dovid Bender wrote:
> >> Mark,
> >>
> >> I am using PHP agi and when forking the call does not continue util
> >> the forked process is done. Am I doing it wrong?
> >>
> >>
> >> On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater  >> > wrote:
> >>
> >> On 4/10/2019 3:54 PM, Dovid Bender wrote:
> >>> I have an AGI that can sometimes take time complete. I don't want
> >>> the dialplan to be held up by the agi. Is there any way to call
> >>> it and have Asterisk continue with the dialplan?
> >>>
> >>
> >> Is there a reason you can't fork in the AGI and just return to the
> >> dialplan in the parent?
> >>
> > Dovid,
> >
> > I'm not much of a PHP person, but in perl, i check the process id that's
> > returned from fork() and exit if it's 1 (parent) and keep processing if
> > it's the child (greater than 1).
> >
> > I think php uses pcntl_fork().
> >
> > Is that how you're doing it?
> >
> >
> >
>
> --
> http://help.nyigc.net/
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Eric Wieling

In PHP something like:

$pid = pcntl_fork();
if ($pid != 0) {
// we are the parent
// do parent stuff
exit;
}

// we are the child, detatch from terminal
$sid = posix_setsid();
if ($sid < 0) {
die;
}
// do child stuff

On 04/19/2019 02:00 PM, Mark Wiater wrote:

On 4/19/2019 1:49 PM, Dovid Bender wrote:

Mark,

I am using PHP agi and when forking the call does not continue util 
the forked process is done. Am I doing it wrong?



On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater > wrote:


On 4/10/2019 3:54 PM, Dovid Bender wrote:

I have an AGI that can sometimes take time complete. I don't want
the dialplan to be held up by the agi. Is there any way to call
it and have Asterisk continue with the dialplan?



Is there a reason you can't fork in the AGI and just return to the
dialplan in the parent?


Dovid,

I'm not much of a PHP person, but in perl, i check the process id that's 
returned from fork() and exit if it's 1 (parent) and keep processing if 
it's the child (greater than 1).


I think php uses pcntl_fork().

Is that how you're doing it?





--
http://help.nyigc.net/

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Michael Munger
I am very much a PHP person. PHP doesn't really have an elegant way to handle 
forking / threading, which can make it non-trivial to implement and can be 
unreliable if the implementation is not exact. PHP must also be compiled to be 
thread safe in order to do this properly.

Granted, the last time I looked into this with PHP was under PHP 5.6, and tests 
at that time did not yield the results we wanted. We ultimately moved to Python 
when we needed multi-threading, which is extremely elegant and reliable for 
this application.


[cid:image001.png@01D4F6B9.8C1499D0]

Michael J. Munger, dCAP, MCPS, MCNPS, MBSS

Microsoft Certified Professional

Microsoft Certified Small Business Specialist

Digium Certified Asterisk Professional

High Powered Help, Inc.

p:

678-905-8569

w:

hph.io<https://hph.io>  e: m...@hph.io<mailto:m...@hph.io>




From: asterisk-users  On Behalf Of 
Mark Wiater
Sent: Friday, April 19, 2019 2:00 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Forking AGI or GoSub

On 4/19/2019 1:49 PM, Dovid Bender wrote:

Mark,

I am using PHP agi and when forking the call does not continue util the forked 
process is done. Am I doing it wrong?


On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater 
mailto:mark.wia...@greybeam.com>> wrote:
On 4/10/2019 3:54 PM, Dovid Bender wrote:

I have an AGI that can sometimes take time complete. I don't want the dialplan 
to be held up by the agi. Is there any way to call it and have Asterisk 
continue with the dialplan?


Is there a reason you can't fork in the AGI and just return to the dialplan in 
the parent?

Dovid,

I'm not much of a PHP person, but in perl, i check the process id that's 
returned from fork() and exit if it's 1 (parent) and keep processing if it's 
the child (greater than 1).

I think php uses pcntl_fork().

Is that how you're doing it?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Michael Munger
What’s the purpose of the URL? Does it assist operators who handle the 
emergency services call?

Off the top of my head, I am not sure you can fork an AGI call from asterisk. 
Seems it would defeat the purpose of AGI, which should handle the call flow 
when it has control of the call. Have you considered have the AGI write to a 
socket of a secondary application, which will then perform the web call from 
its own process?

Seems relatively simple to write the call information to a socket as it’s 
getting processed, and then the AGI will complete in milliseconds and the call 
can continue. The secondary application can then do the URL POST. (You can 
probably whip this up in python very easily).

Not sure this solve the delay issue, however. If the secondary application 
stops running, you’d have to see if / how the AGI fails. I think it would just 
fail and the dialplan would just continue. Would need testing so it fails 
gracefully.


[cid:image001.png@01D4F6B8.F3CEF8F0]

Michael J. Munger, dCAP, MCPS, MCNPS, MBSS

Microsoft Certified Professional

Microsoft Certified Small Business Specialist

Digium Certified Asterisk Professional

High Powered Help, Inc.

p:

678-905-8569

w:

hph.io<https://hph.io>  e: m...@hph.io<mailto:m...@hph.io>




From: asterisk-users  On Behalf Of 
Dovid Bender
Sent: Friday, April 19, 2019 1:49 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Forking AGI or GoSub

Steve,

In my case this is for emergency services. The AGI calls a web URL with the 
callers information. The call passes through Asterisk and we don't want to 
delay the call at all if the API takes 1-2 extra seconds.


On Wed, Apr 10, 2019 at 10:01 PM Steve Edwards 
mailto:asterisk@sedwards.com>> wrote:
On Wed, 10 Apr 2019, Dovid Bender wrote:

> I have an AGI that can sometimes take time complete. I don't want the
> dialplan to be held up by the agi. Is there any way to call it and have
> Asterisk continue with the dialplan?

On Wed, 10 Apr 2019, Dovid Bender wrote:

> I have an AGI that can sometimes take time complete. I don't want the
> dialplan to be held up by the agi. Is there any way to call it and have
> Asterisk continue with the dialplan?

I had a situation that required this functionality -- processing a credit
card could take a second or two and we didn't want 'dead air' for our user
experience.

I created a pthread to play 'Please hold on while we process your card and
get ready for a good time...' while the main program continued with the
card authorization.

Most of the time the auth completed before the audio finished so it
appeared to be instantaneous to the caller.

The only caveat is to not interact (stdin/stdout) with Asterisk until
'stream file' in the thread completed.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com<mailto:sedwa...@sedwards.com>  
Voice: +1-760-468-3867 PST
 https://www.linkedin.com/in/steve-edwards-4244281

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Mark Wiater
On 4/19/2019 1:49 PM, Dovid Bender wrote:
> Mark,
>
> I am using PHP agi and when forking the call does not continue util
> the forked process is done. Am I doing it wrong?
>
>
> On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater  > wrote:
>
> On 4/10/2019 3:54 PM, Dovid Bender wrote:
>> I have an AGI that can sometimes take time complete. I don't want
>> the dialplan to be held up by the agi. Is there any way to call
>> it and have Asterisk continue with the dialplan?
>>
>
> Is there a reason you can't fork in the AGI and just return to the
> dialplan in the parent?
>
Dovid,

I'm not much of a PHP person, but in perl, i check the process id that's
returned from fork() and exit if it's 1 (parent) and keep processing if
it's the child (greater than 1).

I think php uses pcntl_fork().

Is that how you're doing it?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Dovid Bender
Mark,

I am using PHP agi and when forking the call does not continue util the
forked process is done. Am I doing it wrong?


On Wed, Apr 10, 2019 at 4:27 PM Mark Wiater 
wrote:

> On 4/10/2019 3:54 PM, Dovid Bender wrote:
>
> I have an AGI that can sometimes take time complete. I don't want the
> dialplan to be held up by the agi. Is there any way to call it and have
> Asterisk continue with the dialplan?
>
>
> Is there a reason you can't fork in the AGI and just return to the
> dialplan in the parent?
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-19 Thread Dovid Bender
Steve,

In my case this is for emergency services. The AGI calls a web URL with the
callers information. The call passes through Asterisk and we don't want to
delay the call at all if the API takes 1-2 extra seconds.


On Wed, Apr 10, 2019 at 10:01 PM Steve Edwards 
wrote:

> On Wed, 10 Apr 2019, Dovid Bender wrote:
>
> > I have an AGI that can sometimes take time complete. I don't want the
> > dialplan to be held up by the agi. Is there any way to call it and have
> > Asterisk continue with the dialplan?
>
> On Wed, 10 Apr 2019, Dovid Bender wrote:
>
> > I have an AGI that can sometimes take time complete. I don't want the
> > dialplan to be held up by the agi. Is there any way to call it and have
> > Asterisk continue with the dialplan?
>
> I had a situation that required this functionality -- processing a credit
> card could take a second or two and we didn't want 'dead air' for our user
> experience.
>
> I created a pthread to play 'Please hold on while we process your card and
> get ready for a good time...' while the main program continued with the
> card authorization.
>
> Most of the time the auth completed before the audio finished so it
> appeared to be instantaneous to the caller.
>
> The only caveat is to not interact (stdin/stdout) with Asterisk until
> 'stream file' in the thread completed.
>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
>  https://www.linkedin.com/in/steve-edwards-4244281
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-10 Thread Steve Edwards

On Wed, 10 Apr 2019, Dovid Bender wrote:

I have an AGI that can sometimes take time complete. I don't want the 
dialplan to be held up by the agi. Is there any way to call it and have 
Asterisk continue with the dialplan?


On Wed, 10 Apr 2019, Dovid Bender wrote:

I have an AGI that can sometimes take time complete. I don't want the 
dialplan to be held up by the agi. Is there any way to call it and have 
Asterisk continue with the dialplan?


I had a situation that required this functionality -- processing a credit 
card could take a second or two and we didn't want 'dead air' for our user 
experience.


I created a pthread to play 'Please hold on while we process your card and 
get ready for a good time...' while the main program continued with the 
card authorization.


Most of the time the auth completed before the audio finished so it 
appeared to be instantaneous to the caller.


The only caveat is to not interact (stdin/stdout) with Asterisk until 
'stream file' in the thread completed.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking AGI or GoSub

2019-04-10 Thread Mark Wiater
On 4/10/2019 3:54 PM, Dovid Bender wrote:
> I have an AGI that can sometimes take time complete. I don't want the 
> dialplan to be held up by the agi. Is there any way to call it and have 
> Asterisk continue with the dialplan?
>

Is there a reason you can't fork in the AGI and just return to the dialplan in 
the parent?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Forking AGI or GoSub

2019-04-10 Thread Dovid Bender
I have an AGI that can sometimes take time complete. I don't want the
dialplan to be held up by the agi. Is there any way to call it and have
Asterisk continue with the dialplan?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking a call

2010-12-22 Thread mickael ropars
Hi Mike,

Fork will generated 2 CDRs, and will seperate CDRs

But seems that there is a trouble in 1.6 (1.4 was working fine)

For exemple : phone A (leg A) is called, I play some background sound and
before putting in relation with phone B (leg B) I do a ForkCDR()

in 1.4 billsec in the first CDRs whas the call time on leg A and in the
second CDR the time of call on leg B
in 1.6 billsec on the two CDRs is the call time on leg B

in my case it cause some trouble since I cannot not charge the introduction
message (background sound)

Is it a known Bug ? or may be it's not a bug?


regards

Mickael


2010/9/23 Mike l...@net-wall.com

  Hi,



 Using 1.6.2.13.



 I'd like to know how I can force Asterisk to fork a call.  To simplify
 things, Let's say I have an out context (for outbound calls) and an in (for
 inbound).  If person A wants to call person B, and both are on my servers, I
 don`t want to send the call out.  I want all this to happen internally on my
 server.



 The problem is if I use some condition to send calls in my out context back
 to my in context, some channel variables get mixed up, and (for example)
 when the calling part puts the called party on hold, the music on hold used
 is the called party's music.  I am sure there are some less benign problems
 that could come with that.



 Is ForkCDR() what I am looking for? Any things I gotta watch out for when
 using it?



 I basically would like Asterisk to treat this call as two separate calls,
 as if one was completely outbound and the second an independant inbound
 call.



 Mike



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

[asterisk-users] Forking a call

2010-09-23 Thread Mike
Hi,

 

Using 1.6.2.13.  

 

I'd like to know how I can force Asterisk to fork a call.  To simplify
things, Let's say I have an out context (for outbound calls) and an in (for
inbound).  If person A wants to call person B, and both are on my servers, I
don`t want to send the call out.  I want all this to happen internally on my
server.

 

The problem is if I use some condition to send calls in my out context back
to my in context, some channel variables get mixed up, and (for example)
when the calling part puts the called party on hold, the music on hold used
is the called party's music.  I am sure there are some less benign problems
that could come with that.

 

Is ForkCDR() what I am looking for? Any things I gotta watch out for when
using it?

 

I basically would like Asterisk to treat this call as two separate calls, as
if one was completely outbound and the second an independant inbound call.

 

Mike

 

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

[asterisk-users] Forking

2009-04-01 Thread hh174
Hello all,

Probably a bad news for all...

The Undercompetent Olle E Johansson decided to leave the asterisk team
to create his own Voip server.
The server will be called Minisk (due probably to his poor competence in
Voip).
Following that, Digium decides to stop any development on Asterisk and
joined the Skype team to recreate a brand new paying licensed software.
Any development will be halted for asterisk

It seems that Mr Johansson has was poisoned by a fish in Brussels during
the last Fosdem.

We all hope qur Mr Johansson will quickly heal and return to the team of
asterisk.

Kind regards,

Olivier Taylor



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Forking

2009-04-01 Thread Singer XJ Wang
At least fake your from email to make it believable..

hh174 wrote:
 Hello all,

 Probably a bad news for all...

 The Undercompetent Olle E Johansson decided to leave the asterisk team
 to create his own Voip server.
 The server will be called Minisk (due probably to his poor competence in
 Voip).
 Following that, Digium decides to stop any development on Asterisk and
 joined the Skype team to recreate a brand new paying licensed software.
 Any development will be halted for asterisk

 It seems that Mr Johansson has was poisoned by a fish in Brussels during
 the last Fosdem.

 We all hope qur Mr Johansson will quickly heal and return to the team of
 asterisk.

 Kind regards,

 Olivier Taylor



 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Forking

2009-04-01 Thread Doug Lytle
hh174 wrote:
 Hello all,

 Probably a bad news for all...

 The Undercompetent Olle E Johansson decided to leave the asterisk team
 to create his own Voip server.
   


Oh Ma GOSH!  I guess I'll trash all my installs and move over to Avaya!

*snicker*



-- 
 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Forking in Dialplan

2008-04-25 Thread Tobias Ahlander
Date: Thu, 24 Apr 2008 06:54:27 -0700 (PDT)
From: Steve Edwards [EMAIL PROTECTED]
Subject: Re: [asterisk-users] Forking in Dialplan
To: Asterisk Users Mailing List - Non-Commercial Discussion
asterisk-users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=x-unknown

 - Tobias Ahlander [EMAIL PROTECTED] escreveu:

 Is it possible to somehow fork in the dialplan? Say a call comes in.
 Then I want to wait 30 seconds and then write in a database, but at the
 same time while I wait I want to go on with other commands too.

On Thu, 24 Apr 2008, Vin??cius Fontes wrote:

 You can call an AGI script that will call another script. That last one
 would wait 10 seconds and write in the database. The following example
 works for me:

 /var/lib/asterisk/agi-bin/agi-test.agi:

 #!/bin/bash
 nohup /root/helloworld.sh 1/dev/null 2/dev/null 
 exit 0

 /root/helloworld.sh:

 #!/bin/bash
 sleep 10
 echo Hello world!  /root/helloworld.txt
 exit 0

Why do you need the first AGI? Would:

 exten = _x.,n,system(nohup /root/helloworld.sh 1/dev/null 21 )

suit your needs?

Thanks in advance,

Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000


Thank you Steve, this seems to work just as I want it to. Now I just have to
figure out how to send variables to a system call, but I think I have that
covered somewhere :)

Best regards,
Tobias
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking in Dialplan

2008-04-25 Thread Craig Guy
On 4/25/08, Tobias Ahlander [EMAIL PROTECTED] wrote:
 Date: Thu, 24 Apr 2008 06:54:27 -0700 (PDT)
 From: Steve Edwards [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] Forking in Dialplan
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=x-unknown

  - Tobias Ahlander [EMAIL PROTECTED] escreveu:

  Is it possible to somehow fork in the dialplan? Say a call comes in.
  Then I want to wait 30 seconds and then write in a database, but at the
  same time while I wait I want to go on with other commands too.

 On Thu, 24 Apr 2008, Vin??cius Fontes wrote:

  You can call an AGI script that will call another script. That last one
  would wait 10 seconds and write in the database. The following example
  works for me:
 
  /var/lib/asterisk/agi-bin/agi-test.agi:
 
  #!/bin/bash
  nohup /root/helloworld.sh 1/dev/null 2/dev/null 
  exit 0
 
  /root/helloworld.sh:
 
  #!/bin/bash
  sleep 10
  echo Hello world!  /root/helloworld.txt
  exit 0

 Why do you need the first AGI? Would:

  exten = _x.,n,system(nohup /root/helloworld.sh 1/dev/null 21 )

 suit your needs?

 Thanks in advance,
 
 Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
 Newline Fax: +1-760-731-3000


 Thank you Steve, this seems to work just as I want it to. Now I just have to
 figure out how to send variables to a system call, but I think I have that
 covered somewhere :)

 Best regards,
 Tobias


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Forking in Dialplan

2008-04-24 Thread Tobias Ahlander
Hello,

Is it possible to somehow fork in the dialplan? Say a call comes in. Then I
want to wait 30 seconds and then write in a database, but at the same time
while I wait I want to go on with other commands too.


Thanks,
Best regards,
Tobias
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking in Dialplan

2008-04-24 Thread Moshe Brevda
what kind of command do you want it to do in the background? The obvious
answer your question would probably be to use an agi script.

On Thu, Apr 24, 2008 at 11:51 AM, Tobias Ahlander [EMAIL PROTECTED]
wrote:

 Hello,

 Is it possible to somehow fork in the dialplan? Say a call comes in. Then
 I want to wait 30 seconds and then write in a database, but at the same time
 while I wait I want to go on with other commands too.


 Thanks,
 Best regards,
 Tobias

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Moshe Brevda, CTO
ipconnect, ltd.
26 Strauss St., Jerusalem, Israel
W. 1.800.800.456 (+9722.569.5295)
M. +97254.666.1367
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking in Dialplan

2008-04-24 Thread Vinícius Fontes
You can call an AGI script that will call another script. That last one would 
wait 10 seconds and write in the database. The following example works for me:


/var/lib/asterisk/agi-bin/agi-test.agi:

#!/bin/bash
nohup /root/helloworld.sh 1/dev/null 2/dev/null 
exit 0



/root/helloworld.sh:

#!/bin/bash
sleep 10
echo Hello world!  /root/helloworld.txt
exit 0




Att
Vinícius Fontes
Desenvolvimento
Canall Tecnologia em Comunicações Ltda.

- Tobias Ahlander [EMAIL PROTECTED] escreveu:

 Hello,
 
 Is it possible to somehow fork in the dialplan? Say a call comes in.
 Then I want to wait 30 seconds and then write in a database, but at
 the same time while I wait I want to go on with other commands too.
 
 
 Thanks,
 Best regards,
 Tobias
 
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 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 --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking in Dialplan

2008-04-24 Thread Steve Edwards

- Tobias Ahlander [EMAIL PROTECTED] escreveu:


Is it possible to somehow fork in the dialplan? Say a call comes in. 
Then I want to wait 30 seconds and then write in a database, but at the 
same time while I wait I want to go on with other commands too.


On Thu, 24 Apr 2008, Vin??cius Fontes wrote:

You can call an AGI script that will call another script. That last one 
would wait 10 seconds and write in the database. The following example 
works for me:


/var/lib/asterisk/agi-bin/agi-test.agi:

#!/bin/bash
nohup /root/helloworld.sh 1/dev/null 2/dev/null 
exit 0

/root/helloworld.sh:

#!/bin/bash
sleep 10
echo Hello world!  /root/helloworld.txt
exit 0


Why do you need the first AGI? Would:

exten = _x.,n,system(nohup /root/helloworld.sh 1/dev/null 21 )

suit your needs?

Thanks in advance,

Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forking in Dialplan

2008-04-24 Thread Tilghman Lesher
On Thursday 24 April 2008 03:51, Tobias Ahlander wrote:
 Is it possible to somehow fork in the dialplan? Say a call comes in. Then I
 want to wait 30 seconds and then write in a database, but at the same time
 while I wait I want to go on with other commands too.

There isn't a fork, but there is a method built in that is rather similar to
the alarm(2) interface in the kernel, which is called Absolute Timeout.  The
method of using this is Set(TIMEOUT(absolute)=30), which sets a timer that
will fire in 30 seconds.  When that timer fires, any application that is
currently executing will terminate, and you will be redirected to the T
extension in the current context.  Note that you can also cancel this timer
by using setting the timeout to 0, i.e. Set(TIMEOUT(absolute)=0).

Also note that there can only be a single absolute timeout per channel (i.e.
setting a new timeout resets any timer currently in effect).

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Forking using Openser And Asterisk

2008-04-03 Thread Aadilkhan Maniyar
Hi All,
 
I am stuck with an issue in the Openser+Asterisk Forking. 
 
In this solution we are using Openser as the Registrar. Hence it will
store all the contact bindings along with the q values for a given user,
say ua1. The current setup is such that the INVITEs are sent to Asterisk
by Openser and Asterisk sends out the INVITE.
 
Now if ua1 is registered with two different contacts having different q
values and i make a call from ua2 to ua1.
Openser will recieve the INVITE check for the multiple contacts of ua1
in the database. and send out an INVITE for the first contact. On
recieving a 486 busy it sends out an INVITE to the second contact. This
is where the problems lies.
 
Openser is sending Asterisk the second INVITE but none of the actions
specified in the Dialplan (extensions.conf) of Asterisk seem to be
executing on reciept of the second INVITE.
 
My extensions.conf looks like this:
exten = _.,1,NoOp(Incoming Call [EMAIL PROTECTED])
exten = _.,2,Dial(SIP/${EXTEN})
exten = _.,3,HangUp()
exten = h,4,HangUp()
 
 
This is the ouput at the asterisk cli:
 
-- Executing [EMAIL PROTECTED]:1] NoOp(SIP/ua2-0921a250, Incoming Call
[EMAIL PROTECTED]) in new stack
-- Executing [EMAIL PROTECTED]:2] Dial(SIP/ua2-0921a250, SIP/ua1) in new
stack
-- Called ua1
[Apr  3 17:02:41] NOTICE[20198]: chan_sip.c:2918 auto_congest:
Auto-congesting SIP/ua1-0921f080
-- SIP/ua1-0921f080 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
-- Executing [EMAIL PROTECTED]:3] Hangup(SIP/ua2-0921a250, ) in new
stack
  == Spawn extension (call, ua1, 3) exited non-zero on
'SIP/ua2-0921a250'
-- Executing [EMAIL PROTECTED]:1] NoOp(SIP/ua2-0921a250, Incoming Call 
from
house extension  for [EMAIL PROTECTED]) in new stack
-- Executing [EMAIL PROTECTED]:3] Dial(SIP/ua2-0921a250, SIP/h) in new
stack
[Apr  3 17:02:51] WARNING[21381]: chan_sip.c:2898 create_addr: No such
host: h
[Apr  3 17:02:51] WARNING[21381]: app_dial.c:1191 dial_exec_full: Unable
to create channel of type 'SIP' (cause 3 - No route to destination)
  == Everyone is busy/congested at this time (1:0/0/1)
-- Executing [EMAIL PROTECTED]:3] Hangup(SIP/ua2-0921a250, ) in new 
stack
  == Spawn extension (call, h, 3) exited non-zero on 'SIP/ua2-0921a250'
If anyone has any inputs on this I would appreciate it..
 
Thanks  Regards,
Aadil
 
 
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] forking from a dial plan?

2007-08-09 Thread Andres Paglayan

Hi,

is it possible to fork from a dial plan?

meaning, is there a way to redirect to two different  
context,extension,priority

without waiting for the first to finish?




Andres Paglayan

--Harmony is more important than being right
Bapak




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] forking from a dial plan?

2007-08-09 Thread Anthony Francis
Andres Paglayan wrote:
 Hi,

 is it possible to fork from a dial plan?

 meaning, is there a way to redirect to two different 
 context,extension,priority 
 without waiting for the first to finish?




 Andres Paglayan

 --Harmony is more important than being right
 Bapak




 

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
I am sorry, but I fail to see the benefit or application.

Anthony

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] forking from a dial plan?

2007-08-09 Thread Anthony Francis
Andres Paglayan wrote:
 Hi,

 is it possible to fork from a dial plan?

 meaning, is there a way to redirect to two different 
 context,extension,priority 
 without waiting for the first to finish?




 Andres Paglayan

 --Harmony is more important than being right
 Bapak




 

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
if you mean dial both and give the call to the first that answers, just 
simring, if they are completely separate dialplayou can just do:
dial([EMAIL PROTECTED][EMAIL PROTECTED],20,tr)

Anthony

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] forking from a dial plan?

2007-08-09 Thread C F
Local channel should be able to accomplish that, what exactly are you
trying to do?

On 8/9/07, Andres Paglayan [EMAIL PROTECTED] wrote:
 Hi,

 is it possible to fork from a dial plan?

 meaning, is there a way to redirect to two different
 context,extension,priority
 without waiting for the first to finish?





 Andres Paglayan

 --Harmony is more important than being right
 Bapak





 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] forking from a dial plan?

2007-08-09 Thread Andres Paglayan

On Aug 9, 2007, at 4:32 PM, C F wrote:

 Local channel should be able to accomplish that, what exactly are you
 trying to do?


this is one of the specific scenarios, I got many others,
(for the shortsighted, this can be used in any case you don't want to  
wait for a chain of steps to complete before triggering another)

e.g.

1./ a call goes on queue,
2./ no agents are logged in,
3./ then, an announcement is played,
4./ other options are played
5./ then, the call is transfered to the voice mail,
6./ manger gets a ring with a record,(no-one-is-logged-in-damn-it)

Steps 3 - 5 can take up to one to three minutes to complete,
while I want 6 to be triggered asap, not afterwards 5, nor before 3  
(thus inserting a delay)

I can do it from within an agi script, by forking it,
(i.e. returns to the dial plan execution, while continues to run itself)
but I wonder if anybody figured (or if there's an specific  
instruction for)
forking out of the dial plan,


 On 8/9/07, Andres Paglayan [EMAIL PROTECTED] wrote:
 Hi,

 is it possible to fork from a dial plan?

 meaning, is there a way to redirect to two different
 context,extension,priority
 without waiting for the first to finish?





 Andres Paglayan

 --Harmony is more important than being right
 Bapak





 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

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

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

Andres Paglayan

--Harmony is more important than being right
Bapak





___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] forking from a dial plan?

2007-08-09 Thread David Gomillion
On 8/9/07, Andres Paglayan [EMAIL PROTECTED] wrote:


 On Aug 9, 2007, at 4:32 PM, C F wrote:

  Local channel should be able to accomplish that, what exactly are you
  trying to do?
 

 this is one of the specific scenarios, I got many others,
 (for the shortsighted, this can be used in any case you don't want to
 wait for a chain of steps to complete before triggering another)

 e.g.

 1./ a call goes on queue,
 2./ no agents are logged in,
 3./ then, an announcement is played,
 4./ other options are played
 5./ then, the call is transfered to the voice mail,
 6./ manger gets a ring with a record,(no-one-is-logged-in-damn-it)


Why wouldn't you put #6 as #3, and have it generate a .call file to make a
new phone call?

forking out of the dial plan,


Some commands, like Background, will allow execution to continue. So, it
obviously can be done, when needed. But most things that need to happen
should happen in order. If it's complicated enough to be done out of order,
then AGI is probably more appropriate anyway.





 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users