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
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
