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?
begin:vcard
fn:Gerard A. Matthew
n:Matthew;Gerard A.
email;internet:[EMAIL PROTECTED]
tel;home:1 (206) 203-7608
tel;cell:1 (940) 337-3739
note;quoted-printable:DM Tel: +1 (767) 440-3940 ext 2103=0D=0A=
US Tel: +1 (206) 203-7608=0D=0A=
VoIP: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
Y!: calibishie2002=0D=0A=
=0D=0A=
CONFIDENTIALITY NOTICE: This electronic message contains information whi=
ch may be legally confidential and/or privileged. The information is int=
ended solely for the individual or entity named above and access by anyon=
e else is unauthorized. If you are not the intended recipient, any discl=
osure, copying, distribution, or use of the contents of this informationi=
s prohibited and may be unlawful. If you have received this electronictr=
ansmission in error, please reply immediately to the sender that youhave=
received the message in error, and delete it.
version:2.1
end:vcard
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users