命令间存在逻辑关联,必须按照前后顺序进行配置。
1. 配置语音编码及SIP地址格式
voice class uri 2 sip
host ipv4:CUCM的地址
voice class codec 1
codec preference 1 g729r8
codec preference 2 g711ulaw
codec preference 3 g711alaw
codec preference 4 g722-64
2. 配置VOIP服务具体参数
voice service voip
ip address trusted list
ipv4 CUCM的地址 PUB
ipv4 CUCM的地址 SUB1
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
redirect ip2ip
signaling forward unconditional
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
bind control source-interface Loopback0
bind media source-interface Loopback0
3. dial-peer 出入方向配置
dial-peer voice 2000 voip
description Incoming Calls from CUCM
session protocol sipv2
incoming uri via 2
voice-class codec 1
dtmf-relay sip-notify
no vad
!
dial-peer voice 2001 voip
description Outgoing calls to CUCM
destination-pattern 3...
session protocol sipv2
session target ipv4:CUCM负责处理Call的SUB或PUB
voice-class codec 1
dtmf-relay sip-notify
no vad
本文出自 “阿贵否?” 博客,转载请与作者联系!
原文:http://aguifou.blog.51cto.com/1495469/1970516