[asterisk-users] Asterisk AGI and php problem....

Gerard A. Matthew calibishie at gmail.com
Fri Aug 15 16:22:02 CDT 2008


I am having a difficulty with AGI and PHP. The following is my script 
agi file

#!/usr/bin/php
<?php
include("phpagi.php");
$agi = new AGI;
$agi->verbose("$argv[1]\n");
?> 

However, my Asterisk CLI returns this


AGI Tx >> agi_request: cid-to-acct.php
AGI Tx >> agi_channel: SIP/5073-0821eda0
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1218834584.3
AGI Tx >> agi_callerid: 5305
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: *86
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing
AGI Tx >> agi_extension: *86
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode: 5073
AGI Tx >>
AGI Rx << verbose "Failed to execute 
'/var/lib/asterisk/agi-bin/cid-to-acct.php': No such file or directory" 2
  ==  cid-to-acct.php: Failed to execute 
'/var/lib/asterisk/agi-bin/cid-to-acct.php': No such file or directory
AGI Tx >> 200 result=1


I have both #!/usr/binphp and #!/usr/bin/php5 tried out with the same 
error....tried searching online with no help.

Any ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calibishie.vcf
Type: text/x-vcard
Size: 948 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080815/47a95b2d/attachment.vcf 


More information about the asterisk-users mailing list