Cisco UC: CUBE Enhancements

CUBE 10.0.0 [IOS 15.4(2)T / IOS-XE 3.12] introduces the concept of Destination Server Group, which supports multiple session targets (up to 5) to be defined in a group and applied to a single outbound dial-peer.

This feature configures a server group (group of server addresses) that can be referenced from an outbound dial peer. This reduces the need to configure multiple dial-peers with the same capabilities but different destinations. E.g. Multiple subscribers in a cluster

Server-group configuration

Global Config

voice class server-group 1
    hunt-scheme {preference | round-robin}
    ipv4 2.2.2.21
    ipv4 2.2.2.22 preference 1
    description SIP Provider
!
voice class server-group 100
    hunt-scheme {preference | round-robin}
    ipv4 10.10.10.11 preference 2
    ipv4 10.10.10.12 preference 1
    ipv4 10.10.10.13
    description CUCM

Dial-Peer Config

dial-peer voice 1 voip
    description to SIP Provider
    session protocol sipv2
    session server-group 1

dial-peer voice 100 voip
    description to CUCM
    session protocol sipv2
    session server-group 100


Match incoming dial-peer

The following is the order in which inbound dial-peer is matched for SIP call-legs:

  • voice class uri URI-class-identifier with incoming uri {viaURI-class-identifier

  • voice class uri URI-class-identifier with incoming uri {requestURI-class-identifier

  • voice class uri URI-class-identifier with incoming uri {toURI-class-identifier

  • voice class uri URI-class-identifier with incoming uri {fromURI-class-identifier

  • incoming called-number DNIS-string

  • answer-address ANI-string

Global Config

! Loobpack 0 IP address is used by CUCM as a SIP destination
interface loopback0
    description for CUCM
    ip address 20.20.20.20 255.255.255.255

! Interface gi0/2 IP address is used by SIP provider as a SIP destination
interface gi0/2
    description for SIP Provider
    ip address 2.2.2.20 255.255.255.0

voice class uri CUCM
    sip host ipv4:20.20.20.20

voice class uri SIPProvider
    sip host ipv4:2.2.2.20

Dial-Peer Config

dial-peer voice 1 voip
    session protocol sipv2
    incoming uri to SIPProvider

dial-peer voice 100 voip
    session protocol sipv2
    incoming uri to CUCM


Destination patterns

Multiple patterns on a VoIP dial peer could be configured using an E.164 pattern map. 

Global Config

voice class e164-pattern-map 1
    e164 9011T
    e164 91[2-9]..[2-9]……$
    e164 911$

Dial-Peer Config

dial-peer voice 1 voip
    session protocol sipv2
    destination e164-pattern-map 1

In this case, pattern-map will be used on just one outbound dial-peer instead of multiple dial-peers for each pattern.

 

As a result: Dial-peers configuration

Before

dial-peer voice 1 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.21
    destination-pattern 91[2-9]..[2-9]……$
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

dial-peer voice 2 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.22
    destination-pattern 91[2-9]..[2-9]……$
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

dial-peer voice 3 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.21
    destination-pattern 9011T
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

dial-peer voice 4 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.22
    destination-pattern 9011T
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

dial-peer voice 5 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.21
    destination-pattern 9*911
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

dial-peer voice 6 voip
    description Outgoing Calls
    session protocol sipv2
    session target ipv4:2.2.2.22
    destination-pattern 9*911
    voice-class codec 1
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    dtmf-relay rtp-nte
    no vad

———————————————————————
dial-peer voice 100 voip
    description CUCM Pub
    destination-pattern AT
    session protocol sipv2
    session target ipv4:10.10.10.11
    incoming uri to CUCM
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad
!
dial-peer voice 101 voip
    description CUCM Sub 1
    preference 1
    destination-pattern AT
    session protocol sipv2
    session target ipv4:10.10.10.12
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad
!
dial-peer voice 102 voip
    description CUCM Sub 2
    destination-pattern AT
    session protocol sipv2
    session target ipv4:10.10.10.13
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad

After

voice class server-group 1
    hunt-scheme {preference | round-robin}
    ipv4 2.2.2.21
    ipv4 2.2.2.22 preference 1
    description SIP Provider

voice class server-group 100
    hunt-scheme {preference | round-robin}
    ipv4 10.10.10.11 preference 2
    ipv4 10.10.10.12 preference 1
    ipv4 10.10.10.13
    description CUCM
!
voice class uri CUCM
    sip host ipv4:20.20.20.20

voice class uri SIPProvider
    sip host ipv4:2.2.2.20
!
voice class e164-pattern-map 1
    e164 9011T
    e164 91[2-9]..[2-9]……$
    e164 911$
!
dial-peer voice 1 voip
    description to SIP Provider
    session protocol sipv2
    session server-group 1
    destination e164-pattern-map 1
    incoming uri to SIPProvider
    voice-class sip bind control source-interface GigabitEthernet0/2
    voice-class sip bind media source-interface GigabitEthernet0/2
    voice-class codec 1   
    dtmf-relay rtp-nte
    no vad

dial-peer voice 100 voip
    description to CUCM
    session protocol sipv2
    session server-group 100
    incoming uri to CUCM
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad

Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *