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