本站唯一网址:www.zgtxzj.com 联系QQ:394065236  客服热线:4008738599         加入收藏
思科语音路由器调试

思科语音路由器调试

作者:网络    来源:Admin5    发布时间:2021-05-06 21:46    浏览量:
一:如下为备语音网关:
vg3945-COMMON_PSTN_E1 #sh run
hostname vg3945-COMMON_PSTN_E1 //语音网关名称 PVDM64 -256
card type e1 0 0  //语音接口卡E1
   card type command needed for slot/vwic-slot 0/1
network-clock-participate wic 0 //时钟参与
network-clock-select 1 E1 0/0/0  //必须加 时钟参与 获取时钟点
ip cef
isdn switch-type primary-net5  //ISDN 语音PRI NET 5
voice-card 0  /语音E1卡位置
voice service voip  //CUCM与VOCIE GW 的通信协议为H323
 allow-connections h323 to h323
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
!
voice class codec 1  //压缩方式
 codec preference 1 g711ulaw
 codec preference 2 g729r8
voice translation-rule 1 //内线IP电话打时将话机对应连续短号连换为长号 ,使用规则1
 rule 1 /^8...$/ /7648\0/ //表示将短号8...(8000,8001----8999等)转换为7648+短号 如:76488000 76488001 等 对应上即可。0表示从前面0开始转意。
!
voice translation-rule 2 //外线打进来时,将号码任意长号转为对应的短号。76488000 76488001 等转为 8000 8001 等
 rule 1 /^.*\(8...\)$/ /\1/ 1表示后面的8... ^.*表示任意前几位号码部分
!
voice translation-rule 3 //表示给任意号码前加个9,这个规则主要方便外线打进来时,可以重拨不加9打出去 要不然需加9,实际需要须加上
 rule 1 /^.*$/ /9\0/
!
!
voice translation-profile fr-pstn
 translate calling 3 //引进打进来的电话号码加9,目的当内线外线拨入记录的号码时不需加9,要不然加9
 translate called 2 //被叫时,转成短号
!
voice translation-profile to-pstn //打PSTN线路时,应用规则TRANSLATE RULE 1.拨打长号
 translate calling 1  //应用VOICE TRANS-RULE 1
hw-module pvdm 0/0  //PVDM资源
controller E1 0/0/0  //激活语音接口卡
 framing NO-CRC4  //封装
 pri-group timeslots 1-31 //使用30路PRI通道。
 trunk-group 1 timeslots 1-31//绑定组1
!
controller E1 0/0/1
 pri-group timeslots 1-31 //使用30路PRI通道。
 trunk-group 1 timeslots 1-31   //绑定组1
interface GigabitEthernet0/0 //接内网口
 description <<***Link LAN Switch***>>
 ip address 10.10.10.10 255.255.255.0
 duplex auto
 speed auto
 h323-gateway voip interface //H232网关
 h323-gateway voip bind srcaddr 10.10.10.10 //H323网关注册点
interface Serial0/0/0:15
 no ip address
 encapsulation hdlc
 isdn switch-type primary-net5 //30路通道 语音口
 isdn incoming-voice voice //VOICE功能
 no cdp enable
!
ip forward-protocol nd
trunk-group 1 //建立绑定组1
ip route 0.0.0.0 0.0.0.0 10.10.10.1
!
!
nls resp-timeout 1
cpd cr-id 1
!
!
control-plane
!
!
voice-port 0/0/0:15
mgcp profile default
dial-peer voice 1 pots  //进入时
 translation-profile incoming fr-pstn //如果不加这条则所有的可以呼入
 incoming called-number .          //让所有进入
 direct-inward-dial             //DID逮号
!
dial-peer voice 100 voip //语音风关至CUCM的配置
 destination-pattern 8...$ //至8...的号段去 即8000 7010 7009 等
 session target ipv4:10.161.83.120
 voice-class codec 1   //编码
 dtmf-relay h245-alphanumeric //DTMF媒体
 no vad //非静音
!
dial-peer voice 9 pots //打本地号码时按9+号码不能为0,如果0则国际长途
 translation-profile outgoing to-pstn
 destination-pattern 9[1-9]T //表示吃掉9,送出1至9天头的任意号
 port 0/0/0:15
!
dial-peer voice 90 pots
 translation-profile outgoing to-pstn
 destination-pattern 90[1-9]T//表示吃掉90,送出1至9开头的任意号
 port 0/0/0:15
 prefix 0  //由于0吃掉则得补上为长途号码 电信需求
!
dial-peer voice 900 pots  //拨打国际长途时以900开头。
 destination-pattern 900T //900吃号
 port 0/0/0:15
 prefix 00  //由于吃号则补上00不让吃号,如果用户申请的国际长途要加17931等才能用时应该更改如: prefix 0017931
gatekeeper
 shutdown

二:
特列情况: 当外线打长号时后4位或者3位等不是对应的电话注册号码,如些对应长号89137777 而内线短号为8999因此做相关转换
voice translation-rule 1  打外线时
 rule 1 /8999/  /89137777/
voice translation-rule 2  //打入内线时即被叫
rule 1 /89137777/  /8999/
三:网关上测试电话: CSIM START 8000 8999 等
四:常用命令:
SHOW ISDN STATUS LAY1 :H225 SETUP LAY2: H245 KEEPLIVE LAY3: SSL7 or Q931
SHOW CONTROLLER E1 0/0/0 查看端口UP DOWN情况
DEBUG ISDN 。。。
 中网讯通--专业交换机维护保养专家,技术全面,经验丰富,服务到位,欢迎您选择我们的服务,选用我们提供的产品及产品服务。

  选择中网讯通,您一定会体验到我们是您工作中的好帮手。
 欢迎随时来电咨询:010-62681459   技术服务7*24小时热线:400-873-8599

 

 

 

 



欢迎光临公司网站: www.zgtxzj.com  公司主要经营国内外程控交换机的销售安装调试及维修维护保养业务,交换机品牌主要有NEC、松下、西门子、阿尔卡特、摩托罗拉等国外品牌,国内品牌主要有华为、国威、恒捷、申瓯,中联交换机。IPPBX交换机有迅时,潮流,朗视系列IP类型交换机。

目前公司还开展5G及4G无线宽带安装业务办理,7*24小时办理热线:400 -873-8599,欢迎来电咨询办理,现拨打400-873-8599热线,优惠多多等着您。

公司服务热线: 010-62681459  技术咨询及购买意向请您拨打公司服务热线: 010-62681459  感谢您的惠顾 祝您工作愉快.

相关新闻推荐

在线客服 :

服务热线:4008738599

电子邮箱: 394065236@qq.com

公司地址:北京市海淀区苏州街1号绿创大厦七层005

成立于2011年3月,是一家以提供通讯产品及解决方案为主营业务的公司。公司主要专业提供(酒店、企业、办公楼、商业区、度假村、商务会所)综合布线...

友情链接:
Copyright © 2002-2018 中网讯通(北京)科技有限公司 版权所有