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"><<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>></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>
> Hello is my idea or this is a bug? The thing is that I have in my<br>
> asterisk.conf this:<br>
> [directories]<br>
> astetcdir => /usr/local/etc/asterisk<br>
> astmoddir => /usr/local/lib/asterisk/modules<br>
> astvarlibdir => /usr/local/share/asterisk<br>
> astdatadir => /usr/local/share/asterisk<br>
> astagidir => /usr/local/share/asterisk/agi-bin<br>
> astspooldir => /var/spool/asterisk<br>
> astrundir => /var/run/asterisk<br>
> astlogdir => /var/log/asterisk<br>
><br>
> where the dir of agi-bin is in /usr/local/share/asterisk/agi-bin and inside<br>
> agi-bin directory I have a file called a2billing.php and in my<br>
> extesions.conf i have:<br>
> [a2billing]<br>
> exten => 11111,1,answer<br>
> exten => 11111,2,Wait,2<br>
> exten => 11111,3,DeadAgi,a2billing.php<br>
> exten => 11111,4,Wait,2<br>
> exten => 11111,5,Hangup<br>
><br>
> and then in my softphone I call to 11111 the asterisk log say this:<br>
> -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php<br>
> == a2billing.php: Failed to execute<br>
> '/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or directory<br>
<br>
</div></div>Can you execute it from the shell?<br>
<br>
ls /usr/local/share/asterisk/agi-bin/a2billing.php<br>
<div class="Ih2E3d"><br>
/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>
> -- Executing [11111@default:4] Wait("SIP/abel-28c18000", "2") in new<br>
> stack<br>
> == Spawn extension (default, 11111, 4) exited non-zero on<br>
> 'SIP/abel-28c18000'<br>
><br>
> So, i change the file a2billing.php to another place and I change this new<br>
> place in asterisk.conf:<br>
> [directories]<br>
> astetcdir => /usr/local/etc/asterisk<br>
> astmoddir => /usr/local/lib/asterisk/modules<br>
> astvarlibdir => /usr/local/share/asterisk<br>
> astdatadir => /usr/local/share/asterisk<br>
> astagidir => /new/place/asterisk/agi-bin<br>
> astspooldir => /var/spool/asterisk<br>
> astrundir => /var/run/asterisk<br>
> astlogdir => /var/log/asterisk<br>
><br>
> I reload the asterisk server and the asterisk log still say me the same<br>
> place before:<br>
> -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php<br>
> == a2billing.php: Failed to execute<br>
> '/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or directory<br>
<br>
</div>Asterisk reads asterisk.conf only at startup. You'll have to fully<br>
restart it.<br>
<font color="#888888"><br>
--<br>
Tzafrir Cohen<br>
icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406 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> <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>
<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>