sangoma数字卡+elastix1.6 导致asterisk不能启动的问题
http://bbs.voip88.com/thread-15559-1-1.html
环境:
sangoma A102 +elastix1.6 voip88中文版
症状:
开机时asterisk不能启动,full日志记录如下
[Jan 20 09:37:59] ERROR[11543] asterisk.c: Asterisk has detected a problem with your DAHDI configuration and will shutdown for your protection. You have options:
1. You only have to compile DAHDI support into Asterisk if you need it. One option is to recompile without DAHDI support.
2. You only have to load DAHDI drivers if you want to take advantage of DAHDI services. One option is to unload DAHDI modules if you don't need them.
3. If you need Zaptel services, you must correctly configure DAHDI.
解决方法:
vi /etc/init.d/dahdi
# See how we were called.
case "$1" in
start)
# Some systems, e.g. Debian Lenny, add here -b, which will break
# loading of modules blacklisted in modprobe.d/*
unset MODPROBE_OPTIONS
modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null`
#if [ "$modules" = '' ]; then
# what?
#fi
sleep 30
echo "Loading DAHDI hardware modules:"
modprobe dahdi
for line in $modules; do
if [ $system = debian ]; then
echo -n " ${line}: "
if modprobe $line 2> /dev/null; then
echo -n "done"
else
echo -n "error"
fi
elif [ $system = redhat ]; then
action " ${line}: " modprobe $line
fi
done
echo ""
增加红色的sleep 30
重启服务器
鸣谢:
sangoma 同学
sangoma A102 +elastix1.6 voip88中文版
症状:
开机时asterisk不能启动,full日志记录如下
[Jan 20 09:37:59] ERROR[11543] asterisk.c: Asterisk has detected a problem with your DAHDI configuration and will shutdown for your protection. You have options:
1. You only have to compile DAHDI support into Asterisk if you need it. One option is to recompile without DAHDI support.
2. You only have to load DAHDI drivers if you want to take advantage of DAHDI services. One option is to unload DAHDI modules if you don't need them.
3. If you need Zaptel services, you must correctly configure DAHDI.
解决方法:
vi /etc/init.d/dahdi
# See how we were called.
case "$1" in
start)
# Some systems, e.g. Debian Lenny, add here -b, which will break
# loading of modules blacklisted in modprobe.d/*
unset MODPROBE_OPTIONS
modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null`
#if [ "$modules" = '' ]; then
# what?
#fi
sleep 30
echo "Loading DAHDI hardware modules:"
modprobe dahdi
for line in $modules; do
if [ $system = debian ]; then
echo -n " ${line}: "
if modprobe $line 2> /dev/null; then
echo -n "done"
else
echo -n "error"
fi
elif [ $system = redhat ]; then
action " ${line}: " modprobe $line
fi
done
echo ""
增加红色的sleep 30
重启服务器
鸣谢:
sangoma 同学