编译Zaptel 一个错误的解决方法

环境: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
bchan=1-15,17-31
dchan=16

span=2,2,0,ccs,hdb3
bchan=32-46,48-62
dchan=47

span=3,3,0,ccs,hdb3
bchan=63-77,79-93
dchan=78

span=4,4,0,ccs,hdb3
bchan=94-108,110-124
dchan=109

 

vi /etc/asterisk/zapdata.conf

 

[channels]
context=default
pridialplan=national
signalling=pri_cpe

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
rxgain=0.0
txgain=0.0

group=1
callgroup=1
pickupgroup=1

callerid=asreceived

group=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

 

 

 

 

接中继线的配置如下:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值