[asterisk-users] Asynchronous AGI Problems (Asterisk 1.8.7.0), ubuntu-server

Moises Silva moises.silva at gmail.com
Thu Sep 29 23:53:18 CDT 2011


On Sun, Sep 25, 2011 at 8:26 AM, Mehmet Avcioglu <mehmet at activecom.net> wrote:
>
> Actually it doesn't say "AGI(async:script)" it says "AGI(async:agi)" and than continues further to setting up an AMI user so the script is executed through the manager interface?? Than it says "AGI(agi:async)".?? Well most importantly it says "Cons of async AGI: It is the most complex method of using AGI to implement." ..:) I have been interested in Async AGI as well and after reading your post looked into the link you provided, seems different than what we immediately think, a background process.
>
> Perhaps just start the script normally "AGI(script.sh)" and than inside it run your background process "background-script.sh > /dev/null 2>&1 < /dev/null &" or fork a new process, detach, run in background, etc...
>
> Hopefully somebody else can point us towards the right direction in setting up a real asterisk asynchronous AGI application.
>

Despite being some shameless self-promotion, I want to point out this
post I wrote several years ago explaining the basics:

http://www.moythreads.com/wordpress/2007/12/24/asterisk-asynchronous-agi/

Moises Silva
Senior Software Engineer, Software Development Manager
Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON
L3R 9R6 Canada
t. 1 905 474 1990 x128 | e. moy at sangoma.com



More information about the asterisk-users mailing list