Try running it as
./test.php
the hash-bang should take care of the php-location.
The first two lines are one cause of your problem. Could be the lack of
the "-q" param for php. However, I would expect the script to not show
anything, as it should be reading params from asterisk first. Iirc,
Below are a few errors in the script and on a google search, although I
found people with the same error, I didn't find a resolution.
Any thoughts on what is causing this error?
Any thoughts as to why the output is not showing on the CLI without doing a
debug?
Content-type: text/html
X-Powere
Ok, further testing shows that the AGI is apparently running however the
information is still not displaying on the CLI.
Below are a few errors in the script and on a google search, although I
found people with the same error, I didn't find a resolution.
Any thoughts on what is causing this erro
Jay,
I just tried the suggested changes... same response.
I tested the script via command-line & it works fine.
[EMAIL PROTECTED] agi-bin]# php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
VERBOSE"There have been"
VERBOSE"1 calls made"
[EMAIL PROTECTED] agi-bin]#
The permissions ar
I am running console. I'm a newbie for AGI's but not that new.
Thanks,
bp
On 12/19/06, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
On Tue, Dec 19, 2006 at 09:35:56AM +0200, yusuf wrote:
> to see debug output for AGI's, you *must* be connected to the first Ast
> terminal. So start Asterisk lik
Does the script run from command-line? Without taking a close look at
this, the include statements in the function body of connect_db look
potentially messy.
Also, any output to stdout is interpreted by asterisk as a command, so
those fputs statements would be a problem -- do
fputs($stdout,"
On Tue, Dec 19, 2006 at 09:35:56AM +0200, yusuf wrote:
> to see debug output for AGI's, you *must* be connected to the first Ast
> terminal. So start Asterisk like 'asterisk -cvv', then you
> will see output from your AGI.
Actually, if you have not started Asterisk in a console, it
William Piper wrote:
List,
I finally decided to break down & start playing with AGI scripts, but
for the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many
call records there are for the extension calling in, then pri
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.