I started my * experience with asterisk@home 2.0 on a dedicated server.
I configured all and it worked well.
Now, I want to migrate all this configuration to my Gentoo server.
All seems to work fine, but, I have no info message in cli.
On asterisk@home, I could see (with colors), all calls passed.
If I set debug, I have all debug informations, but that’s not what I want.
Any idea please ?
Thanks
PS : sorry for my bad english. As you can see, it’s not my native language
In fact, asterisk init script from AAH is different from Gentoo. It already have the -vvv option.
But, if I had this option in my /etc/conf.d/asterisk, the init script doesn’t launch it as a daemon.
So I just have now to start cli by asterisk -c -vvv, but, I have no color on this one
I don’t know why.
are you using the safe_asterisk script to start it? Are you using an init script (so you can do service asterisk start)? You can add to either one,
export TERM=vt100 to either one near the top and you will get your color back!
if [[ -n "${ASTERISK_NICE}" ]]; then
if [[ ${ASTERISK_NICE} -ge -20 ]] && \
[[ ${ASTERISK_NICE} -le 19 ]]; then
OPTS="--nicelevel ${ASTERISK_NICE}"
else
eerror "Nice value must be between -20 and 19"
fi
fi
if [[ -n "${ASTERISK_USER}" ]]; then
USER=${ASTERISK_USER/:*/}
GROUP=$(echo $ASTERISK_USER | awk -F: '/.*:.*/ { print $2 }')
if [[ -n "${USER}" ]]; then
ASTERISK_OPTS="${ASTERISK_OPTS} -U ${USER}"
fi
if [[ -n "${GROUP}" ]]; then
ASTERISK_OPTS="${ASTERISK_OPTS} -G ${GROUP}"
GROUP=":${GROUP}" # make it look nice...
fi
ebegin "Starting asterisk PBX (as ${USER}${GROUP})"
else
ebegin "Starting asterisk PBX (as root)"
fi
start-stop-daemon --start --exec /usr/sbin/asterisk \
${OPTS} -- ${ASTERISK_OPTS}
eend $?