<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">Problem resolved :<br>Two things :<br>1 - php agi instead of php-cli (I have apache running on my server too and it edits himself all the php.ini it finds)<br></div>2 - Error using php-q it is amistake : php -q (of course =) )<br><br>Their is a real problem with asterisk concerning errors in agi script.<br>If there is an error in the script itself asterisk give back : No such file or directory even if the error is just that ";" is missing...<br><br>Thanks for the help<br><br><blockquote><hr id="EC_stopSpelling">From: marikounet@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Date: Thu, 23 Aug 2007 14:51:27 +0000<br>Subject: [asterisk-users] [PHP-AGI] Problem executing script<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass P
{padding:0px;}
.ExternalClass
{font-size:10pt;font-family:Tahoma;}
</style>

<div style="text-align: left;">Hello,<br>I have succeded in compiling and configuring My TDM Card and asterisk, all works fine. <br>But I have a problem using the PHP Agi.<br>The CLI tells me that when I call my number :<br><br>-- Starting simple switch on 'Zap/4-1'<br>&nbsp;&nbsp;&nbsp; -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@incoming:2] AGI("Zap/4-1", "rabot.agi") in new stack<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/rabot.agi<br>&nbsp; ==&nbsp; rabot.agi: Failed to execute '/var/lib/asterisk/agi-bin/rabot.agi': No such file or directory<br>&nbsp;&nbsp;&nbsp; -- AGI Script rabot.agi completed, returning 0<br>&nbsp; == Auto fallthrough, channel 'Zap/4-1' status is 'UNKNOWN'<br>&nbsp;&nbsp;&nbsp; -- Hungup 'Zap/4-1'<br><br>I tought first that it was a problem of chmod so I change the chmod of all the directory agi-bin TO 777<br><br>But it changed nothing. I have verify that php was well indicate at the beginning of the script :<br>#!/usr/bin/php-q<br><br>And there is a php exec at /usr/bin<br><br>Any ideas about this problem ?<br><br>Thank for you help<br><br>Kheraud<br></div><br><hr>Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail et bénéficiez de 2 Go de stockage ! <a href="http://www.windowslive.fr/hotmail/default.asp" target="_blank">Windows Live Hotmail</a>
</blockquote><br /><hr />Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail et bénéficiez de 2 Go de stockage ! <a href='http://www.windowslive.fr/hotmail/default.asp' target='_new'>Windows Live Hotmail</a></body>
</html>