呼叫中心 呼叫中心解决方案 呼叫中心开发技术 CTI 呼叫中心系统
17

asterisk兼容数字卡上面调试中国7号信令(ss7)

How to install asterisk, chan_ss7 and zaptel with openvox PRI cards

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:
=======================
# 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
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]
enabled => yes
opc => 0×222222
dpc => ls1:0×298922
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
==========================
8) make sure ss7 is up:
==========================
CLI> ss7 link status
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(支持中国ss7 号信令)

 

没有评论

抱歉,这篇日志的评论已关闭。

抱歉,这篇日志的评论已关闭。