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

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

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

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

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:

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

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