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

2008-08-18 Thread Edwin Quijada


 Chechk permissions

*---*
*-Edwin Quijada
*-Developer DataBase
*-JQ Microsistemas
*-809-849-8087

* " Si deseas lograr cosas excepcionales debes de hacer cosas fuera de lo comun"
*---*


> Date: Sat, 16 Aug 2008 13:20:18 -0400
> From: [EMAIL PROTECTED]
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] Asterisk AGI and php problem
>
>> '/var/lib/asterisk/agi-bin/cid-to-acct.php': No such file or directory" 2
>> == cid-to-acct.php: Failed to execute
>
> It is not complaining about the lack of "/usr/bin/php", but about the
> fact that the file "/var/lib/asterisk/agi-bin/cid-to-acct.php" is
> nowhere to be found.
>
> Probably asking the obvious but...
>
> Did you place the file in the agi-bin folder ?
> Is it really named cid-to-acct.php ?
> Is it executable ?
> Does the user under which asterisk is running as the right to execute it ?
>
> hth
>
> ___
> -- 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

_
Your PC, mobile phone, and online services work together like never before.
http://clk.atdmt.com/MRT/go/108587394/direct/01/
___
-- 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


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

2008-08-16 Thread Marc Charbonneau
> '/var/lib/asterisk/agi-bin/cid-to-acct.php': No such file or directory" 2
>  ==  cid-to-acct.php: Failed to execute

It is not complaining about the lack of "/usr/bin/php", but about the
fact that the file "/var/lib/asterisk/agi-bin/cid-to-acct.php" is
nowhere to be found.

Probably asking the obvious but...

Did you place the file in the agi-bin folder ?
Is it really named cid-to-acct.php ?
Is it executable ?
Does the user under which asterisk is running as the right to execute it ?

hth

___
-- 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


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

2008-08-15 Thread Gerard A. Matthew
I am having a difficulty with AGI and PHP. The following is my script 
agi file


#!/usr/bin/php
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 
errortried 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