[asterisk-users] bug in Asterisk 1.4.22?

Juan Rodríguez jerdguez at gmail.com
Sun Oct 26 03:10:22 CDT 2008


Also check the file permissions and if you are using a RedHat like OS, check
the SELinux.

And about using a2billing,I recommend you to use version 1.4.21 or less.

On Sun, Oct 26, 2008 at 3:30 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>wrote:

> 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<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Juan E. Rodríguez
Cel. 829-886-5565
Work: 809-724-9227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081026/ee4cbefc/attachment.htm 


More information about the asterisk-users mailing list