[asterisk-users] phpagi problem

Mauricio Mantilla mauriciomantilla at gmail.com
Mon Jul 17 16:42:27 MST 2006


Hi all,

I'm trying to write a script using phpagi, but there's something that's not
working and I can't figure out why.

Here's my code:

#!/usr/bin/*php* -q
 <?*php
*require('/var/lib/asterisk/agi-bin/phpagi.*php*');
$*agi* = new *AGI*();
$*agi*->say_digits(62410);
$cid = $agi->get_variable("dir");
$agi->say_digits($cid);
?>


I'm getting this error:

parse error, unexpected '=' on line 6


can you tell me what am I doing wrong?
thanks

Mauricio Mantilla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060717/c9fae84b/attachment.htm


More information about the asterisk-users mailing list