There is a logical association between the commands and must be configured in a sequential order.
1. Configure voice encoding and SIP address format
Voice class URI 2 sip
Host IPv4:address of CUCM
Voice Class codec 1
Codec Preference 1 G729R8
Codec Preference 2 G711ulaw
Codec Preference 3 G711alaw
Codec Preference 4 g722-64
2. Configure VoIP Service Specific parameters
Voice service VoIP
IP Address Trusted List
IPv4 The address of the CUCM PUB
IPv4 The address of the 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
传真 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 Access Direction configuration
Dial-peer Voice 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 is responsible for processing call's sub or pub
Voice-class codec 1
Dtmf-relay sip-notify
No VAD
This article is from "GUI no?" "Blog, reprint please contact the author!"
CUCM integrated with Cisco2811 router SIP