环境:centos 5.2
zaptel 1.2.24
TD410p 4E1/4T1卡;
编译错误提示:
kernel/xpp/xdefs.h:117: error: conflicting types
for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
编辑:zaptel1.2.24 目录下的:
kernel/xpp/xdefs.h
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,18) || ! defined(hex_asc) typedef int bool; #endif #endif #else typedef int bool; #endif 红色部分是增加进去的。 make clean make make install 编译asterisk1.2.24 make clean make make install make samples make config 如何检测zaptel模块已经在asterisk中编译成功? 如果在/usr/lib/asterisk/modules/chan_zap.so 有该文件说明已经安装成功了。 加载模块: modprobe zaptel modprobe wct4xxp ztcfg -vvvvvvvvv and dmesg vi /etc/zaptel.conf span=1,1,0,ccs,hdb3 span=2,2,0,ccs,hdb3 span=3,3,0,ccs,hdb3 span=4,4,0,ccs,hdb3 vi /etc/asterisk/zapdata.conf [channels] rxwink=300 ; Atlas seems to use long (250ms) winks usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes group=1 callerid=asreceived group=1
bchan=1-15,17-31
dchan=16
bchan=32-46,48-62
dchan=47
bchan=63-77,79-93
dchan=78
bchan=94-108,110-124
dchan=109
context=default
pridialplan=national
signalling=pri_cpe
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
signalling=pri_cpe
channel => 1-15,17-31
group=2
signalling=pri_cpe
channel => 32-46,48-62
group=3
signalling=pri_cpe
channel => 63-77,79-93
group=4
signalling=pri_cpe
channel => 94-108,110-124