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
