如何安装 asterisk, zaptel 和 ss7 号信令
hello:
if you want to install asterisk, chan_ss7 and zaptel, please follow these steps:
1) download asterisk-1.4.20, zaptel-1.4.10 and chan_ss7_1.1
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.10.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.1, please do this:
4.1) modify the Makefile, do like this: 编辑 Makefile, 修改 zaptel, asterisk 文件路径
=======================
# non-standard places.
INCLUDE+=-I /usr/src/zaptel-1.4.10/kernel ; point to the zaptel source
#INCLUDE+=-I../source/telephony/dahdi/include
INCLUDE+=-I /usr/src/asterisk-1.4.20 ; point to asterisk source
=======================
4.2) save and quit
4.3) run make and make install ; 安装,编译 chan_ss7
4.4) copy the ss7.conf file to /etc/asterisk
4.5) copy the chan_ss7.so to /usr/lib/asterisk/modules
5) edit the zaptel.conf like this:
===========================
# Autogenerated by ./genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#
# It must be in the module loading order
# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
# Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
# Span 3: TE4/0/3 "T4XXP (PCI) Card 0 Span 3"
span=3,3,0,ccs,hdb3,crc4
# termtype: te
bchan=63-77,79-93
dchan=78
# Span 4: TE4/0/4 "T4XXP (PCI) Card 0 Span 4"
span=4,4,0,ccs,hdb3,crc4
# termtype: te
bchan=94-108,110-124
dchan=109
# Global data
loadzone = us
defaultzone = us
===========================
6) edit ss7.conf like this:
===========================
[linkset-ls1]
enabled => yes
enable_st => yes
use_connect => no
hunting_policy => even_mru
context => ss7_call
language => en
subservice => auto
variant => CHINA ; 支持中国ss7 号信令
[link-l1]
linkset => ls1
channels => 1-15,17-31
schannel => 16
firstcic => 1
enabled => yes
echocancel => no
echocan_train => 350
echocan_taps => 128
[link-l2]
linkset => ls1
channels => 1-31
schannel =>
firstcic => 33
enabled => yes
[link-l3]
linkset => ls1
channels => 1-31
schannel =>
firstcic => 65
enabled => yes
[link-l4]
linkset => ls1
channels => 1-31
schannel =>
firstcic => 97
enabled => yes
[host-openvox]; host IP
enabled => yes
opc => 0x222222 ; 点码
dpc => ls1:0x298922 ; 点码
links => l1:1
links => l1:1,l2:2,l3:3,l4:4
===========================
7) edit extensions.conf:
==========================
[ss7_call]
exten => 100,1,Dial(ss7/outgoing number)
exten => 100,2,Hangup
==========================
make sure ss7 is up:
==========================
CLI> ss7 link status ; 检查 ss7 的状态, 确保没有异常。
linkset ls1, link l1, schannel 16, sls 0, INSERVICE, rx: 5, tx: 1/3, sentseq/lastack: 4/4, total 199328, 199424
CLI> ss7 status
linkset idle busy initiating resetting total incoming total outgoing
ls1 30 0 0 0 0 0
gw1*CLI> ss7 linestat
Linkset: ls1
CIC 1 Idle
CIC 2 Idle
CIC 3 Idle
CIC 4 Idle
CIC 5 Idle
CIC 6 Idle
CIC 7 Idle
CIC 8 Idle
CIC 9 Idle
CIC 10 Idle
CIC 11 Idle
CIC 12 Idle
CIC 13 Idle
CIC 14 Idle
CIC 15 Idle
CIC 17 Idle
CIC 18 Idle
CIC 19 Idle
CIC 20 Idle
CIC 21 Idle
9) use an extension dial 100 to make a call to ss7
========Test tools:=========
asterisk-1.4.20
zaptel-1.4.10
chan_ss7-1.1(1.1 以上版本已经支持中国ss7 号信令), 1.1 以前的版本请到openvox.cn 下载。
Openvox D410P
=====references:================
http://www.dicea.dk/company/chan_ss7
voip-info.org
www.openvox.cn
原文链接:http://wiki.openvox.cn/index.php ... zaptel_and_chan_ss7
regards!
James.zhu
[ 本帖最后由 zhulizhong 于 2009-8-31 10:33 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hao,