码迷,mamicode.com
首页 > 系统相关 > 详细

CISCO_CVoice – 004 : 模拟与数字中继 : CCS

时间:2015-09-25 14:37:02      阅读:321      评论:0      收藏:0      [点我收藏+]

标签:ccie voice


1.    概念:
PRI
是最常用的,T1E1配置一样,不像CAS那么复杂
ISDN
是服务类型,2BBRI32B的叫PRI,即E1,目前国内使用30B+D的多,ISP现在基本不提供BRI服务了。


2.    讨论的问题如下:
T1 / E1
的时钟问题
数字线路承载的语音通道的pri0-group 配置
ISDN / PRI
Q.921Q.931的调试
ISDN DNIS
DID


3.    拓扑图:
技术分享

拓扑中R2模拟局端,配置如下:
sh diag
查看E1接口卡的槽位
isdn protocol-emulate network
将此接口的设备仿真为网络端设备
card type E1 0 2
定义slot 2上的模块为E1类型
network-clock-participate wic 2
打开VWIC slot 2上的时钟功能
network-clock-select 1 E1 0/2/0 
配置时钟原的优先级


R2  - Config
Card type E1 0 2

Network-clock-participate wic 2

Network-clock-select 1 e1 0/2/0


controller e1 0/2/0

frame crc 4

linecode ami

clock source internal

pri-group 0 timeslots 1 -6  // 此命令会自动产生虚拟接口s0/2/0:15 voice-port 0/2/0:15, 这里的接口编号是固定的,E115 T123. 此时的timeslots的数量受限于DSP的处理能力 //

isdn switch-type ?  //可能是IOS特性不一样,有的是NET5//

basic-1tr6    1TR6 switch type for Germany

basic-5ess    Lucent 5ESS switch type for the U.S.

basic-dms100  Northern Telecom DMS-100 switch type for theU.S.

basic-net3   NET3 switch type for UK, Europe, Asia andAustralia

basic-ni      National ISDN switch type for the U.S.

basic-qsig    QSIG switch type

basic-ts013   TS013 switch type for Australia (obsolete)

ntt           NTT switch type for Japan

vn3           VN3 and VN4 switch types for France

 

int s0/2/0:15
isdn protocol-emulate network  //
确认为局端//

isdnincoming-voice voice //默认命令,进来的voice交给DSP处理//

 

dial-pvoi 1000 pots

destination-pattern12341…

forward-digitall  //转发所有,相当于不吃号//

port0/2/0:15

forward-digit4  //保留后4//

 

dial-p voi 2000pots

detination-pattern2000

port 1/0/0

 

 

R1 – Config  除里局端配置部分,基本和R2差不多

Isdn switch-typebasic-net3

Card type E1 0 2

Network-clock-participate wic 2

Network-clock-select 1 e1 0/2/0

Controller e10/2/0

frame crc 4

linecode ami

clock source line   //时钟源来自局端//

pri-group 0 timeslots 1 -6  //与对端一致 //

 

dial-peer voi 2000 pots

destination-pattern 0T

port 0/2/015

 

dial-p voi 1000 pots

destination-pattern 1000

port 1/0/0

 

通过sh isdn statues 查看ISDN的连接情况:

R1#sh isdn status

Global ISDN Switchtype = basic-net3

ISDN Serial0/2/0:15 interface dsl 0, interfaceISDN Switchtype = basic-net3

Layer1 Status: ACTIVE

Layer2 Status: TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED

Layer 3 Status: 0 Active Layer 3 Call(s)

Active dsl 0 CCBs = 0

The Free Channel Mask: 0x800FFFFF

Number of L2 Discards = 0, L2 Session ID =47

Total Allocated ISDN CCBs = 0

如图,L2的状态是MULTIPLE_FRAME_ESTABLISHED,说明ISDN连接正常.

尝试1000拨打2000,发现此时听到二次拨号音,呼叫无法建立,通过debug q931,看到plan type均为unknown状态。
原因:PRI的原始行为是监听B通道的DTMF,但在连接阶段是没有DTMF的,只有信令,此时路由器没有在B通道里找到相应号码,所以发送二次拨号音。而这时的呼叫号码其实已经存在了,但是在D通道里,通过DNIS传播。这就是我们所说的二次拨号音的问题。

解决方案:R2上配置DID功能,让其监听D通道里的呼叫号码。对于DID,有两个功能,一是监听D通道里的DNIS,另一个是直接拨入。配置如下:

R1 / R2dial-p voi 1 pots
        incoming called-number . //
请注意这个点,意义是命中一位即可//
        direct-inward-dial  //DID//

配置以上的DID后再一次尝试拨打电话,从R2R112341000,发现此时不通,原因是R1并无到12341000的语音路由。

解决法案:
1.
R1手工添加一条语音路由,但在实际生产环境中,可能企业中会有几百个电话号码,如果逐条添加,会增加IT的工作量。
2.
定义转换规则
   translation-rule 1  //
定义转换规则1//
    rule 1 ^12341 1  //
12341开头的号码转换为1//

   Voice-port 0/2/0:15

Translate-called 1  //在此接口的入方向调用转换规则1//

至此电话能通了,此转换规则是用来转换入向号码,当然也可以转换出向号码。关于转换规则,将在下节介绍。

一些调试命令:

技术分享


本文出自 “Born to Win” 博客,请务必保留此出处http://52share.blog.51cto.com/221477/1698185

CISCO_CVoice – 004 : 模拟与数字中继 : CCS

标签:ccie voice

原文地址:http://52share.blog.51cto.com/221477/1698185

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!