Hi, I'm running asterisk 1.4.22 on a debian server. I have php5 installed and it works correctly command line. When trying to run a php script via AGI, I get messages such as: GI Tx >> I> AGI Rx << #!/usr/bin/php5 -q AGI Tx >> 510 Invalid or unknown command
The scripts are completely executable and owned by asterisk -rwxr-xr-x 1 asterisk asterisk Googling is not helping much, and php seems installed perfectly. Other servers running the same AGIs have no such problem. I also have noticed odd behavior. When I edit an AGI, the changes aren't always showing up in the running of the script via asterisk. For example, I tried editing the bash command to read #!/usr/bin/php -q, and got the same response on my agi debug. I know for a fact it's running the script I've edited: Launched AGI Script /var/lib/asterisk/agi-bin/myscript.php and it's not in some other directory. Any input: obvious or not is requested...a few people here are stumped! Thank you! Leah Newmark VoIP Programmer Capalon Communications _______________________________________________ -- 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
