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