Re: [asterisk-users] AGI Help Please

2006-12-20 Thread Time Bandit
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? snip Content-type: text/html

Re: [asterisk-users] AGI Help Please

2006-12-20 Thread Jay Milk
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,

Re: [asterisk-users] AGI Help Please

2006-12-19 Thread Jay Milk
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

Re: [asterisk-users] AGI Help Please

2006-12-19 Thread William Piper
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 like

Re: [asterisk-users] AGI Help Please

2006-12-19 Thread William Piper
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 VERBOSEThere have been VERBOSE1 calls made [EMAIL PROTECTED] agi-bin]# The permissions are

Re: [asterisk-users] AGI Help Please

2006-12-19 Thread William Piper
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

[asterisk-users] AGI Help Please

2006-12-18 Thread William Piper
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.

Re: [asterisk-users] AGI Help Please

2006-12-18 Thread yusuf
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

Re: [asterisk-users] AGI Help Please

2006-12-18 Thread Tzafrir Cohen
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