[asterisk-users] AGI - Ways to create a call

Steve Edwards asterisk.org at sedwards.com
Fri May 8 12:46:42 CDT 2009


On Fri, 8 May 2009, David Backeberg wrote:

> On Fri, May 1, 2009 at 11:18 AM, Jimmy Godbout <sip at inbox.com> wrote:
>>> Well, my question is: do you guys have any tip in different ways to 
>>> create a call in Asterisk using AGI + PHP?
>
> You may prefer AMI and the originate command as opposed to making call 
> files. As with many things in Asterisk there's usually multiple ways to 
> do things. Also, if you like PHP you should try out the PHP AMI API. 
> It's very nice, and provides a PHP-ified wrapper for AMI calls. 
> http://www.straw-dogs.co.uk/03/15/asterisk-manager-api-php/
>
> You can then make PHP scripts with AMI and originate, feeding an 
> argument in directly from the web gui. (that's what I do).

You could create the call file and move it to the spool directory all in 
dialplan, skipping AGI altogether.

AMI is a bit more work than a call file -- you need to configure 
manager.conf and then in your AGI you need to log in and read responses.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list