Hello Rand,
Which version of asterisk are you installing from optware?
aterisk14 and asterisk16 should come preconfigured with the right directories.
With optware, everything is installed under /opt and therefor your
config files will be under /opt/etc/asterisk.
Regards,
Ovidiu Sas
On Sun, May 3, 2009 at 11:12 AM, 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 $?
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>