[asterisk-users] AGI doesn't execute PHP5 script

Stefan-Michael. Guenther (in-put GbR) asterisk at in-put.de
Tue Aug 8 04:48:47 MST 2006


Hi,

Am Dienstag, 8. August 2006 13:41 schrieb Matt Riddell (NZ):
> 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 executes
> > without an error, the file is there and the email, too.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
>
> Try running it from the command line and see what happens
>
I guess you meant the test.php script, right?
Executing php5 scripts on the command line isn't a problem at all, only when 
they are started through AGI.

Stefan
-- 

********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Moltkestrasse 49     D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
     Schulungen  Installationen  
         Beratung   Support
      Voice over IP - Lösungen
********************************************



More information about the asterisk-users mailing list