Search the web
Sign In
New User? Sign Up
nslu2-asterisk · Asterisk on Linksys NSLU2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Asterisk runs but can't find config files   Message List  
Reply | Forward Message #1050 of 1064 |
Re: Asterisk runs but can't find config files

Hi Rand,

The default path to the asterisk.conf is /etc/asterisk and I believe that on
Optware has been patched to be /opt/etc/asterisk.

Also, you can specify the config file to be used in the command line using the
-C command line option:
http://www.voip-info.org/wiki/view/Asterisk+options

asterisk.conf will configure the directories used by asterisk (including the
directory for the config files).

For Optware the paths should be like this:

[directories]
astetcdir => /opt/etc/asterisk
astmoddir => /opt/lib/asterisk/modules
astvarlibdir => /opt/var/lib/asterisk
astagidir => /opt/var/lib/asterisk/agi-bin
astspooldir => /opt/var/spool/asterisk
astrundir => /opt/var/run
astlogdir => /opt/var/log/asterisk

Usually Asterisk comes with sample configuration files. You will have to write
your own configs, based on this samples.

Good luck,
Corneliu


--- In nslu2-asterisk@yahoogroups.com, "shermanrand" <shermanrand@...> wrote:
>
> Everyone,
>
> I recently loaded Asterisk on my WRT-54gl with 2gig sd. (did the ipkg, jffs,
optware etc...
>
> Although it runs - when is I issue $asterisk -cvvv I can see that it can't
quite find the config files. I guess that the init file needs to be modified
correctly. Here is some of the output of the errors.
> Otherwise, asterisk does come up with the >CLI command but no modules nor
configs are loaded - even though they are in their respective folders.
>
> typical - error is
> Parsing '/etc/asterisk/modules.conf' : Not found no such file or directories
......
>
> Here is the current init - which I think needs to be modified to direct the
program to the correct locations - but I don't know how to modify it. Can
someone tell me where in the init to direct the program to the correct
directories?
>
> Thanks Rand
>
>
>
>
> root@sherman:/jffs/etc/init.d# cat asterisk
> #!/bin/sh
> DEFAULT=/etc/default/asterisk
> OPTIONS=""
> [ -f $DEFAULT ] && . $DEFAULT
> [ "$ENABLE_ASTERISK" = "yes" ] || exit 0
> case $1 in
> start)
> [ -d /var/run ] || mkdir -p /var/run
> [ -d /var/log/asterisk ] || mkdir -p /var/log/asteri
sk
> [ -d /var/spool/asterisk ] || mkdir -p /var/spool/as
terisk
> /usr/sbin/asterisk $OPTIONS
> ;;
> stop)
> [ -f /var/run/asterisk.pid ] && kill $(cat /var/run/
asterisk.pid) >/dev/null 2>&1
> ;;
> *)
> echo "usage: $0 (start|stop)"
> exit 1
> esac
>
> exit $?
>





Mon May 4, 2009 4:22 pm

corneliu_doban
Online Now Online Now
Send Email Send Email

Forward
Message #1050 of 1064 |
Expand Messages Author Sort by Date

Everyone, I recently loaded Asterisk on my WRT-54gl with 2gig sd. (did the ipkg, jffs, optware etc... Although it runs - when is I issue $asterisk -cvvv I can...
shermanrand
Offline Send Email
May 4, 2009
3:29 pm

Hello Rand, Which version of asterisk are you installing from optware? aterisk14 and asterisk16 should come preconfigured with the right directories. With...
Ovidiu Sas
ovi_sas
Offline Send Email
May 4, 2009
3:35 pm

Hi Rand, The default path to the asterisk.conf is /etc/asterisk and I believe that on Optware has been patched to be /opt/etc/asterisk. Also, you can specify...
Corneliu Doban
corneliu_doban
Online Now Send Email
May 4, 2009
4:23 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help