-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan-Michael. Guenther (in-put GbR) wrote: > Hi, > > I'm trying to start a PHP5 script via the AGI Interface. > The asterisk version is Asterisk 1.2.5-BRIstuffed-0.3.0-PRE-1k and I followed > the instructions on > > http://www.voip-info.org/tiki-print.php?page=Asterisk+AGI+php > > The problem is, as you can see from the output in the CLI, that Asterisk > claims that it executes the script, but nothing happens. It doesn't create > the file /tmp/asterisk and it doesn't send an email. > When I execute the script manually on the command line, it is execute without > an error, the file is there and the email, too. > > ###################################################### > ;extensions.conf > ; > [guenther] > exten => 111,1,Answer() > exten => 111,2,AGI(test.php) > exten => 111,3,Hangup > > ###################################################### > ls -l /var/lib/asterisk/agi-bin/test.php > > -rwxr-xr-x 1 asterisk root 340 Aug 8 10:07 test.php > > ###################################################### > > cat /var/lib/asterisk/agi-bin/test.php > #! /usr/bin/php5 > > <?php > ob_implicit_flush(false); > set_time_limit(6); > error_reporting(0);
Try running it from the command line and see what happens - -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE2Hh3S6d5vy0jeVcRAkf7AJ0bbLWCZXQ/ismZJxG2l2vfMCktiQCfeshM Sk03IFfNGOdKGM9CZvsrldE= =CNyN -----END PGP SIGNATURE----- _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
