您的位置:首页 > 运维架构 > Linux

centos 5.4 上chan_ss7-1.2.1 安装方法

2010-07-05 04:10 288 查看
1) download asterisk-1.4.20, zaptel-1.4.11 and chan_ss7-1.2.1.tar.gz
2) unzip asterisk-1.4.20.tar.gz to /usr/src, under asterisk dir, please run: ./configure, make and make install, make samples.
3) unzip zaptel-1.4.11.tar.gz to /usr/src/, under zaptel dir, please run: ./confiugre, make and make install

4) unzip the chan_ss7_1.1 to /usr/src, under chan_ss7-1.2.1, please do this:

4.1) modify the l4isup.c file,do like this

#define DAHDI_EVENT_DTMFDUP ZT_EVENT_DTMFUP

改成
#define DAHDI_EVENT_DTMFUP ZT_EVENT_DTMFUP

4.2) modify the Makefile, do like this:

=======================

#INCLUDE+=-I../source/telephony/dahdi/include

INCLUDE+=-I /usr/src/zaptel-1.4.11/kernel

CFLAGS+=-DUSE_ZAPTEL

INCLUDE+=-I../asterisk-1.4.20/include

#INCLUDE+=-I../source/telephony/asterisk/include

=======================

使用Dahdi和Zaptel,Makefile也要相应地修改。
Chan_ss7-1.1版本是用CFLAGS+=-DDAHDI来定义是否使用Dahdi,否则使用Zaptel。
1.2版本之后是用CFLAGS+=-DUSE_ZAPTEL来定义是否使用Zaptel,否则使用Dahdi。

感谢 Wayne

http://www.openvox.cn/bbs/viewthread.php?tid=923

4.2) save and quit
4.3) run make and make install
4.4) copy the ss7.conf file to /etc/asterisk
4.5) copy the chan_ss7.so to /usr/lib/asterisk/modules

接下来和james.zhu 的一样的

参看http://bbs.openvox.cn/viewthread.php?tid=905&extra=page%3D1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: