On Fri, 8 May 2009, David Backeberg wrote:

> On Fri, May 1, 2009 at 11:18 AM, Jimmy Godbout <[email protected]> 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      [email protected]      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000

_______________________________________________
-- 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

Reply via email to