Also check the file permissions and if you are using a RedHat like OS, check the SELinux.<br><br>And about using a2billing,I recommend you to use version 1.4.21 or less.<br><br><div class="gmail_quote">On Sun, Oct 26, 2008 at 3:30 AM, Tzafrir Cohen <span dir="ltr">&lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>
<br>
First off, you replied a previous mail to the list, and hence your<br>
message appears as part of a previous thread. To post a new message<br>
start a new message.<br>
<br>
Also,<br>
<div><div></div><div class="Wj3C7c"><br>
On Sun, Oct 26, 2008 at 01:47:03AM -0400, Abel Monzon wrote:<br>
&gt; Hello is my idea or this is a bug? The thing is that I have in my<br>
&gt; asterisk.conf this:<br>
&gt; [directories]<br>
&gt; astetcdir =&gt; /usr/local/etc/asterisk<br>
&gt; astmoddir =&gt; /usr/local/lib/asterisk/modules<br>
&gt; astvarlibdir =&gt; /usr/local/share/asterisk<br>
&gt; astdatadir =&gt; /usr/local/share/asterisk<br>
&gt; astagidir =&gt; /usr/local/share/asterisk/agi-bin<br>
&gt; astspooldir =&gt; /var/spool/asterisk<br>
&gt; astrundir =&gt; /var/run/asterisk<br>
&gt; astlogdir =&gt; /var/log/asterisk<br>
&gt;<br>
&gt; where the dir of agi-bin is in /usr/local/share/asterisk/agi-bin and inside<br>
&gt; agi-bin directory I have a file called a2billing.php and in my<br>
&gt; extesions.conf i have:<br>
&gt; [a2billing]<br>
&gt; exten =&gt; 11111,1,answer<br>
&gt; exten =&gt; 11111,2,Wait,2<br>
&gt; exten =&gt; 11111,3,DeadAgi,a2billing.php<br>
&gt; exten =&gt; 11111,4,Wait,2<br>
&gt; exten =&gt; 11111,5,Hangup<br>
&gt;<br>
&gt; and then in my softphone I call to 11111 the asterisk log say this:<br>
&gt; &nbsp; &nbsp; -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php<br>
&gt; &nbsp; == &nbsp;a2billing.php: Failed to execute<br>
&gt; &#39;/usr/local/share/asterisk/agi-bin/a2billing.php&#39;: No such file or directory<br>
<br>
</div></div>Can you execute it from the shell?<br>
<br>
 &nbsp;ls /usr/local/share/asterisk/agi-bin/a2billing.php<br>
<div class="Ih2E3d"><br>
 &nbsp;/usr/local/share/asterisk/agi-bin/a2billing.php<br>
<br>
</div>As someone mentioned, if /usr/local/share/asterisk/agi-bin/a2billing.php<br>
is there, the error is likely for the executable in the first line<br>
(after the #!).<br>
<div class="Ih2E3d"><br>
&gt; &nbsp; &nbsp; -- Executing [11111@default:4] Wait(&quot;SIP/abel-28c18000&quot;, &quot;2&quot;) in new<br>
&gt; stack<br>
&gt; &nbsp; == Spawn extension (default, 11111, 4) exited non-zero on<br>
&gt; &#39;SIP/abel-28c18000&#39;<br>
&gt;<br>
&gt; So, i change the file a2billing.php to another place and I change this new<br>
&gt; place in asterisk.conf:<br>
&gt; [directories]<br>
&gt; astetcdir =&gt; /usr/local/etc/asterisk<br>
&gt; astmoddir =&gt; /usr/local/lib/asterisk/modules<br>
&gt; astvarlibdir =&gt; /usr/local/share/asterisk<br>
&gt; astdatadir =&gt; /usr/local/share/asterisk<br>
&gt; astagidir =&gt; /new/place/asterisk/agi-bin<br>
&gt; astspooldir =&gt; /var/spool/asterisk<br>
&gt; astrundir =&gt; /var/run/asterisk<br>
&gt; astlogdir =&gt; /var/log/asterisk<br>
&gt;<br>
&gt; I reload the asterisk server and the asterisk log still say me the same<br>
&gt; place before:<br>
&gt; -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php<br>
&gt; &nbsp; == &nbsp;a2billing.php: Failed to execute<br>
&gt; &#39;/usr/local/share/asterisk/agi-bin/a2billing.php&#39;: No such file or directory<br>
<br>
</div>Asterisk reads asterisk.conf only at startup. You&#39;ll have to fully<br>
restart it.<br>
<font color="#888888"><br>
--<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tzafrir Cohen<br>
icq#16849755 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a> &nbsp;<a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Juan E. Rodríguez<br>Cel. 829-886-5565<br>Work: 809-724-9227<br>