[asterisk-users] bug in Asterisk 1.4.22?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Oct 26 02:30:34 CDT 2008
Hi
First off, you replied a previous mail to the list, and hence your
message appears as part of a previous thread. To post a new message
start a new message.
Also,
On Sun, Oct 26, 2008 at 01:47:03AM -0400, Abel Monzon wrote:
> Hello is my idea or this is a bug? The thing is that I have in my
> asterisk.conf this:
> [directories]
> astetcdir => /usr/local/etc/asterisk
> astmoddir => /usr/local/lib/asterisk/modules
> astvarlibdir => /usr/local/share/asterisk
> astdatadir => /usr/local/share/asterisk
> astagidir => /usr/local/share/asterisk/agi-bin
> astspooldir => /var/spool/asterisk
> astrundir => /var/run/asterisk
> astlogdir => /var/log/asterisk
>
> where the dir of agi-bin is in /usr/local/share/asterisk/agi-bin and inside
> agi-bin directory I have a file called a2billing.php and in my
> extesions.conf i have:
> [a2billing]
> exten => 11111,1,answer
> exten => 11111,2,Wait,2
> exten => 11111,3,DeadAgi,a2billing.php
> exten => 11111,4,Wait,2
> exten => 11111,5,Hangup
>
> and then in my softphone I call to 11111 the asterisk log say this:
> -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php
> == a2billing.php: Failed to execute
> '/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or directory
Can you execute it from the shell?
ls /usr/local/share/asterisk/agi-bin/a2billing.php
/usr/local/share/asterisk/agi-bin/a2billing.php
As someone mentioned, if /usr/local/share/asterisk/agi-bin/a2billing.php
is there, the error is likely for the executable in the first line
(after the #!).
> -- Executing [11111 at default:4] Wait("SIP/abel-28c18000", "2") in new
> stack
> == Spawn extension (default, 11111, 4) exited non-zero on
> 'SIP/abel-28c18000'
>
> So, i change the file a2billing.php to another place and I change this new
> place in asterisk.conf:
> [directories]
> astetcdir => /usr/local/etc/asterisk
> astmoddir => /usr/local/lib/asterisk/modules
> astvarlibdir => /usr/local/share/asterisk
> astdatadir => /usr/local/share/asterisk
> astagidir => /new/place/asterisk/agi-bin
> astspooldir => /var/spool/asterisk
> astrundir => /var/run/asterisk
> astlogdir => /var/log/asterisk
>
> I reload the asterisk server and the asterisk log still say me the same
> place before:
> -- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php
> == a2billing.php: Failed to execute
> '/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or directory
Asterisk reads asterisk.conf only at startup. You'll have to fully
restart it.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list