Hello everyone, I'm having all sorts of problems with my PHP AGI scripts... Basically, my scripts run fine from the command line and don't do anything well called from Asterisk. Here are my questions: a) Does Asterisk require PHP CLI or CGI? From the command line, my script seems to work fine with PHP 4.3.11 (cli) but not with PHP 4.3.9 (cgi) b) How to debug my script? According to the Asterisk CLI messages, it seems to be called, but nothing happens... c) Any ideas of what's going on? Thanks in advance for any help, Leo
Leo Burd wrote:> Hello everyone, > > I'm having all sorts of problems with my PHP AGI scripts... Basically, > my scripts run fine from the command line and don't do anything well > called from Asterisk. Here are my questions:Probably because it Asterisk is trying to give you info.> a) Does Asterisk require PHP CLI or CGI? From the command line, my > script seems to work fine with PHP 4.3.11 (cli) but not with PHP 4.3.9 > (cgi) > > b) How to debug my script? According to the Asterisk CLI messages, it > seems to be called, but nothing happens... > > c) Any ideas of what's going on?Are you reading back the data from Asterisk? Are you flushing the buffers? Have a search for this question on google. -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
A) AGI prefers the CLI version. B) Use VERBOSE, write to stderr or dump any debug messages in your own log file C) Of course not, thanks to you. Include scripts and debug output, and maybe we'll get closer. Just tell me we're not doing your homework for you.> -----Original Message----- > From: Leo Burd [mailto:leob@media.mit.edu] > Sent: Monday, August 08, 2005 2:48 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] URGENT: Problems with PHP AGI... > > > Hello everyone, > > I'm having all sorts of problems with my PHP AGI scripts... > Basically, > my scripts run fine from the command line and don't do anything well > called from Asterisk. Here are my questions: > > a) Does Asterisk require PHP CLI or CGI? From the command line, my > script seems to work fine with PHP 4.3.11 (cli) but not with > PHP 4.3.9 (cgi) > > b) How to debug my script? According to the Asterisk CLI > messages, it > seems to be called, but nothing happens... > > c) Any ideas of what's going on? > > Thanks in advance for any help, > > Leo > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/aster> isk-users > To > UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users
Possibly Parallel Threads
- Found solution to my PHP AGI Script problem...
- How to run a remote PHP script and still have access to audio stream?
- Is it possible to setup group voicemail in Asterisk?
- How to prevent log files from eating my hard drive?
- Is there a right place for a include_once statement in a PHP AGI script?