Ads

Cisco CUBE Deep Dive - In Depth Configuration

                               Configuration file of  a CUBE SBC deployed for Enterprise

Today, I will be showing you the complete configuration file that you need to deploy for a SBC CUBE in enterprise network. Cisco Unified Border Element act as Session border controller for Voice over IP traffic and talks SIP to SIP, or SIP to H323 or vice-versa with ITSP and internal company VOIP network. So there are some main parts that need to be present in the configuration of our CUBE.



                               

Here Below I am providing a live network CUBE Configuration of our deployed SBC in south africa, we are using service provider SIP link on Interface Gig0/0 with below specific settings, it may change depending upon your service provider requirements;

                               ITSP Specific Interface Configuration

!
interface GigabitEthernet0/0
 description NHBRC VOIP CONNECT TO TELKOM DC
 ip address 172.16.19.13 255.255.255.128
 ip flow monitor nhbrc-monitor input
 ip flow monitor nhbrc-monitor output
 ip flow ingress
 ip flow egress
 standby delay minimum 30 reload 60
 standby version 2
 standby 0 ip 172.16.19.2
 standby 0 preempt
 standby 0 name NHBRC
 standby 0 track 1 decrement 10
 duplex auto
 speed auto
 bfd interval 500 min_rx 500 multiplier 3
!

                                    SIP Registration Configuration

You need to add the registrar server under sip-ua configuration as below;

sip-ua
keepalive target dns:ppr1.gcbstrunk.qos.telkomvoip.co.za
registrar dns:ppr1.gcbstrunk.qos.telkomvoip.co.za expires 3600
sip-server dns:ppr1.gcbstrunk.qos.telkomvoip.co.za
notify telephone-event max-duration 3000
connection-reuse
host-registrar
!

                                 VOICE SERVICE VOIP Configuration

!
voice service voip
 ip address trusted list
  ipv4 0.0.0.0 0.0.0.0
 dtmf-interworking rtp-nte
 mode border-element
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 redundancy
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 no supplementary-service sip handle-replaces
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
 h323
  h225 timeout ntf 500
  h225 display-ie ccm-compatible
 sip
  bind control source-interface GigabitEthernet0/0
  bind media source-interface GigabitEthernet0/0
  rel1xx disable
  localhost dns:nhbrcpri.ppr1.gcbstrunk.qos.telkomvoip.co.za
  no update-callerid
  early-offer forced
  midcall-signaling passthru
  g729 annexb-all
  sip-profiles 1
  no call service stop
!


The complete configuration example of the CUBE gateway is as below;

*******************************************************
!
hostname NHBRC-VG-01
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
no logging queue-limit
logging buffered 100000
no logging rate-limit
!
!
ipc zone default
association 1
no shutdown
protocol sctp
local-port 5000
local-ip 172.16.19.13
  remote-port 5000
    remote-ip 172.16.19.14
!
no aaa new-model
clock timezone GMT 2 0
!
!
!
!
!
!
!
ip domain name nhbrcdmn.org.za
ip name-server 165.148.248.33
ip name-server 165.148.252.33
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
flow record nhbrc-record
 match ipv4 protocol
 match ipv4 source address
 match ipv4 destination address
 match transport source-port
 match transport destination-port
 collect routing source as
 collect routing destination as
 collect ipv4 tos
 collect ipv4 source mask
 collect ipv4 destination mask
 collect transport tcp source-port
 collect transport tcp destination-port
 collect transport tcp flags
 collect interface input
 collect interface output
 collect flow direction
 collect counter bytes
 collect counter packets
 collect timestamp sys-uptime first
 collect timestamp sys-uptime last
!
!
flow exporter nhbrc-exporter
 destination 172.16.0.177
 source GigabitEthernet0/0
 transport udp 2055
 template data timeout 300
!
!
flow monitor nhbrc-monitor
 exporter nhbrc-exporter
 cache timeout active 30
 record nhbrc-record
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-1534905813
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-1534905813
 revocation-check none
 rsakeypair TP-self-signed-1534905813
!
!
crypto pki certificate chain TP-self-signed-1534905813
 certificate self-signed 01
  3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
  31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
  69666963 6174652D 31353334 39303538 3133301E 170D3134 30363137 31383234
  31355A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
  4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 35333439
  30353831 3330819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
  81009A33 D82F6514 6B1014A3 1FC69FA3 A9FE74CD 62E3DAA8 0C58D991 78A00E25
  4566794B 3597976A 7DA18A9A 77E3352E 42EFDF2C 0B5FFC5C D87D79D8 374FB11E
  EDA13A7B 426124DA 4F8CA5F9 A73C0B05 7B9DA030 C4EFE6B3 E167DA92 7494FCCB
  05508915 2C1E3BCE 0C334515 4B85AAC5 86D356AD EC6E6CCC 0808DD1E 10E7E17F
  8A9D0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
  551D2304 18301680 149B34E4 E5ADF841 D6EEE255 157CB475 A91D3C9D 55301D06
  03551D0E 04160414 9B34E4E5 ADF841D6 EEE25515 7CB475A9 1D3C9D55 300D0609
  2A864886 F70D0101 05050003 81810039 45B23AB5 96EF033A 87F4CD35 B06E6814
  5C8CCD4D 973696D5 AA18685E B04F9E95 D3C5FEA5 F5542D73 2E2FC35C 555A71DA
  0BDFB0B4 6F36AF1B 4E01930B 4445D074 8B89D2ED BB006D08 176E778F F66EBB3C
  1CDF2814 8FFF59E5 8875E499 EC428F7B 933540A3 09B0B5FF 72B145D9 E5B91A98
  721E1FCC D0DC207D 27761CA9 EA0AF3
        quit
voice-card 0
 dspfarm
 dsp services dspfarm
!
!
!
voice service voip
 ip address trusted list
  ipv4 0.0.0.0 0.0.0.0
 dtmf-interworking rtp-nte
 mode border-element
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 redundancy
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 no supplementary-service sip handle-replaces
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
 h323
  h225 timeout ntf 500
  h225 display-ie ccm-compatible
 sip
  bind control source-interface GigabitEthernet0/0
  bind media source-interface GigabitEthernet0/0
  rel1xx disable
  localhost dns:nhbrcpri.ppr1.gcbstrunk.qos.telkomvoip.co.za
  no update-callerid
  early-offer forced
  midcall-signaling passthru
  g729 annexb-all
  sip-profiles 1
  no call service stop
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g729r8 bytes 60
!
voice class codec 2
 codec preference 1 g729r8
!
voice class sip-profiles 1
 request INVITE sip-header Allow-Header modify "UPDATE," ""
 request REINVITE sip-header Allow-Header modify "UPDATE," ""
 response 200 sip-header Allow-Header modify "UPDATE," ""
 response 180 sip-header Allow-Header modify "UPDATE," ""
 request REINVITE sdp-header Audio-Attribute modify "inactive" "sendrecv"
 request ACK sdp-header Audio-Attribute modify "sendonly" "sendrecv"
 response 200 sdp-header Audio-Attribute modify "sendonly" "sendrecv"
!
!
!
!
voice translation-rule 111
 rule 1 /0448711209/ /6999/
 rule 2 /0393150488/ /6824/
 rule 3 /0343123507/ /6832/
 rule 4 /0153075097/ /6608/
 rule 5 /0153075075/ /6608/
 rule 6 /0183842669/ /6842/
 rule 7 /0147364513/ /6629/
 rule 8 /0147366043/ /6630/
 rule 9 /0219139210/ /9210/
 rule 10 /0219139211/ /9210/
 rule 11 /0437211377/ /6500/
 rule 12 /0413650301/ /6780/
 rule 16 /0137553319/ /6670/
 rule 17 /0184620304/ /6898/
 rule 21 /01459499[0-4][0-9]/ /6868/
 rule 22 /014594995[0-6]/ /6868/
 rule 24 /0313748100/ /8100/
 rule 25 /03137481/ /81/
!
voice translation-rule 112
 rule 1 /[2600]$/ /99/
!
voice translation-rule 113
 rule 1 /[519]$/ /99/
!
voice translation-rule 114
 rule 1 /64[1-2]$/ /99/
!
voice translation-rule 115
 rule 1 /[850]$/ /99/
!
voice translation-rule 999
 rule 1 /^00/ /271131700/
 rule 2 /^01/ /271131701/
 rule 3 /^02/ /271131702/
 rule 4 /^03/ /271131703/
 rule 5 /^04/ /271131704/
 rule 6 /^05/ /271131705/
 rule 7 /^55/ /271152555/
 rule 8 /^56/ /271152556/
 rule 9 /^57/ /271152557/
 rule 10 /^77/ /271131777/
 rule 11 /^90../ /27113170000/
 rule 12 /^681[1-9]/ /27448711209/
 rule 13 /^662[8-9]/ /27147366043/
 rule 14 /^663[0-6]/ /27147366043/
 rule 15 /^660[7-9]/ /27153075097/
 rule 16 /^661[0-6]/ /27153075097/
 rule 17 /^26[0-9][0-9]/ /27124442600/
 rule 18 /^683[2-9]/ /27343123507/
 rule 19 /^684[0]/ /27343123507/
 rule 20 /^682[0-9]/ /27393150488/
 rule 21 /^683[0-1]/ /27393150488/
 rule 22 /^6689/ /27219139210/
 rule 23 /^669[0-9]/ /27219139210/
 rule 24 /^67[0-1][0-9]/ /27219139210/
 rule 25 /^6720/ /27219139210/
 rule 26 /^674[6-9]/ /27219139210/
 rule 27 /^675[0-6]/ /27219139210/
 rule 28 /^65[0-3][0-9]/ /27437211377/
 rule 29 /^677[2-9]/ /27413650301/
 rule 30 /^67[8-9][0-9]/ /27413650301/
 rule 31 /^680[0-9]/ /27413650301/
 rule 32 /^681[0-1]/ /27413650301/
 rule 33 /^673[0-9]/ /27538326850/
 rule 34 /^674[0-5]/ /27538326850/
 rule 35 /^65[4-9][0-9]/ /27152977519/
 rule 36 /^660[0-6]/ /27152977519/
 rule 37 /^666[1-9]/ /27137553319/
 rule 38 /^667[0-9]/ /27137553319/
 rule 39 /^668[0-8]/ /27137553319/
 rule 40 /^684[1-9]/ /27183842669/
 rule 41 /^685[0-7]/ /27183842669/
 rule 42 /^689[6-9]/ /27184620304/
 rule 43 /^6900/ /27184620304/
 rule 44 /^69[1-2][0-9]/ /27514487955/
 rule 45 /^685[8-9]/ /27145949900/
 rule 46 /^68[6-8][0-9]/ /27145949900/
 rule 47 /^689[0-5]/ /27145949900/
 rule 48 /^663[7-9]/ /27136561641/
 rule 49 /^66[4-5][0-9]/ /27136561641/
 rule 50 /^81[0-5][0-9]/ /27313748100/
 rule 51 /^6619/ /27137553319/
 rule 100 /.*/ /27113170000/
!
voice translation-rule 1111
!
!
voice translation-profile Incoming-Branch-Kimberly
 translate called 115
!
voice translation-profile Incoming-Branch-Polokwane
 translate called 113
!
voice translation-profile Incoming-Branch-Redirect
 translate called 111
!
voice translation-profile Incoming-Branch-Tshwane
 translate called 112
!
voice translation-profile Incoming-Branch-Witbank
 translate called 114
!
voice translation-profile Outgoing-Number-Mask
 translate calling 999
!
!
!
license udi pid CISCO2911/K9 sn FCZ182560EN
hw-module pvdm 0/0
!
!
!
username admin privilege 15 password 0 nhbrcadmin01
!
redundancy inter-device
 scheme standby NHBRC
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 description NHBRC VOIP CONNECT TO TELKOM DC
 ip address 172.16.19.13 255.255.255.128
 ip flow monitor nhbrc-monitor input
 ip flow monitor nhbrc-monitor output
 ip flow ingress
 ip flow egress
 standby delay minimum 30 reload 60
 standby version 2
 standby 0 ip 172.16.19.2
 standby 0 preempt
 standby 0 name NHBRC
 standby 0 track 1 decrement 10
 duplex auto
 speed auto
 bfd interval 500 min_rx 500 multiplier 3
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 no ip address
 shutdown
 duplex auto
 speed auto
!
ip default-gateway 172.16.19.10
ip forward-protocol nd
!
no ip http server
no ip http secure-server
ip flow-export source GigabitEthernet0/0
ip flow-export version 5
ip flow-export destination 172.16.0.177 2055
!
ip rtcp report interval 3000
ip route 0.0.0.0 0.0.0.0 172.16.19.10
ip route 10.212.134.0 255.255.255.0 172.16.19.1
ip route 172.0.0.0 255.0.0.0 172.16.19.1
!
!
!
snmp-server community nhbrcdmn RO
snmp-server trap-source GigabitEthernet0/0
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server host 172.16.0.177 version 2c nhbrcdmn
snmp-server host 172.16.1.83 version 2c nhbrcdmn
snmp-server host 172.16.19.5 version 2c nhbrcdmn
!
control-plane
!
 !
 !
 !
 !
!
ccm-manager music-on-hold
ccm-manager sccp local GigabitEthernet0/0
!
no mgcp package-capability res-package
no mgcp timer receive-rtcp
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
sccp local GigabitEthernet0/0
sccp ccm 172.16.19.19 identifier 1 version 7.0
sccp ccm 172.16.19.18 identifier 2 version 7.0
sccp
!
sccp ccm group 1
 associate ccm 1 priority 1
 associate ccm 2 priority 2
 associate profile 3 register NHBRC-DC-MTP
 associate profile 1 register NHBRC-DC-CFB
 associate profile 2 register NHBRC-DC-XCODE
 associate profile 4 register NHBRC-DC-CUBE
 keepalive retries 5
 switchover method immediate
 switchback method immediate
 switchback interval 15
!
dspfarm profile 2 transcode
 codec g729r8
 codec g711ulaw
 codec g711alaw
 codec g729ar8
 codec g729abr8
 maximum sessions 4
 associate application SCCP
!
dspfarm profile 4 transcode universal
 codec g729br8
 codec g729r8
 codec g711ulaw
 codec g711alaw
 codec g729ar8
 codec g729abr8
 maximum sessions 1
 associate application CUBE
 shutdown
!
dspfarm profile 1 conference
 codec g711ulaw
 codec g711alaw
 codec g729ar8
 codec g729abr8
 codec g729r8
 codec g729br8
 maximum sessions 2
 associate application SCCP
!
dspfarm profile 3 mtp
 codec pass-through
 codec g711ulaw
 maximum sessions software 2000
 associate application SCCP
!
dial-peer voice 10 voip
 tone ringback alert-no-PI
 description **************NHBRC To Telkom**************
 translation-profile outgoing Outgoing-Number-Mask
 destination-pattern .T
 session protocol sipv2
 session target sip-server
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip block 180 sdp absent
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 ip qos dscp ef signaling
 no vad
!
dial-peer voice 101 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Central Office**************
 preference 1
 destination-pattern 0113170[0-5]..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 102 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Central Office**************
 preference 2
 destination-pattern 0113170[0-5]..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 1002 voip
 tone ringback alert-no-PI
 description ************Incoming Dial-Peer*************
 translation-profile incoming Incoming-Branch-Redirect
 session target ipv4:172.16.19.18
 incoming called-number .
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 103 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Woodmead**************
 preference 1
 destination-pattern 0115255[5-7]..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 104 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Woodmead**************
 preference 2
 destination-pattern 0115255[5-7]..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 801 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - TEST**************
 preference 1
 destination-pattern 01131777..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 802 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - TEST**************
 preference 2
 destination-pattern 01131777..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 201 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Branch Redirect - 6...***********
 preference 1
 destination-pattern 6...
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 202 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Branch Redirect - 6...***********
 preference 2
 destination-pattern 6...
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 105 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Branch Offices**************
 preference 1
 destination-pattern 0113176[5-8]..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 106 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Branch Offices**************
 preference 2
 destination-pattern 0113176[5-8]..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 107 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - PTA Offices**************
 preference 1
 destination-pattern 01244426..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 108 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - PTA Offices**************
 preference 2
 destination-pattern 01244426..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 203 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Branch Redirect PTA - 26..*******
 preference 1
 destination-pattern 26..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 204 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Branch Redirect PTA - 26..*******
 preference 2
 destination-pattern 26..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 205 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - Branch Redirect DBN - 8100*******
 preference 1
 destination-pattern 8[1-2]..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 206 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - Branch Redirect DBN - 8100*******
 preference 2
 destination-pattern 8[1-2]..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 109 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - DBN Offices**************
 preference 1
 destination-pattern 0313748[1-2]..
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 110 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - DBN Offices**************
 preference 2
 destination-pattern 0313748[1-2]..
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8800 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM PUB - CPT Switchboard**************
 preference 1
 destination-pattern 9210$
 session protocol sipv2
 session target ipv4:172.16.19.18
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8801 voip
 tone ringback alert-no-PI
 description **************NHBRC CUCM SUB - CPT Switchboard**************
 preference 2
 destination-pattern 9210$
 session protocol sipv2
 session target ipv4:172.16.19.19
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8802 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 preference 2
 destination-pattern 051448795.
 session protocol sipv2
 session target ipv4:172.16.19.19
 incoming called-number 051448795.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8803 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 preference 2
 destination-pattern 051448795.
 session protocol sipv2
 session target ipv4:172.16.19.18
 incoming called-number 051448795.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 1003 voip
 tone ringback alert-no-PI
 description ************Incoming Dial-Peer*************
 translation-profile incoming Incoming-Branch-Redirect
 session target ipv4:172.16.19.19
 incoming called-number .
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8804 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Polokwane
 preference 2
 destination-pattern 015297751.
 session protocol sipv2
 session target ipv4:172.16.19.19
 incoming called-number 015297751.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8805 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Polokwane
 preference 2
 destination-pattern 015297751.
 session protocol sipv2
 session target ipv4:172.16.19.18
 incoming called-number 015297751.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8806 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Tshwane
 preference 2
 destination-pattern 012444260.
 session protocol sipv2
 session target ipv4:172.16.19.19
 incoming called-number 012444260.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8807 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Witbank
 preference 2
 destination-pattern 012444260.
 session protocol sipv2
 session target ipv4:172.16.19.18
 incoming called-number 012444260.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8808 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Witbank
 preference 2
 destination-pattern 013656164.
 session protocol sipv2
 session target ipv4:172.16.19.19
 incoming called-number 013656164.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8809 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 preference 2
 destination-pattern 013656164.
 session protocol sipv2
 session target ipv4:172.16.19.18
 incoming called-number 013656164.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8810 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Kimberly
 preference 2
 destination-pattern 053832685.
 session protocol sipv2
 session target ipv4:172.16.19.19
 incoming called-number 053832685.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
dial-peer voice 8811 voip
 tone ringback alert-no-PI
 description **************NHBRC Branch office Redirect**************
 translation-profile incoming Incoming-Branch-Kimberly
 preference 2
 destination-pattern 053832685.
 session protocol sipv2
 session target ipv4:172.16.19.18
 incoming called-number 053832685.
 voice-class codec 1 offer-all
 voice-class sip dtmf-relay force rtp-nte
 voice-class sip early-offer forced
 voice-class sip profiles 1
 voice-class sip options-keepalive
 dtmf-relay h245-alphanumeric rtp-nte
 fax-relay sg3-to-g3
 fax protocol pass-through g711alaw
 no vad
!
!
sip-ua
 keepalive target dns:ppr1.gcbstrunk.qos.telkomvoip.co.za
 registrar dns:ppr1.gcbstrunk.qos.telkomvoip.co.za expires 3600
 sip-server dns:ppr1.gcbstrunk.qos.telkomvoip.co.za
 notify telephone-event max-duration 3000
 connection-reuse
 host-registrar
!
!
!
gatekeeper
 shutdown
!
!
alias exec 1 term mon
alias exec 2 term no mon
!
line con 0
 login local
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line vty 0 4
 login local
 transport input telnet ssh
line vty 5 15
 login local
 transport input telnet ssh
!
scheduler allocate 20000 1000
ntp master 4
!
end
NHBRC-VG-01#*******************************************************
I hope it has helped your knowledge on configuring elements for enterprise network SBC (CUBE)
For more updates, please do subscribe our channel and stay tuned.