你好,
我的系统环境是:CentOS 5.2+Asterisk 1.4.26 +Dahdi 2.2.0+ chan_ss7 1.2.1
联通公司开出的7号信令是:信令时隙在开在16通道,opc(局端)0x290B30,dpc(用户端)0x290B53,使用ISUP
光端机出来的线接到语音卡的第一个E1口。
我参考了很多配置案例,但一直没有配置成功。SS7 Link的状态时一直是up->down->up->down->up.....(不断的up,又down下去),如下
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 DOWN, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 NOT_ALIGNED, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 INSERVICE, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 INSERVICE, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 INSERVICE, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 INSERVICE, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 NOT_ALIGNED, sls 0, total: 0, 0
suzmisvoip02*CLI> ss7 link status
linkset siuc, link l1/16 INSERVICE, sls 0, total: 0, 0
我的配置如下:
This email address is being protected from spambots. You need JavaScript enabled to view it. $ cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Feb 5 16:25:36 2010
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER)
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
Dchan=16
echocanceller=mg2,1-15,17-31
# Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
echocanceller=mg2,32-46,48-62
# Global data
loadzone = us
defaultzone = us
This email address is being protected from spambots. You need JavaScript enabled to view it. $ cat /etc/asterisk/ss7.conf
[linkset-siuc]
enabled => yes
enable_st => no
use_connect => no
hunting_policy => even_mru
context => from-ss7
subservice => auto
language => cn
variant => CHINA
[link-l1]
linkset => siuc
channels => 1-15,17-31
schannel => 16
firstcic => 1
enabled => yes
[host-suzmisvoip02.internal.corp]
enabled => yes
default_linkset => siuc
opc => 0x290B30
dpc => siuc:0x290B53
links => l1:1
This email address is being protected from spambots. You need JavaScript enabled to view it. $ cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Feb 5 16:25:36 2010
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63
; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
context = default
group = 63
This email address is being protected from spambots. You need JavaScript enabled to view it. $ cat /etc/asterisk/zapata.conf
;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
hanguponpolarityswitch
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-channels.conf
;Include AMP configs
#include zapata_additional.conf
This email address is being protected from spambots. You need JavaScript enabled to view it. $ cat /etc/zaptel.conf(因为我使用了Dahdi,这个文件应该就不起作用了吧。)
# Autogenerated by /usr/local/sbin/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
# Global data
fxsks=1
fxsks=2
fxsks=3
fxsks=4
loadzone = cn
defaultzone = cn
请问我的配置有问题吗?期待你的答复。
谢谢。