How to configure CUBE with CUCM

From Help

Jump to: navigation, search

The following config assumes the following


  • The router has private (Gi0/0) and public (Gi0/1) interfaces
  • Outbound calls are prefixed with a 9
  • SIP-UA.com DIDS are 2145556040 - 2145556069
  • SIP-UA.com Username is 100001 and password is 1357924680


Contents

DNS Settings

Configure DNS for sip-ua proxy lookup. We use SRV records for redundancy, so configuring DNS is necessary as part of our redundancy plan

ip domain-lookup
ip name-server 8.8.8.8


Global Voice Parameters

Use the following commands to enable cube, allow SIP traffic from trusted sources and setup 'address-hiding'

voice service voip
  allow-connections sip to sip
  ip address trusted list
     ipv4 208.110.65.16 255.255.255.240
     ipv4 10.10.10.0 255.255.255.0
     ipv4 173.203.199.137 255.255.255.255
  address-hiding
  sip
!
!

SIP-UA.com Registration & Authorization Settings

sip-ua
 credentials username 100001 password 1357924680 realm sip-ua.com
 authentication username 100001 password 1357924680
 registrar dns:proxy.sip-ua.com expires 60
 sip-server dns:proxy.sip-ua.com
 retry invite 2
 timers trying 150

Translation Profiles

The following translation rules will strip the prefix of 9 from outbound calls and set the caller-id of outbound calls to 2125556040.


voice translation-rule 1
 rule 1 /^9/ //

voice translation-rule 2
 rule 1 /^.*$/ /2125556040/

voice translation-profile SIP-UA
 translate called 1
 translate calling 2

Outbound SIP-UA.com Dial-Peer

The following dial-peer is for all 11-digit and 10-digit calls starting with 9. Configure the g711ulaw as the codec and bind the source interface to the public Gi0/1 interface

dial-peer voice 1 voip
 desc ** Outbound Dial-Peer to SIP-UA.com **
 translation-profile outgoing SIP-UA
 session protocol sipv2
 session target sip-server
 destination-pattern 91?[2-9]..[2-9]……$
 codec g711ulaw   
 voice-class sip early-offer forced
 voice-class sip bind control source-interface Gi0/1
 voice-class sip bind media source-interface Gi0/1
 dtmf-relay rtp-nte
 no vad



Inbound SIP-UA.com Dial-Peer

dial-peer voice 2 voip
 desc ** Incoming Dial-Peer from SIP-UA.com **
 session protocol sipv2
 session target sip-server
 incoming called-number 21455560[456].
 codec g711ulaw   
 voice-class sip early-offer forced
 voice-class sip bind control source-interface Gi0/1
 voice-class sip bind media source-interface Gi0/1
 dtmf-relay rtp-nte
 no vad


Outbound CUCM Dial-Peers

dial-peer voice 3 voip
 description ** Subscriber **
 destination-pattern 21455560[456].
 session protocol sipv2
 session target ipv4:10.10.10.11
 codec g711ulaw   
 voice-class sip bind control source-interface Gi0/0
 voice-class sip bind media source-interface Gi0/0
 dtmf-relay rtp-nte
 no vad

dial-peer voice 4 voip
 description ** Publisher **
 preference 1
 destination-pattern 21455560[456].
 session protocol sipv2
 session target ipv4:10.10.10.10
 codec g711ulaw   
 voice-class sip bind control source-interface Gi0/0
 voice-class sip bind media source-interface Gi0/0
 dtmf-relay rtp-nte
 no vad   

Inbound CUCM Dial-Peer

dial-peer voice 5 voip
 incoming called-number 91?[2-9]..[2-9]……$
 session protocol sipv2
 codec g711ulaw   
 voice-class sip bind control source-interface Gi0/0
 voice-class sip bind media source-interface Gi0/0
 dtmf-relay rtp-nte
 no vad