Cube Book
Cube Book
XE 17.5
First Published: 2021-08-15
Last Modified: 2022-08-15
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
[Link]
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,
INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH
THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,
CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of
the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS.
CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT
LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network
topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional
and coincidental.
All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version.
Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at [Link]/go/offices.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL:
[Link] Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a
partnership relationship between Cisco and any other company. (1721R)
© 2025 Cisco Systems, Inc. All rights reserved.
CONTENTS
Short Description 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
iii
Contents
Restrictions 27
Information about Virtual CUBE 27
Media 27
Virtual CUBE Licensing Requirements 28
DTMF Tones 38
DTMF Relay 38
Configuring DTMF Relays 41
Interoperability and Priority with Multiple DTMF Relay Methods 42
DTMF Interoperability Table 42
Verifying DTMF Relay 46
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
iv
Contents
Configuring Audio Codecs Using a Codec Voice Class and Preference Lists 59
Configuring Video Codecs Using Codec Voice Class 61
Verifying an Audio Call 62
Configuration Examples for Codecs 63
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
v
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
vi
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
vii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
viii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
ix
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
x
Contents
Feature Information for Multiple Pattern Support on a Voice Dial Peer 291
Restrictions for Multiple Pattern Support on a Voice Dial Peer 292
Information About Multiple Pattern Support on a Voice Dial Peer 292
Configuring Multiple Pattern Support on a Voice Dial Peer 292
Verifying Multiple Pattern Support on a Voice Dial Peer 295
Configuration Examples for Multiple Pattern Support on a Voice Dial Peer 296
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xi
Contents
Feature Information for Outbound Dial-Peer Group as an Inbound Dial-Peer Destination 299
Restrictions 300
Information About Outbound Dial-Peer Group as an Inbound Dial-Peer Destination 300
Configuring Outbound Dial-Peer Group as an Inbound Dial-Peer Destination 301
Verifying Outbound Dial-Peer Groups as an Inbound Dial-Peer Destination 303
Troubleshooting Tips 304
Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination 305
Feature Information for Inbound Leg Headers for Outbound Dial-Peer Matching 309
Prerequisites for Inbound Leg Headers for Outbound Dial-Peer Matching 310
Restrictions for Inbound Leg Headers for Outbound Dial-Peer Matching 310
Information About Inbound Leg Headers for Outbound Dial-Peer Matching 311
Configure Inbound Leg Headers for Outbound Dial-Peer Matching 311
Verifying Inbound Leg Headers for Outbound Dial-Peer Matching 314
Configuration Example: Inbound Leg Headers for Outbound Dial-Peer Matching 317
Feature Information for Configuring Server Groups in Outbound Dial Peers 319
Information About Server Groups in Outbound Dial Peers 320
How to Configure Server Groups in Outbound Dial Peers 321
Configuring Server Groups in Outbound Dial Peers 321
Verifying Server Groups in Outbound Dial Peers 324
Configuration Examples for Server Groups in Outbound Dial Peers 325
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xii
Contents
Verifying and Troubleshooting Domain-Based Routing Support on the Cisco UBE 333
Configuration Examples for Domain-Based Routing Support on the Cisco UBE 336
Example Configuring Domain-Based Routing Support on the Cisco UBE 336
Restrictions 350
Recommendations 351
Configuring VRF 352
Create a VRF 352
Assign Interface to VRF 353
Create Dial-peers 354
Bind Dial-peers 356
Configure VRF-Specific RTP Port Ranges 358
Example: VRF with overlapping and non-overlapping RTP Port Range 359
Directory Number (DN) Overlap across Multiple-VRFs 361
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xiii
Contents
Feature Information for Negotiation of an Audio Codec from a List of Codecs 419
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xiv
Contents
Feature Information for Call Progress Analysis Over IP-IP Media Session 451
Restrictions for Call Progress Analysis Over IP-to-IP Media Session 452
Information About Call Progress Analysis Over IP-IP Media Session 453
Call Progress Analysis 453
CPA Events 453
How to Configure Call Progress Analysis Over IP-to-IP Media Session 454
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xv
Contents
Restrictions for Fax Detection for SIP Call and Transfer On Cisco IOS XE 461
Information About Fax Detection for SIP Call and Transfer 461
Local Redirect Mode 462
Refer Redirect Mode 463
Fax Detection with Cisco IOS XE High Availability 464
How to Configure Fax Detection for SIP Calls 464
Configure DSP Resource to Detect Fax Tone 464
Dial-peer Configuration to Redirect Fax Call 465
Verifying Fax Detection for SIP Calls 467
Troubleshooting Fax Detection for SIP Calls 468
Configuration Examples for Fax Detection for SIP Calls 468
Example: Configuring Local Redirect 468
Example: Configuring Refer Redirect 469
Feature Information for Fax Detection for SIP Call and Transfer 469
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xvi
Contents
Prerequisites 479
Restrictions 479
Configuring RTCP Report Generation on Cisco UBE 480
Troubleshooting Tips 481
Feature Information for Configuring RTCP Report Generation 482
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xvii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xviii
Contents
CHAPTER 41 Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording 553
Feature Information for Third-Party GUID Capture for Correlation Between Calls and SIP-based
Recording 553
Restrictions for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording 554
Information About Third-Party GUID Capture for Correlation Between Calls and SIP-based
recording 554
How to Capture Third-Party GUID for Correlation Between Calls and SIP-based Recording 554
Verifying Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording 557
Configuration Examples for Third-Party GUID Capture for Correlation Between Calls and SIP-based
Recording 558
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xix
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xx
Contents
CHAPTER 47 Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls 631
Feature Information for Dynamic Payload Type Interworking for DTMF and Codec Packets for
SIP-to-SIP Calls 631
Restrictions for Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP
Calls 632
Symmetric and Asymmetric Calls 632
High Availability Checkpointing Support for Asymmetric Payload 633
How to Configure Dynamic Payload Type Passthrough for DTMF and Codec Packets for SIP-to-SIP
Calls 634
Configuring Dynamic Payload Type Passthrough at the Global Level 634
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxi
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxii
Contents
Prerequisites 658
Restrictions 658
Slow Start to Fast-Start Interworking 658
Restrictions for Slow-Start and Fast-Start Interworking 659
Enabling Interworking between Slow Start and Fast Start 659
Call Failure Recovery (Rotary) 660
Enabling Call Failure Recovery (Rotary) without Identical Codec Configuration 660
Managing H.323 IP Group Call Capacities 661
Configuration Examples for Managing H.323 IP Group Call Capacities 664
CHAPTER 51 SIP RFC 2782 Compliance with DNS SRV Queries 671
Prerequisites SIP RFC 2782 Compliance with DNS SRV Queries 671
Information SIP RFC 2782 Compliance with DNS SRV Queries 671
How to Configure SIP-RFC 2782 Compliance with DNS SRV Queries 672
Configuring DNS Server Query Format RFC 2782 Compliance with DNS SRV Queries 672
Configuring DNS Server Lookups 673
Verifying 675
Feature Information for SIP RFC 2782 Compliance with DNS SRV Queries 675
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxiii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxiv
Contents
CHAPTER 55 High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series Edge Platforms 721
About CUBE High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series Edge
Platforms 721
Box-to-Box Redundancy 721
Redundancy Group (RG) Infrastructure 722
Network Topology 722
Considerations and Restrictions 724
Considerations 724
Restrictions 725
How to Configure CUBE High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series
Edge Platforms 726
Before You Begin 726
Configure High Availability 726
Configuration Examples 732
Example: Control Interface Protocol Configuration 732
Example: Redundancy Group Protocol Configuration 732
Example: Redundant Traffic Interface Configuration 732
Verify Your Configuration 732
Troubleshoot High Availability Issues 740
CHAPTER 56 High Availability on Cisco ASR 1000 Series Aggregation Services Routers 741
About CUBE High Availability on Cisco ASR 1000 Series Routers 741
Inbox Redundancy 742
Box-to-Box Redundancy 743
Redundancy Group (RG) Infrastructure 743
PROTECTED Mode 744
Network Topology 744
Considerations and Restrictions 746
Considerations 746
Restrictions 748
How to Configure CUBE High Availability on Cisco ASR 1000 Series Router 749
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxv
Contents
CHAPTER 57 High Availability on Cisco CSR 1000V or C8000V Cloud Services Routers 771
About vCUBE High Availability on CSR 1000V or C8000V Cloud Services Routers 771
Box-to-Box Redundancy 772
Redundancy Group (RG) Infrastructure 772
Network Topology 773
Considerations and Restrictions 775
Considerations 776
Restrictions 777
How to Configure vCUBE High Availability on Cisco CSR 1000v or C8000V 778
Before You Begin 778
Configure High Availability 778
Configuration Example 780
Troubleshoot High Availability Issues 781
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxvi
Contents
CHAPTER 60 Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices 827
Feature Information for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices 827
Prerequisites for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices 828
Restrictions for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices 829
Information About Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices 829
Call Escalation with Stateful Switchover 830
Call De-escalation with Stateful Switchover 830
Media Forking with High Availability 831
High Availability Protected Mode and Box-to-Box Redundancy for ASR 831
Support for Box-to-Box High Availability with Virtual IP Addresses 832
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxvii
Contents
Feature Information for CVP Survivability TCL support with High Availability 841
Prerequisites 842
Restrictions 842
Recommendations 842
CVP Survivability TCL support with High Availability 842
Configuring CVP Survivability TCL support with High Availability 842
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxviii
Contents
CHAPTER 65 Consumption of Forked 18x Responses with SDP During Early Dialog 879
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxix
Contents
Feature Information for Consumption of Multiple Forked 18x Responses with SDP During Early
Dialog 879
Prerequisites 880
Restrictions 880
Information About Consumption of Forked 18x Responses with SDP During Early Dialog 880
Characteristics of Forked 18x Responses with SDP during Early Dialog 880
Configuring Consumption of Forked 18x Responses with SDP During Early Dialog 881
Configuring Consumption of Forked 18x Responses with SDP During Early Dialog Renegotiate 882
Troubleshooting Tips 884
CHAPTER 66 Support for Pass-Through of Unsupported Content Types in SIP INFO Messages 885
CHAPTER 67 Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border Element 887
Feature Information for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border
Element 897
Prerequisites for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified
Border Element 898
Restrictions for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified
Border Element 899
Configuring P-Header and Random-Contact Support on the Cisco Unified Border Element 899
Configuring P-Header Translation on a Cisco Unified Border Element 899
Configuring P-Header Translation on an Individual Dial Peer 900
Configuring P-Called-Party-Id Support on a Cisco Unified Border Element 901
Configuring P-Called-Party-Id Support on an Individual Dial Peer 902
Configuring Privacy Support on a Cisco Unified Border Element 903
Configuring Privacy Support on an Individual Dial Peer 905
Configuring Random-Contact Support on a Cisco Unified Border Element 906
Configuring Random-Contact Support for an Individual Dial Peer 907
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxx
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxi
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxii
Contents
Feature Information for Survivability for Hosted and Cloud Services 964
Feature Information for Cisco Unified Communications Manager Line-Side Support 977
Restrictions for Cisco Unified Communications Manager Line-Side Support 978
Information About Cisco Unified Communications Manager Line-Side Support 979
Cisco UBE Line-Side Deployment 979
Line-Side Deployment Scenarios 979
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxiii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxiv
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxv
Contents
CHAPTER 81 Common Criteria (CC) and The Federal Information Processing Standards (FIPS) Compliance 1071
Feature Information for Common Criteria (CC) and the Federal Information Standards (FIPS)
Compliance 1072
Supported Hardware and Software for Virtual CUBE 1072
Common Criteria Configuration on Cisco CSR 1000v 1072
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxvi
Contents
Glossary 1093
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxvii
Contents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
xxxviii
CHAPTER 1
Read Me First
Important Information
Note For CUBE feature support information in Cisco IOS XE Bengaluru 17.6.1a and later releases, see Cisco
Unified Border Element IOS-XE Configuration Guide.
Note The documentation set for this product strives to use bias-free language. For purposes of this documentation
set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial
identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be
present in the documentation due to language that is hardcoded in the user interfaces of the product software,
language used based on RFP documentation, or language that is used by a referenced third-party product.
Feature Information
Use Cisco Feature Navigator to find information about feature support, platform support, and Cisco software
image support. An account on [Link] is not required.
Related References
• Cisco IOS Command References, All Releases
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1
Read Me First
Short Description
Short Description
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and
other countries. To view a list of Cisco trademarks, go to this URL: [Link]
legal/[Link]. Third-party trademarks mentioned are the property of their respective owners. The use
of the word partner does not imply a partnership relationship between Cisco and any other company. (1721R)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
2
CHAPTER 2
New and Changed Information
• New and Changed Information, on page 3
Note • For detailed information on CUBE features supported on Cisco IOS Releases, Cisco IOS XE 3S Releases,
and Cisco IOS XE Denali 16.3.1 and later Releases, refer to CUBE Cisco IOS Feature Roadmap, CUBE
Cisco IOS XE 3S Feature Roadmap, and CUBE Cisco IOS XE Releases Feature Roadmap respectively.
• For CUBE feature support information for Cisco IOS XE Bengaluru 17.6.1a and later releases, see Cisco
Unified Border Element IOS-XE Configuration Guide.
• H.323 protocol is no longer supported from Cisco IOS XE Bengaluru 17.6.1a onwards. Consider using
SIP for multimedia applications.
• The documentation set for this product strives to use bias-free language. For purposes of this documentation
set, bias-free is defined as language that does not imply discrimination based on age, disability, gender,
racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions
may be present in the documentation due to language that is hardcoded in the user interfaces of the
product software, language used based on RFP documentation, or language that is used by a referenced
third-party product.
Description Documented at
Secure forking of nonsecure calls through Media CUBE Media Proxy, on page 579
Proxy
Support for Cisco 8200L Catalyst Edge Series Supported Platforms, on page 5
Platforms
Support for VoIP Trace Serviceability Framework VoIP Trace for CUBE, on page 1053
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
3
New and Changed Information
New and Changed Information
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
4
CHAPTER 3
Supported Platforms
Note Cisco Cloud Services Router 1000V Series (CSR 1000V) is no longer supported from Cisco IOS XE Bengaluru
17.4.1a onwards. If you are using CSR 1000V, you have to upgrade to Cisco Catalyst 8000V Edge Software
(Catalyst 8000V). For End-of-Life information on CSR 1000V, see End-of-Sale and End-of-Life Announcement
for the Select Cisco CSR 1000v Licenses.
Cisco Unified Border Element is supported on various platforms running on Cisco IOS Software Releases
and Cisco IOS XE Software Releases.
Note For information on migrating from existing Cisco IOS XE 3S releases to the Cisco IOS XE Denali 16.3 release,
see Cisco IOS XE Denali 16.3 Migration Guide for Access and Edge Routers
The following table provides information on Cisco router platform support for Cisco Unified Border Element:
Cisco Integrated Cisco 2900 Series Integrated Services Cisco IOS 12 M and T
Services Generation Routers
Cisco IOS 15 M and T 1
2 Routers (ISR G2)
Cisco 3900 Series Integrated Services
Routers
Cisco 4000 Series Cisco 4321 Integrated Services Routers Cisco IOS XE 3S
Integrated Services
Cisco 4331 Integrated Services Routers Cisco IOS XE Denali 16.3.1 onwards 2
Routers (ISR G3)
Cisco 4351 Integrated Services Routers
Cisco 4431 Integrated Services Routers
Cisco 4451 Integrated Services Routers
Cisco 4461 Integrated Services Routers Cisco IOS XE Amsterdam 17.2.1r onwards
Cisco 1000 Series Cisco 1100 Integrated Services Router Cisco IOS XE Gibraltar 16.12.1a onwards
Integrated Services models ISR1100 4G/6G support CUBE
Routers (ISR) features when running on IOS XE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
5
Supported Platforms
Cisco Cloud Cisco Cloud Services Router 1000V series Cisco IOS XE 3.15 onwards
Services Routers
Cisco IOS XE Denali 16.3.1 onwards
(CSR)
Cisco Catalyst Cisco Catalyst 8000V Edge Software Cisco IOS XE Bengaluru 17.4.1a onwards
8000V Edge (Catalyst 8000V)
Software (Catalyst
8000V)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
6
Supported Platforms
Feature Comparison on Supported Platforms
Note Collaboration feature support on Cisco ISR 4000 Series Routers is available from Cisco IOS XE Release
3.13.1S onwards. Cisco Cloud Services Routers 1000V Series support is available from Cisco IOS XE Release
3.15S onwards.
Features Cisco ASR 1000 Cisco ISR G2 Cisco ISR 4000 Series Cisco ISR 1000
Series Routers Series Routers Routers Series Routers
Media Forking Yes (Cisco IOS XE Yes (Cisco IOS Yes (Cisco IOS XE No
Release 3.8S Relase 15.2 (1) T Release 3.10S
onwards) onwards onwards)
Cisco UC Gateway Yes (Cisco IOS XE Yes (Cisco IOS Yes Yes
Services API Release 3.8S Release 15.2(2)T
onwards) onwards
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
7
Supported Platforms
Feature Comparison on Supported Platforms
Features Cisco ASR 1000 Cisco ISR G2 Cisco ISR 4000 Series Cisco ISR 1000
Series Routers Series Routers Routers Series Routers
Unified SRST Not supported SCCP SRST is Yes (Cisco IOS XE Yes. From Cisco
colocation with supported Fuji 16.7.1 Release IOS XE Bengaluru
CUBE onwards) 17.5.1a
SIP SRST is not
supported
Features Cisco CSR 1000V Cisco 8000V Cisco 8300 Cisco 8200 Cisco 8200L
Series Routers Catalyst Series Catalyst Edge Catalyst Edge Catalyst Edge
Edge Platforms Series Platforms Series Platforms Series Platforms
HA RG RG RG RG RG
Implementation Infrastructure Infrastructure Infrastructure Infrastructure Infrastructure
Transcoder No No Yes (via SCCP) Yes (via SCCP) Yes (via SCCP)
registered to
CUCM
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
8
Supported Platforms
Feature Comparison on Supported Platforms
Features Cisco CSR 1000V Cisco 8000V Cisco 8300 Cisco 8200 Cisco 8200L
Series Routers Catalyst Series Catalyst Edge Catalyst Edge Catalyst Edge
Edge Platforms Series Platforms Series Platforms Series Platforms
SRTP-RTP Yes - No DSP Yes - No DSP Yes - No DSP Yes - No DSP Yes - No DSP
Interworking resources resources resources resources resources
required required required required required
(Cisco IOS XE
Release 3.15S
onwards)
Note For more information on Unified SRST and Unified Border Element Co-location, see Unified SRST and
Unified Border Element Co-location.
Co-location of Cisco Unified Border Element - High Availability (HA) with Unified SRST is not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
9
Supported Platforms
Feature Comparison on Supported Platforms
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
10
PA R T I
CUBE Fundamentals and Basic Setup
• Overview of Cisco Unified Border Element, on page 13
• Virtual CUBE, on page 25
• Dial-Peer Matching, on page 31
• DTMF Relay , on page 37
• Introduction to Codecs, on page 51
• Call Admission Control, on page 65
• Basic SIP Configuration, on page 83
• SIP Binding , on page 111
• Media Path, on page 127
• SIP Profiles, on page 135
• SIP Out-of-Dialog OPTIONS Ping Group, on page 163
• Configure TCL IVR Applications, on page 171
• VoIP for IPv6, on page 193
• Monitoring of Phantom Packets, on page 251
• Configurable SIP Parameters via DHCP, on page 257
CHAPTER 4
Overview of Cisco Unified Border Element
Cisco Unified Border Element (CUBE) bridges voice and video connectivity between two separate VoIP
networks. It is similar to a traditional voice gateway, except for the replacement of physical voice trunks with
an IP connection. Traditional gateways connect VoIP networks to telephone companies using a circuit-switched
connection, such as PRI. The CUBE connects VoIP networks to other VoIP networks and is often used to
connect enterprise networks to Internet telephony service providers (ITSPs).
• Information About Cisco Unified Border Element, on page 13
• How to Configure Basic CUBE Features, on page 18
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
13
CUBE Fundamentals and Basic Setup
Information About Cisco Unified Border Element
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
14
CUBE Fundamentals and Basic Setup
Information About Cisco Unified Border Element
CUBE functionality is implemented on devices using a special IOS feature set, which allows CUBE to route
a call from one VoIP dial peer to another.
Protocol interworking is possible for the following combinations:
• H.323-to-SIP interworking
• H.323-to-H.323 interworking
• SIP-to-SIP interworking
The CUBE provides a network-to-network demarcation interface for signaling interworking, media
interworking, address and port translations, billing, security, quality of service, call admission control, and
bandwidth management.
The CUBE is used by enterprise and small and medium-sized organizations to interconnect SIP PSTN access
with SIP and H.323 enterprise unified communications networks.
A CUBE interoperates with several different network elements including voice gateways, IP phones, and
call-control servers in many different application environments, from advanced enterprise voice and/or video
services with Cisco Unified Communications Manager or Cisco Unified Communications Manager Express,
as well as simpler toll bypass and voice over IP (VoIP) transport applications. The CUBE provides organizations
with all the border controller functions integrated into the network layer to interconnect unified communications
voice and video enterprise-to-service-provider architectures.
Figure 2: Why Does an Enterprise Need the CUBE?
If an enterprise subscribes to VoIP services offered by an ITSP, connecting the enterprise CUCM through a
CUBE provides network demarcation capabilities, such as security, topology hiding, transcoding, call admission
control, protocol normalization and SIP registration, none of which is possible if CUCM connects directly to
the ITSP. Another use case involves mergers or acquisitions in an enterprise and the need to integrate voice
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
15
CUBE Fundamentals and Basic Setup
SIP/H.323 Trunking
equipment, such as CUCMs, IP PBXs, VM servers, and so on. If the networks in the two organizations have
overlapping IP addresses, CUBE can be used to connect the two distinct networks until the acquired organization
can be migrated into the enterprise addressing plan.
SIP/H.323 Trunking
Note H.323 protocol is no longer supported from Cisco IOS XE Bengaluru 17.6.1a onwards. Consider using SIP
for multimedia applications.
The Session Initiation Protocol (SIP) is a signaling communications protocol, widely used for controlling
multimedia communication sessions such as voice and video calls over IP networks. SIP (or H.323) trunking
is the use of VoIP to facilitate the connection of PBX to other VoIP endpoints across the Internet. To use SIP
trunking, an enterprise must have a PBX (internal VoIP system) that connects to all internal end users, an
Internet telephony service provider (ITSP), and a gateway that serves as the interface between the PBX and
the ITSP. One of the most significant advantages of SIP and H.323 trunking is the ability to combine data,
voice, and video in a single line, eliminating the need for separate physical media for each mode.
Figure 3: SIP/H.323 Trunking
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
16
CUBE Fundamentals and Basic Setup
Typical Deployment Scenarios for CUBE
Note For Cisco IOS XE Gibraltar 16.11.1a and later releases, the SIP processes are initiated only when either of
the following CLIs is configured:
• Voice dial-peer with session protocol as SIP.
• voice register global
• sip-ua
In the releases before Cisco IOS XE Gibraltar 16.11.1a, the following commands initiated the SIP processes:
• dial-peer voice (any)
• ephone-dn
• max-dn under call-manager-fallback
• ds0-group 0 timeslots 1 type e&m-wink-start
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
17
CUBE Fundamentals and Basic Setup
How to Configure Basic CUBE Features
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
18
CUBE Fundamentals and Basic Setup
Enabling the CUBE Application on a Device
The following sections describe the basic setup of CUBE through the steps involved in migrating the XYZ
corporation to CUBE using a SIP trunk.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
19
CUBE Fundamentals and Basic Setup
Enabling the CUBE Application on a Device
DETAILED STEPS
Procedure
Device> enable
Step 4 mode border-element license [capacity sessions | Enables CUBE configuration and configures the number
periodicity {mins value | hours value | days value}] of licenses (capacity).
Example: • Effective from Cisco IOS XE Amsterdam 17.2.1r, the
capacity keyword and sessions argument are
Device(conf-voi-serv)# mode border-element license deprecated. However, the keyword and argument are
capacity 200 available in the Command Line Interface (CLI). If you
Device(conf-voi-serv)# mode border-element license
try to configure license capacity using CLI, the
periodicity days 15 following error message is displayed:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
20
CUBE Fundamentals and Basic Setup
Verifying the CUBE Application on the Device
Step 5 allow-connections from-type to to-type Allows connections between specific types of endpoints in
a VoIP network.
Example:
• The two protocols (endpoints) refer to the VoIP
Device(conf-voi-serv)# allow-connections sip to protocols (SIP or H.323) on the two call legs.
sip
Device(conf-voi-serv)# end
SUMMARY STEPS
1. enable
2. show cube status
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
21
CUBE Fundamentals and Basic Setup
Configuring a Trusted IP Address List for Toll-Fraud Prevention
Licensed-Capacity : 10
Calls blocked (Smart Licensing Not Configured) : 0
Calls blocked (Smart Licensing Eval Expired) : 0
DETAILED STEPS
Procedure
Step 4 ip address trusted list Enters IP address trusted list mode and enables the addition
of valid IP addresses.
Example:
Device(conf-voi-serv)# ip address trusted list
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
22
CUBE Fundamentals and Basic Setup
Configuring a Trusted IP Address List for Toll-Fraud Prevention
Step 6 ipv6 ipv6-address Allows you to add IPv6 addresses to the trusted IP address
list.
Example:
Device(cfg-iptrust-list)# ipv6
2001:DB8:0:ABCD::1/48
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
23
CUBE Fundamentals and Basic Setup
Configuring a Trusted IP Address List for Toll-Fraud Prevention
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
24
CHAPTER 5
Virtual CUBE
The Cisco Unified Border Element (CUBE) feature set has traditionally been delivered with hardware router
platforms, such as the Cisco Integrated Services Router (ISR) series. A subset of CUBE features (vCUBE)
may be used in virtualized environments with the Cisco CSR 1000v Series Cloud Services Router or Cisco
Catalyst 8000V Edge Software (Catalyst 8000V).
Note When upgrading to Catalyst 8000V software from a CSR1000V release, an existing throughput configuration
will be reset to a maximum of 250 Mbps. Install an HSEC authorization code, which you can obtain from
your Smart License account, before reconfiguring your required throughput level.
Virtual CUBE in Cisco Catalyst Cisco IOS XE Bengaluru Virtual CUBE introduced for Cisco Catalyst
8000V Edge Software (Catalyst 17.4.1a 8000V Edge Software (Catalyst 8000V) in
8000V) VMware ESXi and AWS environments.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
25
CUBE Fundamentals and Basic Setup
Prerequisites for Virtual CUBE
vCUBE in Amazon Web Cisco IOS XE Gibraltar vCUBE offer introduced in AWS for Cisco CSR
Services (AWS) 16.12.4a 1000v Series Cloud Services Router.
Virtual CUBE Cisco IOS XE 3.15S Virtual CUBE introduced for Cisco CSR 1000v
Series Cloud Services Router in VMware ESXi
environments.
Note • The CSR1000V and Catalyst 8000V product may be used in several different public and private cloud
environments. However, vCUBE is only supported when deployed on VMware ESXi and AWS platforms
currently.
• When you use a consolidated (.bin) image to upgrade a CSR 1000V medium configuration (2 vCPU, 4
GB RAM) to Catalyst 8000V, you must change the virtual machine vRAM allocation to at least 5 GB
to ensure advertised performance. Alternatively and when deploying in AWS environments, boot the
router using individual packages rather than a consolidated image without the need for additional memory.
Refer to Installing Subpackages from a Consolidated Package for details.
Software
• Obtain the relevant license for the router platform. See Virtual CUBE Licensing Requirements , on page
28 for more information.
• In AWS, only Bring Your Own License (BYOL) is supported for vCUBE. Pay as You Go (Subscription)
versions of the CSR 1000V and C8000V are not supported. Make sure you choose the vCUBE AWS
Marketplace product listing. Refer to Cisco Virtual CUBE-BYOL.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
26
CUBE Fundamentals and Basic Setup
Features Supported with Virtual CUBE
• For more information about Cisco virtual routers, see CSR 1000V Data Sheet and Catalyst 8000V Data
Sheet.
• H.323 Interworking
• IOS-based Hardware Media Termination Point (MTP)
Note CUBE high availability is not currently supported on vCUBE when deployed in AWS.
Restrictions
• Software MTP is not supported.
• CSR1000V used as MTP/TRP for CUCM is not supported.
Note All caveats, restrictions, and limitations of Cisco ASR IOS-XE 3.15 and later releases are applicable to virtual
CUBE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
27
CUBE Fundamentals and Basic Setup
Virtual CUBE Licensing Requirements
L-CUBE Smart License APPX No TLS / SRTP support Session count * (signaling
options + bidirectional media
AX All vCUBE features bandwidth)
For detailed information about licensing, see Cisco CSR 1000v Software Configuration Guide.
L-CUBE Smart License Essentials or above All vCUBE features Session count * (signaling
options + bidirectional media
bandwidth)/2
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
28
CUBE Fundamentals and Basic Setup
How to Enable Virtual CUBE
DETAILED STEPS
Procedure
Step 2 Enable platform and throughput licenses and register to a Enables platform and throughput licenses and registers that
Cisco licensing server. virtual CUBE to a licensing server.
Step 3 Enable virtual CUBE using the steps in Enabling the CUBE Enables vCUBE on a device.
Application on a Device.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
29
CUBE Fundamentals and Basic Setup
Troubleshooting Virtual CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
30
CHAPTER 6
Dial-Peer Matching
CUBE allows VoIP-to-VoIP connection by routing calls from one VoIP dial peer to another. As VoIP dial
peers can be handled by either SIP or H.323, CUBE can be used to interconnect VoIP networks of different
signaling protocols. VoIP interworking is achieved by connecting an inbound dial peer with an outbound dial
peer.
Note All CUBE Enterprise deployments must have signaling and media bind statements specified at the dial-peer
or voice class tenant level. For voice call tenants, you must apply tenants to dial-peers used for CUBE call
flows if these dial-peers do not have bind statements specified.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
31
CUBE Fundamentals and Basic Setup
Dial Peers in CUBE
A LAN dial peer is used to send or receive calls between CUBE and the Private Branch Exchange (PBX)—a
system of telephone extensions within an enterprise. Given below are examples of inbound and outbound
LAN dial peers.
Figure 8: LAN Dial Peers
A WAN dial peer is used to send or receive calls between CUBE and the SIP trunk provider. Given below
are examples of inbound and outbound WAN dial peers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
32
CUBE Fundamentals and Basic Setup
Configuring Inbound and Outbound Dial-Peer Matching for CUBE
answer-address ANI-string This command uses the calling number to match the ANI string
incoming call leg to an inbound dial peer. This number is
called the originating calling number or automatic number
identification (ANI) string.
destination-pattern This command uses the inbound call leg to the inbound ANI string for
ANI-string dial peer. inbound
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
33
CUBE Fundamentals and Basic Setup
Preference for Dial-Peer Matching
voice class uri This command uses the directory URI (Uniform Resource Directory URI
URI-class-identifier with Identifier) number of an incoming INVITE from a SIP
incoming uri {from | request entity to match an inbound dial peer. This directory URI
| to | via} URI-class-identifier is part of the SIP address of a device.
The command calls a globally defined voice class identifier
where the directory URI is configured. It requires the
configuration of session protocol sipv2
incoming uri {called | This command uses the directory URI (Uniform Resource Directory URI
callling} URI-class-identifier Identifier) number to match the outgoing H.323 call leg to
an outgoing dial peer.
The command calls a globally defined voice class identifier
where the directory URI is configured.
destination This command uses the directory URI (Uniform Resource Directory URI
URI-class-identifier Identifier) number to match the outgoing call leg to an
outgoing dial peer. This directory URI is part of the SIP
address of a device.
The command actually refers to a globally defined voice
class identifier where the directory URI is configured.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
34
CUBE Fundamentals and Basic Setup
Preference for Dial-Peer Matching
The following is the order in which inbound dial-peer is matched for H.323 call-legs:
• incoming uri {called} URI-class-identifier
• incoming uri {callling} URI-class-identifier
• incoming called-number DNIS-string
• answer-address ANI-string
The following is the order in which outbound dial-peer is matched for SIP call-legs:
• destination route-string
• destination URI-class-identifier with target carrier-id string
• destination-pattern with target carrier-id string
• destination URI-class-identifier
• destination-pattern
• target carrier-id string
Note If CUBE with Cisco Unified Communications Manager Express (CUCME) is configured with the same DNs,
then the ANI is given the preference. The system dial-peer for the DN is selected over the other dial-peers
created.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
35
CUBE Fundamentals and Basic Setup
Preference for Dial-Peer Matching
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
36
CHAPTER 7
DTMF Relay
The DTMF Relay feature allows CUBE to send dual-tone multi-frequency (DTMF) digits over IP.
This chapter talks about DTMF tones, DTMF relay mechanisms, how to configure DTMF relays, and
interoperability and priority with multiple relay methods.
• Feature Information for DTMF Relay , on page 37
• Information About DTMF Relay , on page 38
• Verifying DTMF Relay , on page 46
DTMF Relay Cisco IOS Release 12.1(2)T The DTMF relay feature allows CUBE to send
DTMF digits over IP.
Cisco IOS XE 2.1
The dtmf-relay command was added.
Support for sip-info to rtp-nte Cisco IOS XE Everest 16.6.1 This feature adds support for sip-info to
DTMF relay mechanism for rtp-nte DTMF relay mechanism for SIP-SIP
SIP-SIP calls calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
37
CUBE Fundamentals and Basic Setup
Information About DTMF Relay
Note DTMF tones that are sent by phones do not traverse the CUBE.
DTMF Relay
Dual-tone multifrequency (DTMF) relay is the mechanism for sending DTMF digits over IP. The VoIP dial
peer can pass the DTMF digits either in the band or out of band.
In-band DTMF-Relay passes the DTMF digits using the RTP media stream. It uses a special payload type
identifier in the RTP header to distinguish DTMF digits from actual voice communication. This method is
more likely to work on lossless codecs, such as G.711.
Note The main advantage of DTMF relay is that in-band DTMF relay sends low-bandwidth codecs such as the
G.729 and G.723 with greater fidelity. Without the use of DTMF relay, calls established with low-bandwidth
codecs has trouble accessing automated DTMF-based systems. For example, voicemail, menu-based Automatic
Call Distributor (ACD) systems, and automated banking systems.
Out-of-band DTMF-Relay passes DTMF digits using a signaling protocol (SIP or H.323) instead of using the
RTP media stream.
The VoIP compressed code causes the loss of integrity of the DTMF digits. However, the DTMF relay prevents
the loss of integrity of DTMF digits. The relayed DTMF regenerates transparently on the peer side.
Figure 10: DTMF Relay Mechanism
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
38
CUBE Fundamentals and Basic Setup
DTMF Relay
The following lists the DTMF relay mechanisms that support the VoIP dial-peers based on the configured
keywords. The DTMF relay mechanism can be either out-of-band (H.323 or SIP) or in-band (RTP).
• h245-alphanumeric and h245-signal—These two methods are available only on H.323 dial peers. It
is an out-of-band DTMF relay mechanism that transports the DTMF signals using H.245, which is the
media control protocol of the H.323 protocol suite.
The H245-signal method carries more information about the DTMF event (such as its actual duration)
than the H245-Alphanumeric method. It addresses a potential problem with the alphanumeric method
when interworking with other vendors’ systems.
• sip-notify—This method is available on the SIP dial peers only. It is a Cisco proprietary out-of-band
DTMF relay mechanism that transports DTMF signals using SIP-Notify message. The SIP Call-Info
header indicates the use of the SIP-Notify DTMF relay mechanism. Acknowledging the message with
a 18x or 200 response message containing a similar SIP Call-Info header.
The Call-Info header for a NOTIFY-based out-of-band relay is as follows:
Call-Info: <sip: address>; method="NOTIFY;Event=telephone-event;Duration=msec"
• sip-info—The sip-info method is available only on SIP dial peers. It is an out-of-band DTMF relay
mechanism that registers the DTMF signals using SIP-Info messages. The body of the SIP message
consists of signaling information and uses the Content-Type application/dtmf-relay.
The method enables for SIP dial peers, and invokes on receiving a SIP INFO message with DTMF relay
content.
The gateway receives the following sample SIP INFO message with specifics about the DTMF tone.
The combination of the From, To, and Call-ID headers identifies the call leg. The signal and duration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
39
CUBE Fundamentals and Basic Setup
DTMF Relay
headers specify the digit, in this case 1, and duration, 160 milliseconds in the example, for DTMF tone
play.
INFO sip:2143302100@[Link] SIP/2.0
Via: SIP/2.0/UDP [Link]:5060
From: <sip:9724401003@[Link]>;tag=43
To: <sip:2143302100@[Link]>;tag=9753.0207
Call-ID: 984072_15401962@[Link]
CSeq: 25634 INFO
Supported: 100rel
Supported: timer
Content-Length: 26
Content-Type: application/dtmf-relay
Signal= 1
Duration= 160
• rtp-nte—Real-Time Transport Protocol (RTP) Named Telephone Events (NTE). The RFC2833 defines
the in-band DTMF relay mechanism. RFC2833 defines the formats of NTE-RTP packets to transport
DTMF digits, hookflash, and other telephony events between two peer endpoints. Using the RTP stream,
sends the DTMF tones as packet data after establishing call media. It is differentiated from the audio by
the RTP payload type field, preventing compression of DTMF-based RTP packets. For example, sending
the audio of a call on a session with an RTP payload type identifies it as G.711 data. Similarly sending
the DTMF packets with an RTP payload type identifies them as NTEs. The consumer of the stream
utilizes the G.711 packets and the NTE packets separately.
The SIP NTE DTMF relay feature provides a reliable digit relay between Cisco VoIP gateways on using
a low-bandwidth codec.
Note By default, Cisco device uses Payload type 96 and 97 for fax. A third-party device
may use Payload type 96 and 97 for DTMF. In such scenarios, we recommend
you to perform one of the following:
• Change the Payload type for fax in both incoming and outgoing dial-peers
using rtp payload-type command
• Use assymetric payload dtmf command
Payload types and attributes of this method negotiate between the two ends at call setup. They use the
Session Description Protocol (SDP) within the body section of the SIP message.
Note This method is not similar to the “Voice in-band audio/G711” transport. The
latter is just the audible tones being passed as normal audio without any relay
signaling method being “aware” or involved in the process. It is plain audio
passing through end-to-end using the G711Ulaw/Alaw codec.
• cisco-rtp—It is an in-band DTMF relay mechanism that is Cisco proprietary, where the DTMF digits
are encoded differently from the audio and are identified as Payload type 121. The DTMF digits are part
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
40
CUBE Fundamentals and Basic Setup
Configuring DTMF Relays
of the RTP data stream and distinguished from the audio by the RTP payload type field. Cisco Unified
Communications Manager does not support this method.
Note The cisco-rtp operates only between two Cisco 2600 series or Cisco 3600 series
devices. Otherwise, the DTMF relay feature does not function, and the gateway
sends DTMF tones in-band.
• G711 audio—It is an in-band DTMF relay mechanism that is enabled by default and requires no
configuration. Digits are transmitted within the audio of the phone conversation, that is, it is audible to
the conversation partners; therefore, only uncompressed codecs like g711 Alaw or mu-law can carry
in-band DTMF reliably. Female voices sometimes trigger the recognition of a DTMF tone.
The DTMF digits pass like the rest of your voice as normal audio tones with no special coding or markers.
It uses the same codec as your voice, generated by your phone.
Configure multiple DTMF methods on CUBE simultaneously in order to minimize MTP requirements. If you
configure more than one out-of-band DTMF method, preference goes from highest to lowest in the order of
configuration. If an endpoint does not support any of the configured DTMF relay mechanisms on CUBE, an
MTP or transcoder is required.
The following table lists the supported DTMF relay types on a SIP and H.322 gateway.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
41
CUBE Fundamentals and Basic Setup
Interoperability and Priority with Multiple DTMF Relay Methods
• If you configure rtp-nte, sip-notify, and sip-kpml, the outgoing INVITE contains a SIP Call-Info header,
an Allow-Events header with KPML, and an SDP with rtp-nte payload.
• If you configure more than one out-of-band DTMF method, preference goes from highest to lowest in
the order of configuration.
• CUBE selects DTMF relay mechanisms using the following priority:
• sip-notify or sip-kpml (highest priority)
• rtp-nte
• None—Send DTMF in-band
H.323 gateways select DTMF relay mechanisms using the following priority:
• cisco-rtp
• h245-signal
• h245-alphanumeric
• rtp-nte
• None—Send DTMF in-band
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
42
CUBE Fundamentals and Basic Setup
DTMF Interoperability Table
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
sip-info Supported
3
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
43
CUBE Fundamentals and Basic Setup
DTMF Interoperability Table
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
sip-info
In-band Voice Supported Supported
in-band
(G.711)
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
sip-kpml Supported
sip-notify Supported
sip-info
In-band Voice Supported* Supported* Supported
in-band
(G.711)
* Media resource is required (Transcoder) for Cisco IOS and IOS XE versions. CUBE falls back to flow-through
mode if the media resource is unavailable.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
44
CUBE Fundamentals and Basic Setup
DTMF Interoperability Table
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
sip-info
In-band Voice Supported Supported
in-band
(G.711)
Inbound DTMF h245- h245- Rtp-nte Rtp-nte Sip-kpml Sip- Sip-info Voice
dial-peer Relay Type alphanumeric signal notify in-band
protocol (G.711)
H.323 h245-alpha
numeric
h245-signal
rtp-nte
SIP rtp-nte Supported Supported Supported Supported
sip-info
In-band Voice Supported Supported
in-band
(G.711)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
45
CUBE Fundamentals and Basic Setup
Verifying DTMF Relay
Note For calls sent from an in-band (RTP-NTE) to an out-of band method, configure the dtmf-relay rtp-nte
digit-drop command on the inbound dial-peer and the desired out-of-band method on the outgoing dial-peer.
Otherwise, send the same digit in OOB and in-band, and gets interpreted as duplicate digits by the receiving
end. On configuring the digit-drop option on the inbound leg, CUBE suppresses NTE packets and configures
only relay digits using the OOB method on the outbound leg.
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
46
CUBE Fundamentals and Basic Setup
Verifying DTMF Relay
Total SIP call legs:2, User Agent Client:1, User Agent Server:1
SIP UAC CALL INFO
Call 1
SIP Call ID : 9598A547-5C1311E2-8008F709-2470C996@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : sipp
Called Number : 3269011111
CC Call ID : 2
No. Timestamp Digit Duration
=======================================================
0 01/12/2013 17:23:25.615 2 250
1 01/12/2013 17:23:25.967 5 300
2 01/12/2013 17:23:26.367 6 300
Call 2
SIP Call ID : 1-29452@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : sipp
Called Number : 3269011111
CC Call ID : 1
No. Timestamp Digit Duration
=======================================================
0 01/12/2013 17:23:25.615 2 250
1 01/12/2013 17:23:25.967 5 300
2 01/12/2013 17:23:26.367 6 300
Call 2
SIP Call ID : 9598A547-5C1311E2-8008F709-2470C996@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : sipp
Called Number : 3269011111
CC Call ID : 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
47
CUBE Fundamentals and Basic Setup
Verifying DTMF Relay
Total SIP call legs:2, User Agent Client:1, User Agent Server:1
SIP UAC CALL INFO
Call 1
SIP Call ID : D0498774-F01311E3-82A0DE9F-78C438FF@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 257
No. Timestamp Digit Duration
=======================================================
Call 2
SIP Call ID : 22BC36A5-F01411E3-81808A6A-5FE95113@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 256
No. Timestamp Digit Duration
=======================================================
Call 2
SIP Call ID : D0498774-F01311E3-82A0DE9F-78C438FF@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 257
No. Timestamp Digit Duration
=======================================================
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
48
CUBE Fundamentals and Basic Setup
Verifying DTMF Relay
Total SIP call legs:2, User Agent Client:1, User Agent Server:1
SIP UAC CALL INFO
Call 1
SIP Call ID : 29BB98C-F01311E3-8297DE9F-78C438FF@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 252
No. Timestamp Digit Duration
=======================================================
Call 2
SIP Call ID : 550E973B-F01311E3-817A8A6A-5FE95113@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 251
No. Timestamp Digit Duration
=======================================================
Call 2
SIP Call ID : 29BB98C-F01311E3-8297DE9F-78C438FF@[Link]
State of the call : STATE_ACTIVE (7)
Calling Number : 2017
Called Number : 1011
CC Call ID : 252
No. Timestamp Digit Duration
=======================================================
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
49
CUBE Fundamentals and Basic Setup
Verifying DTMF Relay
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
50
CHAPTER 8
Introduction to Codecs
A codec is a device or software capable of encoding or decoding a digital data stream or signal. Audio codecs
can code or decode a digital data stream of audio. Video codecs enable compression or decompression of
digital video.
CUBE uses codecs to compress digital voice samples to reduce bandwidth usage per call. This chapter describes
the basics of encoding digital voice samples using codecs and how to configure them.
• Why CUBE Needs Codecs, on page 51
• Voice Media Transmission, on page 52
• Voice Activity Detection, on page 53
• VoIP Bandwidth Requirements, on page 54
• Supported Audio and Video Codecs, on page 56
• How to Configure Codecs, on page 57
• Configuration Examples for Codecs, on page 63
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
51
CUBE Fundamentals and Basic Setup
Restrictions for Voice-Class Codec Transparent
In the first example, the CUBE router is configured to use the G.729a codec. This can be done by using the
appropriate codec command on both VoIP dial peers. When a call is set up, CUBE will accept only G.729a
calls, thus influencing the codec negotiation.
In the second example, the CUBE dial peers are configured with a transparent codec and this leaves the codec
information contained within the call signaling untouched. Because both VoIP 1 and VoIP 2 have G.711 a-law
as their first choice, the resulting call will be a G.711 a-law call.
Note You can use 'pass-thru content sdp', if you do not want to involve CUBE in the
codec negotiation.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
52
CUBE Fundamentals and Basic Setup
Voice Activity Detection
• Real-Time Control Protocol (RTcP)—RTcP is a companion protocol to RTP. Both RTP and RTcP operate
at Layer 4 and are encapsulated in UDP. RTP and RTCP typically use UDP ports 16384 to 32767, though
these ranges may vary according to hardware platform. However, RTP uses the even port numbers in
that range, whereas RTcP uses the odd port numbers. While RTP is responsible for carrying the voice
stream, RTcP carries information about the RTP stream such as latency, jitter, packets, and octets sent
and received.
• Compressed RTP (cRTP)—One of the challenges with RTP is its overhead. Specifically, the combined
IP, UDP, and RTP headers are approximately 40 bytes in size, whereas a common voice payload size
on a VoIP network is only 20 bytes, which includes 20 ms of voice by default. In that case, the header
is twice the size of the payload. cRTP is used for RTP header compression and can reduce the 40-byte
header to 2 or 4 bytes in size (depending on whether UDP checksums are in use), as shown in the figure
below.
Figure 12: Compressed RTP
• Secure RTP (sRTP)—To help prevent an attacker from intercepting and decoding or possibly manipulating
voice packets, sRTP supports encryption of RTP packets. In addition, sRTP provides message
authentication, integrity checking, and protection against replay attacks.
VPN technology like IP Security (IPSec) may be used to protect traffic between sites. Encrypting sRTP
traffic at the source of transmission results in encrypting already encrypted traffic, adding significant
overhead and bandwidth needs. So it is recommended that sRTP is used for voice traffic, and that this
traffic is excluded from IPSec encapsulation. sRTP uses lesser bandwidth, has the same level of security,
and can be used by devices at any location because the payload is originated and terminated at the voice
endpoint. Because endpoints can be mobile, the security follows the phone.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
53
CUBE Fundamentals and Basic Setup
VoIP Bandwidth Requirements
G.729 Annex-B and G.723.1 Annex-A include an integrated VAD function, but otherwise performs the same
as G.729 and G.723.1, respectively.
The table below gives calculations for the default voice payload sizes in Cisco CallManager or CUBE. For
additional calculations, including different voice payload sizes and other protocols, use the TAC Voice
Bandwidth Codec Calculator (registered customers only). For an explanation of each of the column headings,
see the table below.
Codec & Bit Codec Codec Mean Voice Voice Payload Bandwidth Bandwidth Bandwidth
Rate (kbps) Sample Sample Opinion Payload Payload Size (ms) MP or w/cRTP Ethernet
Size Interval Score Size Size Packets FRF.12 MP or (kbps)
(Bytes) (ms) (MOS) (Bytes) (ms) Per Second (kbps) FRF.12
(PPS) (kbps)
G.711 (64 kbps) 80 10 4.1 160 20 50 82.8 67.6 87.2
G.729 (8 kbps) 10 10 3.92 20 20 50 26.8 11.6 31.2
G.723.1 (6.3 24 30 3.9 24 30 33.3 18.9 8.8 21.9
kbps)
G.723.1 (5.3 20 30 3.8 20 30 33.3 17.9 7.7 20.8
kbps)
G.726 (32 kbps) 20 5 3.85 80 20 50 50.8 35.6 55.2
G.726 (24 kbps) 15 5 60 20 50 42.8 27.6 47.2
G.728 (16 kbps) 10 5 3.61 60 30 33.3 28.5 18.4 31.5
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
54
CUBE Fundamentals and Basic Setup
VoIP Bandwidth Requirements
Codec & Bit Codec Codec Mean Voice Voice Payload Bandwidth Bandwidth Bandwidth
Rate (kbps) Sample Sample Opinion Payload Payload Size (ms) MP or w/cRTP Ethernet
Size Interval Score Size Size Packets FRF.12 MP or (kbps)
(Bytes) (ms) (MOS) (Bytes) (ms) Per Second (kbps) FRF.12
(PPS) (kbps)
G722_64k(64 80 10 4.13 160 20 50 82.8 67.6 87.2
kbps)
ilbc_mode_20(15.2 38 20 NA 38 20 50 34.0 18.8 38.4
kbps)
ilbc_mode_30(13.33 50 30 NA 50 30 33.3 25.867 15.73 28.8
kbps)
Codec Bit Rate (kbps) Based on the codec, this is the number of bits per
second that need to be transmitted to deliver a voice
call. (codec bit rate = codec sample size / codec
sample interval).
Codec Sample Size (Bytes) Size (Bytes) Based on the codec, this is the number
of bytes captured by the digital signal processor (DSP)
at each codec sample interval. For example, the G.729
coder operates on sample intervals of 10 ms,
corresponding to 10 bytes (80 bits) per sample at a
bit rate of 8 kbps. (codec bit rate = codec sample size
/ codec sample interval).
Codec Sample Interval (ms) This is the sample interval at which the codec
operates. For example, the G.729 coder operates on
sample intervals of 10 ms, corresponding to 10 bytes
(80 bits) per sample at a bit rate of 8 kbps. (codec bit
rate = codec sample size / codec sample interval).
MOS MOS is a system of grading the voice quality of
telephone connections. With MOS, a wide range of
listeners judge the quality of a voice sample on a scale
of one (bad) to five (excellent). The scores are
averaged to provide the MOS for the codec.
Voice Payload Size (Bytes) The voice payload size represents the number of bytes
(or bits) that are filled into a packet. The voice payload
size must be a multiple of the codec sample size. For
example, G.729 packets can use 10, 20, 30, 40, 50, or
60 bytes of voice payload size.
Voice Payload Size (ms) Payload Size (ms) The voice payload size can also be
represented in terms of the codec samples. For
example, a G.729 voice payload size of 20 ms (two
10 ms codec samples) represents a voice payload of
20 bytes [ (20 bytes * 8) / (20 ms) = 8 kbps ]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
55
CUBE Fundamentals and Basic Setup
Supported Audio and Video Codecs
clear-channel Clear Channel 64000 bps (No voice capabilities: data transport
only)
g723ar53 G.723.1 ANNEX-A 5300 bps (contains built-in VAD that cannot
be disabled)
Not supported on PVDM3.
g723ar63 G.723.1 ANNEX-A 6300 bps (contains built-in VAD that cannot
be disabled)
Not supported on PVDM3.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
56
CUBE Fundamentals and Basic Setup
How to Configure Codecs
g729br8 G.729 ANNEX-B 8000 bps (contains built-in VAD that cannot
be disabled)
Codec Codec
Keyword
h261 Video Codec H261
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
57
CUBE Fundamentals and Basic Setup
Configuring Audio and Video Codecs at the Dial Peer Level
DETAILED STEPS
Procedure
Step 3 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Step 4 Enter one of the following to configure an audio codec: Configures an audio codec at the dial peer level.
• codec codec [bytes payload-size fixed-bytes ] • g729r8, 20-byte payload is configured by default.
• codec isac [mode {adaptive | independent} [bit-rate
value framesize { 30 | 60 } [fixed] ]
• codec ilbc [mode frame-size [bytes payload-size]]
• codec mp4-latm [profile tag]
• codec opus [profile tag]
Example:
For g711alaw Codec
Device(config-dial-peer)# codec g711alaw
Example:
For ISAC Codec
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
58
CUBE Fundamentals and Basic Setup
Configuring Audio Codecs Using a Codec Voice Class and Preference Lists
Step 5 Do the following to configure a video codec: Configures a video codec at the dial peer level.
• video codec codec
Example:
For Video Codec
Device(config-dial-peer)# video codec h261
Step 6 (Optional) Do one of the following to configure RTP Configures the RTP payload type.
payload type:
• rtp payload-type cisco-codec-isac number
• rtp payload-type cisco-codec-ilbc number
• rtp payload-type cisco-codec-video-h263+ number
• rtp payload-type cisco-codec-video-h264 number
• rtp payload-type opus number
Example:
Device(config-dial-peer)# rtp payload-type opus
114
Configuring Audio Codecs Using a Codec Voice Class and Preference Lists
Preferences can be used to determine which codecs will be selected over others.
A codec voice class is a construct within which a codec preference order can be defined. A codec voice class
can then be applied to a dial peer, which then follows the preference order defined in the codec voice class.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class codec tag
4. Do the following for each audio codec you want to configure in the voice class:
• codec preference value codec-type[profile profile-tag ]
• codec preference value codec-type[bytes payload-size fixed-bytes ]
• codec preference value isac [mode {adaptive | independent} [bit-rate value framesize { 30 | 60
} [fixed] ]
• codec preference value ilbc [mode frame-size [bytes payload-size]]
• codec preference value mp4-latm [profile tag]
5. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
59
CUBE Fundamentals and Basic Setup
Configuring Audio Codecs Using a Codec Voice Class and Preference Lists
DETAILED STEPS
Procedure
Step 3 voice class codec tag Enters voice-class configuration mode for the specified
codec voice class.
Example:
Device(config)# voice class codec 10
Step 4 Do the following for each audio codec you want to Configure a codec within the voice class and specifies a
configure in the voice class: preference for the codec. This becomes part of a preference
list
• codec preference value codec-type[profile profile-tag
]
• codec preference value codec-type[bytes payload-size
fixed-bytes ]
• codec preference value isac [mode {adaptive |
independent} [bit-rate value framesize { 30 | 60 }
[fixed] ]
• codec preference value ilbc [mode frame-size [bytes
payload-size]]
• codec preference value mp4-latm [profile tag]
Step 6 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Step 7 voice-class codec tag offer-all Applies the previously configured voice class and associated
codecs to a dial peer.
Example:
Device(config-dial-peer)# voice-class codec 10 • The offer-all keyword allows the device to offer all
codecs configured in a codec voice class.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
60
CUBE Fundamentals and Basic Setup
Configuring Video Codecs Using Codec Voice Class
DETAILED STEPS
Procedure
Step 3 voice class codec tag Enters voice-class configuration mode for the specified
codec voice class.
Example:
Device(config)# voice class codec 10
Step 4 video codec codec Configures a video codec within the voice class.
Example:
video codec h261
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
61
CUBE Fundamentals and Basic Setup
Verifying an Audio Call
Step 7 voice-class codec tag offer-all Applies the previously configured codec voice class and
associated codecs to a dial peer.
Example:
Device(config-dial-peer)# voice-class codec 10 • The offer-all keyword allows the device to offer all
codecs configured in the codec voice class.
DETAILED STEPS
Procedure
Example:
Device# show call active voice compact
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
62
CUBE Fundamentals and Basic Setup
Configuration Examples for Codecs
Example: Configuring a Codec Profile, Codec Preference List and Applying it to a Dial Peer for Opus
Codec
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
63
CUBE Fundamentals and Basic Setup
Configuration Examples for Codecs
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
64
CHAPTER 9
Call Admission Control
The call admission control feature enables you to control the audio quality and video quality of calls over a
wide-area (IP WAN) link by limiting the number of calls that are allowed on that link at the same time. Audio
and video quality can begin to degrade when too many active calls exist on a link and the amount of bandwidth
is oversubscribed. Call admission control regulates audio and video quality by limiting the number of calls
that can be active on a particular link at the same time.
The Call Admission Control feature controls number of calls based on resources and bandwidth, proactively
reserve resources for good quality video calls, ensures that traffic adheres to QoS policies within each network.
CUBE provides different CAC mechanisms that are based on:
• Total Calls, CPU, or Memory
• Call Spike Detection
• Maximum Calls per Destination
• Dial-peer or Interface Bandwidth
SUMMARY STEPS
1. enable
2. configure terminal
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
65
CUBE Fundamentals and Basic Setup
Configuring CAC Based on Total Calls, CPU or Memory
3. call threshold global [cpu-5sec | cpu-avg | io-mem | proc-mem | total-calls | total-mem] low
low-threshold high high-threshold
4. call treatment on
5. end
DETAILED STEPS
Procedure
Device>enable
Step 3 call threshold global [cpu-5sec | cpu-avg | io-mem | Configures the Call Admission Control feature based on
proc-mem | total-calls | total-mem] low low-threshold the total calls, cpu, and memory usage at the interface level
high high-threshold to reject SIP calls when the bandwidth that is required for
the calls exceed the aggregate bandwidth threshold.
Example:
Note
Device(config)# call threshold global total-calls By default, the system rejects incoming calls if the 5 second
low 1 high 1 CPU utilization on the gateway exceeds 95%, and if the
in-use process memory on the gateway exceeds 98%.
or
Device(config)# call threshold global cupu-avg low
75 high 85
or
Step 5 end Exits global configuration mode and enters privileged EXEC
mode.
Example:
Device(config)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
66
CUBE Fundamentals and Basic Setup
Example: Internal Error Code (IEC) for Default Call Rejection Based on CPU Utilization and Memory
Example: Internal Error Code (IEC) for Default Call Rejection Based on CPU
Utilization and Memory
Following is the sample Internal Error Code (IEC) that explains default call rejection based on CPU utilization
and memory:
%VOICE_IEC-3-GW: C SCRIPTS: Internal Error (Low memory): IEC=[Link].4.0 on callID
1GUID=00000000000000000000000000000000
%IVR-3-LOW_MEMORY_RESOURCE: IVR: System running low on memory (99/100 in use). Call (callID=1)
is rejected.
SUMMARY STEPS
1. enable
2. configure terminal
3. call spike threshold call number <1-2147483647>steps<3-10> size<100-250>
4. call treatment on
5. end
DETAILED STEPS
Procedure
Device>enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
67
CUBE Fundamentals and Basic Setup
Configuring CAC Based on Maximum Calls per Destination
Step 3 call spike threshold call number Configures the Call Spike Call Admission Control feature
<1-2147483647>steps<3-10> size<100-250> at the device level to reject SIP calls when the call spike is
detected as per the configuration (10 incoming call requests
Example:
per 300 milliseconds)
Device(config)# call spike 10 steps 3 size 100
Device(config)# call spike 12
Step 5 end Exits global configuration mode and enters privileged EXEC
mode.
Example:
Device(config)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. session protocol sipv2
5. max-conn
6. end
DETAILED STEPS
Procedure
Device>enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
68
CUBE Fundamentals and Basic Setup
Bandwidth-Based Call Admission Control
Step 3 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 4 session protocol sipv2 Configures SIP as the session protocol type.
Example:
Step 6 end Exits global configuration mode and enters privileged EXEC
mode.
Example:
Device# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
69
CUBE Fundamentals and Basic Setup
Restrictions for Bandwidth-Based Call Admission Control
Note The Bandwidth-Based Call Admission Control feature is applicable only to VoIP traffic.
Bandwidth Tables
This section provides the sample maximum bandwidth calculation for audio and fax calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
70
CUBE Fundamentals and Basic Setup
Bandwidth Tables
Codec and Codec Sample Voice Payload Voice Packets Per Bandwidth Bandwidth
Bit Rate Size in Bytes Size in Bytes Payload Size Second for IPv4 for IPv6
(Kbps) in (excluding (excluding
Milliseconds Layer 2) in Layer 2) in
Kbps Kbps
G.729 (8 10 20 20 50 24 32
Kbps)
G.723.1 24 24 30 33.3 17 22
(6.3 Kbps)
G.723.1 20 20 30 33.3 16 21
(5.3 Kbps)
G.726 (32 20 80 20 50 48 56
Kbps)
G.726 (24 15 60 20 50 40 48
Kbps)
G.726 (16 10 40 20 50 32 40
Kbps)
G.728 (16 10 40 20 50 32 40
Kbps)
G722_64k 80 160 20 50 80 88
(64 Kbps)
ilbc_mode_20 38 38 20 50 31 39
(15.2 Kbps)
ilbc_mode_30 50 50 30 33.3 24 29
(13.33
Kbps)
gsm (13 33 33 20 50 30 37
Kbps)
gsm (12 32 32 20 50 29 37
Kbps)
GSM AMR — — — — 15 15
ISAC (32 — — — — 37 37
Kbps)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
71
CUBE Fundamentals and Basic Setup
How to Configure Bandwidth-Based Call Admission Control
2400 None 8
2400 Redundancy 17
14400 None 20
14400 Redundancy 65
33600 None 40
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
72
CUBE Fundamentals and Basic Setup
Configuring Bandwidth-Based Call Admission Control at the Interface Level
Note Cisco recommends that you configure a bind media to associate a specific interface for SIP calls. Otherwise,
the interface used for the calls will be determined based on the best local address that can access the remote
media source address (for early offer calls) or the remote signaling source address (for delayed offer calls).
When you use a Loopback interface to configure CAC, you must configure an additional bind-to-bind media
with the Loopback interface at the global level or the dial peer level. Configure the bind media source-interface
loopback number command in service SIP configuration mode to configure a bind media.
SUMMARY STEPS
1. enable
2. configure terminal
3. call threshold interface type number int-bandwidth {class-map name [l2-overhead percentage] | low
low-threshold high high-threshold} [midcall-exceed]
4. end
DETAILED STEPS
Procedure
Device> enable
Step 3 call threshold interface type number int-bandwidth Configures the Bandwidth-Based Call Admission Control
{class-map name [l2-overhead percentage] | low feature at the interface level to reject SIP calls when the
low-threshold high high-threshold} [midcall-exceed] bandwidth required for the calls exceed the aggregate
bandwidth threshold.
Example:
• You can configure the call threshold interface type
Device(config)# call threshold interface number low low-threshold high high-threshold
GigabitEthernet 0/0 int-bandwidth low 1000 high [midcall-exceed] command to apply call admission
20000 midcall-exceed
control to reject SIP calls once the accounted
or bandwidth reaches the high-threshold value and
continues to be above the low-threshold value.
Device(config)# call threshold interface
GigabitEthernet 0/0 int-bandwidth class-map • You can configure the call threshold interface type
voip-traffic l2-overhead 20 midcall-exceed number int-bandwidth class-map name [l2-overhead
percentage] [midcall-exceed] command to use the
bandwidth value provisioned in the QoS policy under
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
73
CUBE Fundamentals and Basic Setup
Configuring Bandwidth-Based Call Admission Control at the Dial Peer Level
Step 4 end Exits global configuration mode and enters privileged EXEC
mode.
Example:
Device(config)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. session protocol sipv2
5. max-bandwidth bandwidth-value [midcall-exceed]
6. end
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
74
CUBE Fundamentals and Basic Setup
Configuring the Bandwidth-Based Call Admission Control SIP Error Response Code Mapping
Step 4 session protocol sipv2 Configures the Bandwidth-Based Call Admission Control
feature for SIP dial peers only.
Example:
Step 5 max-bandwidth bandwidth-value [midcall-exceed] Configures the Bandwidth-Based Call Admission Control
feature at the dial peer level to reject SIP calls when the
Example:
bandwidth required for the calls exceed the aggregate
bandwidth threshold.
Device(config-dial-peer)# max-bandwidth 24
midcall-exceed • Configuring the midcall-exceed keyword allows
exceeding the bandwidth threshold during mid-call
media renegotiation. Media renegotiation exceeding
the bandwidth threshold is rejected by default.
Step 6 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
Configuring the Bandwidth-Based Call Admission Control SIP Error Response Code Mapping
Mapping of the call rejection cause code to a specific SIP error response code is known as error response code
mapping. The cause code for the call rejected because of the bandwidth-based CAC can be mapped to a SIP
error response code between 400 to 600. The default SIP error response code is 488.
You can configure SIP error response codes for calls rejected by the Bandwidth-Based Call Admission Control
feature at the global level, dial peer level, or both.
Configuring Bandwidth-Based Call Admission Control SIP Error Response Code Mapping at the Global Level
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. error-code-override cac-bandwidth failure sip-status-code-number
6. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
75
CUBE Fundamentals and Basic Setup
Configuring Bandwidth-Based Call Admission Control SIP Error Response Code Mapping at the Dial Peer Level
DETAILED STEPS
Procedure
Device> enable
Device(conf-voi-serv)# sip
Step 5 error-code-override cac-bandwidth failure Configures bandwidth-based CAC SIP error response code
sip-status-code-number mapping at the global level.
Example:
Device(conf-serv-sip)# error-code-override
cac-bandwidth failure 500
Step 6 end Exits service SIP configuration mode and enters privileged
EXEC mode.
Example:
Device(conf-serv-sip)# end
Configuring Bandwidth-Based Call Admission Control SIP Error Response Code Mapping at the Dial Peer Level
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag {pots | voatm | vofr | voip}
4. voice-class sip error-code-override cac-bandwidth failure {sip-status-code-number | system}
5. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
76
CUBE Fundamentals and Basic Setup
Verifying Bandwidth-Based Call Admission Control
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag {pots | voatm | vofr | voip} Enters dial peer voice configuration mode.
Example:
Step 4 voice-class sip error-code-override cac-bandwidth failure Configures bandwidth-based CAC SIP error response code
{sip-status-code-number | system} mapping at the dial peer level.
Example:
Step 5 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
SUMMARY STEPS
1. enable
2. show call threshold config
3. show call threshold status
4. show call threshold stats
5. show dial-peer voice
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
77
CUBE Fundamentals and Basic Setup
Verifying Bandwidth-Based Call Admission Control
DETAILED STEPS
Procedure
Step 1 enable
Example:
Device>enable
Displays the current call threshold configuration at the interface level for all resources.
Displays the availability status of resources that are configured when the Bandwidth-Based Call Admission Control
feature is enabled at an interface level.
1: ------------------------
Failed resources: int-bandwidth,
related interface: GigabitEthernet0/0; related option:N/A
Recorded time: 04:49:39 UTC Wed Dec 8 2010
2: ------------------------
Successful
All resources are available for this check.
Recorded time: 04:29:39 UTC Wed Dec 8 2010
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
78
CUBE Fundamentals and Basic Setup
Troubleshooting Tips
Displays the statistics of resources that are configured when the Bandwidth-Based Call Admission Control feature is
enabled at an interface level.
Troubleshooting Tips
The following commands can help troubleshoot the Bandwidth-Based Call Admission Control feature:
• debug ccsip all
• debug voice ccapi all
Device> enable
Device# configure terminal
Device(config)# call threshold interface GigabitEthernet 0/0 int-bandwidth low 100 high
400
The following example shows how to configure Cisco UBE to reject new SIP calls if the VoIP media
bandwidth on Gigabit Ethernet interface 0/0 exceeds the configured bandwidth for priority traffic in
the “voip_traffic” class:
Device>enable
Device# configure terminal
Device(config)# class-map match-all voip-traffic
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
79
CUBE Fundamentals and Basic Setup
Example: Configuring Bandwidth-Based Call Admission Control at the Dial Peer Level
Note Layer 2 overhead of 10 percent in the call threshold command indicates that the IP bandwidth,
excluding Layer 2, is 90 percent of the configured priority bandwidth.
Example: Configuring Bandwidth-Based Call Admission Control at the Dial Peer Level
The following example shows how to configure Cisco UBE to reject calls once the accounted aggregate
bandwidth of active calls exceeds 400 Kbps for a SIP dial peer:
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 2000 voip
Device(config)# session protocol sipv2
Device(config-dial-peer)# max-bandwidth 400
Example: Configuring the Bandwidth-Based Call Admission Control SIP Error Response Code
Mapping at the Global Level
The following example shows how to configure Cisco UBE for bandwidth-based CAC SIP error
response code mapping at the global level:
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# error-code-override cac-bandwidth 500
Example: Configuring the Bandwidth-Based Call Admission Control SIP Error Response Code
Mapping at the Dial Peer Level
The following example shows how to configure Cisco UBE for bandwidth-based CAC SIP error
response code mapping at the dial peer level:
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 88 voip
Device(config-dial-peer)# voice-class sip error-code-override cac-bandwidth failure 500
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
80
CUBE Fundamentals and Basic Setup
Feature Information for Bandwidth-Based Call Admission Control
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Bandwidth-Based Call Admission Cisco IOS XE Release 3.7S The Bandwidth-Based Call
Control Admission Control feature provides
the functionality to reject SIP calls
when the bandwidth accounted by
the SIP signaling layer exceeds the
aggregate bandwidth threshold for
VoIP media traffic—voice, video,
and fax. This functionality helps
prevent QoS degradation of VoIP
media traffic for existing calls when
the bandwidth allocated for VoIP
traffic is fully utilized.
The following commands were
introduced or modified:
call threshold interface,
error-code-override,
max-bandwidth, show call
threshold, voice-class sip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
81
CUBE Fundamentals and Basic Setup
Feature Information for Bandwidth-Based Call Admission Control
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
82
CHAPTER 10
Basic SIP Configuration
This chapter provides basic configuration information for the following features:
• SIP Register Support
• SIP Redirect Processing Enhancement
• SIP 300 Multiple Choice Messages
• SIP implementation enhancements:
• Interaction with Forking Proxies
• SIP Intra-Gateway Hairpinning
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
83
CUBE Fundamentals and Basic Setup
Information About Basic SIP Configuration
Note There are no commands that allow registration between the H.323 and SIP protocols.
Redirect handling can be disabled by using the no redirection command in SIP user-agent configuration
mode. In this case, the user agent treats incoming 3xx responses as 4xx error class responses. The call is not
redirected, and is instead released with the appropriate PSTN cause-code message. The table below shows
the mapping of 3xx responses to 4xx responses.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
84
CUBE Fundamentals and Basic Setup
Sending SIP 300 Multiple Choice Messages
SIP Redirect Processing generates call history information with appropriate release cause codes that maybe
used for accounting or statistics purposes. When a 3xx response is mapped to 4xx class of response, the cause
code stored in call history is based on the mapped 4xx response code.
Call redirection must be enabled on the gateway for SIP call transfer involving redirect servers to be successful.
The Cisco IOS voice gateway can also use call redirection if an incoming VoIP call matches an outbound
VoIP dial peer. The gateway sends a 300 or 302 Redirect message to the call originator, allowing the originator
to reestablish the call. Two commands allow you to enable the redirect functionality, globally or on a specific
inbound dial peer: redirect ip2ip (dial-peer)and redirect ip2ip (voice service).
Note For help with a procedure, see the verification and troubleshooting sections listed above.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
85
CUBE Fundamentals and Basic Setup
Configuring SIP VoIP Services on a Cisco Gateway
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. [no] shutdown [forced]
5. exit
DETAILED STEPS
Procedure
Step 4 [no] shutdown [forced] Shuts down or enables VoIP call services.
Example:
Router(config-voi-serv)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
86
CUBE Fundamentals and Basic Setup
Shut Down or Enable VoIP Submodes on Cisco Gateways
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. [no] call service stop [forced] [maintain-registration]
6. exit
DETAILED STEPS
Procedure
Router(config-voi-serv)# sip
Step 5 [no] call service stop [forced] [maintain-registration] Shuts down or enables VoIP call services for the selected
submode.
Example:
Router(conf-serv-sip)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
87
CUBE Fundamentals and Basic Setup
Configuring SIP Register Support
DETAILED STEPS
Procedure
Router(config)# sip-ua
Step 4 registrar {dns: address | ipv4: destination-address} Registers E.164 numbers on behalf of analog telephone
expires seconds [tcp] [secondary] voice ports (FXS) and IP phone virtual voice ports (EFXS)
with an external SIP proxy or SIP registrar server. Keywords
Example:
and arguments are as follows:
Router(config-sip-ua)# registrar ipv4:[Link] • dns: address --Domain-name server that resolves the
expires 3600 secondary name of the dial peer to receive calls.
• ipv4: destination-address --IP address of the dial peer
to receive calls.
• expires seconds --Default registration time, in
seconds.
• tcp --Sets transport layer protocol to TCP. UDP is the
default.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
88
CUBE Fundamentals and Basic Setup
Configuring SIP Redirect Processing Enhancement
Step 5 retry register number Use this command to set the total number of SIP Register
messages that the gateway should send. The argument is as
Example:
follows:
Router(config-sip-ua)# retry register 6 • number --Number of Register message retries. Range:
1 to 10. Default: 6.
Step 6 timers register milliseconds Use this command to set how long the SIP user agent waits
before sending register requests. The argument is as follows:
Example:
• milliseconds --Waiting time, in ms. Range: 100 to
Router(config-sip-ua)# timers register 500 1000. Default: 500.
Router(config-sip-ua)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. no redirection
5. redirection
6. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
89
CUBE Fundamentals and Basic Setup
Configuring Call Redirect to Support Calls Globally
DETAILED STEPS
Procedure
Router(config)# sip-ua
Router(config-sip-ua)# no redirection
Router(config-sip-ua)# exit
Note To enable global IP-to-IP call redirection for all VoIP dial peers, use voice-service configuration mode. The
default SIP application supports IP-to-IP redirection.
SUMMARY STEPS
1. enable
2. configure terminal
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
90
CUBE Fundamentals and Basic Setup
Configuring Call Redirect to Support Calls on a Specific VoIP Dial Peer
DETAILED STEPS
Procedure
Step 4 redirect ip2ip Redirect SIP phone calls to SIP phone calls globally on a
gateway using the Cisco IOS voice gateway.
Example:
Router(conf-voi-serv)# exit
Note To specify IP-to-IP call redirection for a specific VoIP dial peer, configure it on an inbound dial peer in
dial-peer configuration mode. The default application on SIP SRST supports IP-to-IP redirection.
• When IP-to-IP redirection is configured in dial-peer configuration mode, the configuration on the specific
inbound dial peer takes precedence over the global configuration entered under voice service configuration.
SUMMARY STEPS
1. enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
91
CUBE Fundamentals and Basic Setup
Configuring Call Redirect to Support Calls on a Specific VoIP Dial Peer
2. configure terminal
3. dial-peer voice tag voip
4. application application-name
5. redirect ip2ip
6. exit
DETAILED STEPS
Procedure
Step 3 dial-peer voice tag voip Use this command to enter dial-peer configuration mode.
The argument is as follows:
Example:
• tag --Digits that define a particular dial peer. Range:
Router(config)# dial-peer voice 29 voip 1to 2,147,483,647 (enter without commas).
Step 4 application application-name Enables a specific application on a dial peer. The argument
is as follows:
Example:
• application-name --Name of the predefined application
Router(config-dial-peer)# application session you wish to enable on the dial peer. For SIP, the default
Tcl application (from the Cisco IOS image) is session
and can be applied to both VoIP and POTS dial peers.
The application must support IP-to-IP redirection
Step 5 redirect ip2ip Redirects SIP phone calls to SIP phone calls on a specific
VoIP dial peer using the Cisco IOS voice gateway.
Example:
Router(conf-dial-peer)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
92
CUBE Fundamentals and Basic Setup
Configuring SIP 300 Multiple Choice Messages
Note If multiple routes to a destination exist for a redirected number (multiple dial peers are matched), the SIP
gateway sends a 300 Multiple Choice message and the multiple routes in the Contact header are listed. This
configuration allows users to choose the order in which the routes appear in the Contact header.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. redirect contact order [best-match | longest-match]
6. exit
DETAILED STEPS
Procedure
Router(config-voi-serv)# sip
Step 5 redirect contact order [best-match | longest-match] Sets the order of contacts in the 300 Multiple Choice
Message. Keywords are as follows:
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
93
CUBE Fundamentals and Basic Setup
Configuring SIP Implementation Enhancements
Router(conf-serv-sip)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
94
CUBE Fundamentals and Basic Setup
SIP Intra-Gateway Hairpinning
Similarly, SIP hairpinning can be a call signaled from a line (for example, a telephone line) to the IP network
and back out to a line on the same access gateway (see the figure below).
Figure 14: Telephone Line Hairpinning Example
With SIP hairpinning, unique gateways for ingress and egress are unnecessary.
SIP supports plain old telephone service (POTS)-to-POTS hairpinning (which means that the call comes in
one voice port and is routed out another voice port). It also supports POTS-to-IP call legs and IP-to-POTS
call legs. However, it does not support IP-to-IP hairpinning. This means that the SIP gateway cannot take an
inbound SIP call and reroute it back to another SIP device using the VoIP dial peers.
Only minimal configuration is required for this feature. To enable hairpinning on the SIP gateway, see the
following configuration example for dial peers. Note that:
• The POTS dial peer must have preference 2 defined, and the VoIP dial peer must have preference 1
defined. This ensures that the call is sent out over IP, not Plain Old Telephone Service (POTS).
• The session target is the same gateway because the call is being redirected to it.
!
dial-peer voice 53001 pots
preference 2
destination-pattern 5300001
prefix 5300001
!
dial-peer voice 53002 pots
preference 2
destination-pattern 5300002
prefix 5300002
!
dial-peer voice 530011 voip
preference 1
destination-pattern 5300001
session protocol sipv2
session target ipv4:[Link]
playout-delay maximum 300
codec g711alaw
!
dial-peer voice 530022 voip
preference 1
destination-pattern 5300002
session protocol sipv2
session target ipv4:[Link]
playout-delay maximum 300
codec g711alaw
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
95
CUBE Fundamentals and Basic Setup
Verifying SIP Gateway Status
SUMMARY STEPS
1. show sip service
2. show sip-ua register status
3. show sip-ua statistics
4. show sip-ua status
5. show sip-ua timers
DETAILED STEPS
Procedure
The following sample output shows that SIP call service was shut down with the shutdown command:
Example:
The following sample output shows that SIP call service was shut down with the call service stop command:
Example:
The following sample output shows that SIP call service was shut down with the shutdown forced command:
Example:
The following sample output shows that SIP call service was shut down with the call service stop forced command:
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
96
CUBE Fundamentals and Basic Setup
Verifying SIP Gateway Status
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
97
CUBE Fundamentals and Basic Setup
Verifying SIP Gateway Status
Global Failure:
BusyEverywhere 0/0, Decline 0/0,
NotExistAnywhere 0/0, NotAcceptable 0/0
Miscellaneous counters:
RedirectRspMappedToClientErr 0
SIP Total Traffic Statistics (Inbound/Outbound)
Invite 0/0, Ack 0/0, Bye 0/0,
Cancel 0/0, Options 0/0,
Prack 0/0, Comet 0/0,
Subscribe 0/0, NOTIFY 0/0,
Refer 0/0, Info 0/0
Register 49/16
Retry Statistics
Invite 0, Bye 0, Cancel 0, Response 0,
Prack 0, Comet 0, Reliable1xx 0, NOTIFY 0
Register 4
SDP application statistics:
Parses: 0, Builds 0
Invalid token order: 0, Invalid param: 0
Not SDP desc: 0, No resource: 0
Last time SIP Statistics were cleared: <never>
The following sample output shows the RedirectResponseMappedToClientError status message. An incremented number
indicates that 3xx responses are to be treated as 4xx responses. When call redirection is enabled (default), the
RedirectResponseMappedToClientError status message is not incremented.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
98
CUBE Fundamentals and Basic Setup
General Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
99
CUBE Fundamentals and Basic Setup
General Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
100
CUBE Fundamentals and Basic Setup
Configuration Examples for Basic SIP Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
101
CUBE Fundamentals and Basic Setup
SIP Register Support Example
!
memory-size iomem 15
ip subnet-zero
!
no ip domain lookup
!
voice service voip
redirect ip2ip
sip
redirect contact order best-match
ip dhcp pool vespa
network [Link] [Link]
option 150 ip [Link]
default-router [Link]
!
voice call carrier capacity active
!
voice class codec 1
codec preference 2 g711ulaw
!
no voice hpi capture buffer
no voice hpi capture destination
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
interface Ethernet0/0
ip address [Link] [Link]
half-duplex
!
interface FastEthernet0/0
ip address [Link] [Link]
speed auto
no cdp enable
h323-gateway voip interface
h323-gateway voip id vespa2 ipaddr [Link] 1718
!
router rip
network [Link]
network [Link]
!
ip default-gateway [Link]
ip classless
ip route [Link] [Link] [Link]
no ip http server
ip pim bidir-enable
!
tftp-server flash:[Link]
tftp-server flash:[Link]
call fallback active
!
call application global [Link]
call rsvp-sync
!
voice-port 1/0
!
voice-port 1/1
!
mgcp profile default
!
dial-peer voice 1 pots
destination-pattern 5100
port 1/0
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
102
CUBE Fundamentals and Basic Setup
SIP Redirect Processing Enhancement Examples
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
103
CUBE Fundamentals and Basic Setup
SIP Redirect Processing Enhancement Examples
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service internal
service udp-small-servers
!
interface FastEthernet2/0
ip address [Link] [Link]
duplex auto
no shut
speed 10
ip rsvp bandwidth 7500 7500
!
voice-port 1/1/1
no supervisory disconnect lcfo
!
dial-peer voice 1 pots
application session
destination-pattern 8183821111
port 1/1/1
!
dial-peer voice 3 voip
application session
destination-pattern 7173721111
session protocol sipv2
session target ipv4:[Link]
codec g711ulaw
!
dial-peer voice 4 voip
application session
destination-pattern 6163621111
session protocol sipv2
session target ipv4:[Link]
codec g711ulaw
!
gateway
!
sip-ua
no redirection
retry invite 1
retry bye 1
!
line con 0
line aux 0
line vty 0 4
login
!
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
104
CUBE Fundamentals and Basic Setup
SIP Redirect Processing Enhancement Examples
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service internal
service udp-small-servers
!
interface FastEthernet2/0
ip address [Link] [Link]
duplex auto
no shut
speed 10
ip rsvp bandwidth 7500 7500
!
voice-port 1/1/1
no supervisory disconnect lcfo
!
dial-peer voice 1 pots
application session
destination-pattern 8183821111
port 1/1/1
!
dial-peer voice 3 voip
application session
destination-pattern 7173721111
session protocol sipv2
session target ipv4:[Link]
codec g711ulaw
!
dial-peer voice 4 voip
application session
destination-pattern 6163621111
session protocol sipv2
session target ipv4:[Link]
codec g711ulaw
!
gateway
!
sip-ua
retry invite 1
retry bye 1
!
line con 0
line aux 0
line vty 0 4
login
!
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
105
CUBE Fundamentals and Basic Setup
SIP Redirect Processing Enhancement Examples
!
no ip domain lookup
!
voice service voip
redirect ip2ip
sip
redirect contact order best-match
ip dhcp pool vespa
network [Link] [Link]
option 150 ip [Link]
default-router [Link]
!
voice call carrier capacity active
!
voice class codec 1
codec preference 2 g711ulaw
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
interface Ethernet0/0
ip address [Link] [Link]
half-duplex
!
interface FastEthernet0/0
ip address [Link] [Link]
speed auto
no cdp enable
h323-gateway voip interface
h323-gateway voip id vespa2 ipaddr [Link] 1718
!
router rip
network [Link]
network [Link]
!
ip default-gateway [Link]
ip classless
ip route [Link] [Link] [Link]
no ip http server
ip pim bidir-enable
!
tftp-server flash:[Link]
tftp-server flash:[Link]
call fallback active
!
!
call application global [Link]
call rsvp-sync
!
voice-port 1/0
!
voice-port 1/1
!
mgcp profile default
!
dial-peer voice 1 pots
destination-pattern 5100
port 1/0
!
dial-peer voice 2 pots
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
106
CUBE Fundamentals and Basic Setup
SIP 300 Multiple Choice Messages Example
destination-pattern 9998
port 1/1
!
dial-peer voice 123 voip
destination-pattern [12]...
session protocol sipv2
session target ipv4:[Link]
dtmf-relay sip-notify
!
gateway
!
sip-ua
retry invite 3
retry register 3
timers register 150
registrar dns:[Link] expires 3600
registrar ipv4:[Link] expires 3600 secondary
!
!
telephony-service
max-dn 10
max-conferences 4
!
ephone-dn 1
number 4001
!
ephone-dn 2
number 4002
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
login
line vty 5 15
login
!
no scheduler allocate
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
107
CUBE Fundamentals and Basic Setup
SIP 300 Multiple Choice Messages Example
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
108
CUBE Fundamentals and Basic Setup
Toll Fraud Prevention
!
sip-ua
retry invite 3
retry register 3
timers register 150
registrar dns:[Link] expires 3600
registrar ipv4:[Link] expires 3600 secondary
!
telephony-service
max-dn 10
max-conferences 4
!
ephone-dn 1
number 4001
!
ephone-dn 2
number 4002
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
login
line vty 5 15
login
!
no scheduler allocate
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
109
CUBE Fundamentals and Basic Setup
Toll Fraud Prevention
• SIP registration--If SIP registration is available on SIP trunks, turn on this feature because it provides
an extra level of authentication and validation that only legitimate sources can connect calls. If it is not
available, ensure that the appropriate ACLs are in place.
• SIP Digest Authentication--If the SIP Digest Authentication feature is available for either registrations
or invites, turn this feature on because it provides an extra level of authentication and validation that only
legitimate sources can connect calls.
• Explicit incoming and outgoing dial peers--Use explicit dial peers to control the types and parameters
of calls allowed by the router, especially in IP-to-IP connections on Cisco Unified CME, SRST, and
Cisco UBE. Incoming dial peers offer additional control on the sources of calls, and outgoing dial peers
on the destinations. Incoming dial peers are always used for calls. If a dial peer is not explicitly defined,
the implicit dial peer 0 is used to allow all calls.
• Explicit destination patterns--Use dial peers with more granularity than .T for destination patterns to
block disallowed off-net call destinations. Use class of restriction (COR) on dial peers with specific
destination patterns to allow even more granular control of calls to different destinations on the PSTN.
• Translation rules--Use translation rules to manipulate dialed digits before calls connect to the PSTN to
provide better control over who may dial PSTN destinations. Legitimate users dial an access code and
an augmented number for PSTN for certain PSTN (for example, international) locations.
• Tcl and VoiceXML scripts--Attach a Tcl/VoiceXML script to dial peers to do database lookups or
additional off-router authorization checks to allow or deny call flows based on origination or destination
numbers. Tcl/VoiceXML scripts can also be used to add a prefix to inbound DID calls. If the prefix plus
DID matches internal extensions, then the call is completed. Otherwise, a prompt can be played to the
caller that an invalid number has been dialed.
• Host name validation--Use the “permit hostname” feature to validate initial SIP Invites that contain a
fully qualified domain name (FQDN) host name in the Request Uniform Resource Identifier (Request
URI) against a configured list of legitimate source hostnames.
• Dynamic Domain Name Service (DNS)--If you are using DNS as the “session target” on dial peers, the
actual IP address destination of call connections can vary from one call to the next. Use voice source
groups and ACLs to restrict the valid address ranges expected in DNS responses (which are used
subsequently for call setup destinations).
For more configuration guidance, see the “ Cisco IOS Unified Communications Manager Express Toll Fraud
Prevention ” paper.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
110
CHAPTER 11
SIP Binding
The SIP Binding feature enables you to configure a source IP address for signaling packets and media packets.
• Feature Information for SIP Binding, on page 111
• Information About SIP Binding, on page 112
• Configuring SIP Binding, on page 118
• Verifying SIP Binding, on page 120
SIP Gateway Support Cisco IOS The SIP Gateway Support for the bind Command feature
for the bind Command 12.2(2)XB, allows you to configure the source IP address of signaling
12.2(2)XB2, packets and media packets.
12.2(8)T, 12.2(11)T,
In 12.2(2)XB, this feature was introduced.
and 12.3(4)T
In 12.3(4)T, this feature was expanded to provide the flexibility
Cisco IOS XE
to specify different source interfaces for signaling and media,
3.1.0S
and allow network administrators a finer granularity of control
on the network interfaces used for voice traffic.
The following commands were introduced or modified: bind,
show dial-peer voice, show ip sockets, show sip-ua
connections, and show sip-ua status.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
111
CUBE Fundamentals and Basic Setup
Information About SIP Binding
Support for Ability to 15.1(2)T This feature allows you to configure a separate source IP
Configure Source IP address per SIP trunk. This source IP address is embedded in
Address for Signaling all SIP signaling and media packets that traverse the SIP trunk.
and Media per SIP This feature enables service providers for better profiling and
Trunk billing policies. It also enables greater security for enterprises
by the use of distinct IP addresses within and outside the
enterprise domain.
The following command was introduced or modified:
voice-class sip bind.
Support of Live Cisco IOS XE This feature allows you to either change or add binding on a
Binding at dial-peers. Amsterdam 17.3.1a dial-peer that does not have any active calls, while other
dial-peers with the same binding has active calls.
The following command was introduced or modified:
voice-class sip bind all.
Note All CUBE Enterprise deployments must have signaling and media bind statements specified at the dial-peer
or voice class tenant level. For voice call tenants, you must apply tenants to dial-peers used for CUBE call
flows if these dial-peers do not have bind statements specified.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
112
CUBE Fundamentals and Basic Setup
Source Address
dictate the use of one network to transport the signaling and another network to transport the media. The
benefits of administrator control are:
• Administrators know the traffic that runs on specific networks, thereby making debugging easier.
• Administrators know the capacity of the network and the target traffic, thereby making engineering
and planning easier.
• Traffic is controlled, allowing Qualtiy of Service (QoS) to be monitored.
• The bind media command relaxes the constraints imposed by the bind control and bind all commands,
which cannot be set during an active call. The bind media command works with active calls.
Source Address
In early releases of Cisco IOS software with SIP functionality, the source address of a packet going out of the
gateway was never deterministic. That is, the session protocols and VoIP layers always depended on the IP
layer to give the best local address . The best local address was then used as the source address (the address
showing where the SIP request came from) for signaling and media packets. Using this non-deterministic
address occasionally caused confusion for firewall applications, because a firewall could not be configured
with an exact address and would take action on several different source address packets.
However, the bind command enables you to configure the source IP address of signaling and media packets
to a specific interface’s IP address. Thus, the address that goes out on the packet is bound to the IP address
of the interface specified with the bind command. Packets that are not destined to the bound address are
discarded.
When you do not want to specify a bind address or if the interface is down, the IP layer still provides the best
local address.
The Support Ability to Configure Source IP Address for Signaling and Media per SIP Trunk feature extends
the global bind functionality to support the SIP signaling Transport Layer Socket (TLS) with UDP and TCP.
The source address at the dial peer is the source address in all the signaling and media packets between the
gateway and the remote SIP entity for calls using the dial-peer. Multiple SIP listen sockets with specific source
address handle the incoming SIP traffic from each selected SIP entity. The order of preference for retrieving
the SIP signalling and media source address for inbound and outbound calls is as follows:
• Bind configuration at dial peer level
• Bind configuration at global level
• Best local IP address to reach the destination
The table below describes the state of the system when the bind command is applied in the global or dial peer
level:
No global bind The best local address is used in all outbound SIP messages.
Only one SIP listen socket with a wildcard source address.
Global bind Global bind address used in all outbound SIP messages.
Only one SIP listen socket with global bind address.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
113
CUBE Fundamentals and Basic Setup
Source Address
No global bind Dial peer bind address is used in outbound SIP messages of this dial peer. The remaining
SIP messages use the best local address.
Dial peer bind
One SIP listen socket with a wildcard source address.
Additional SIP listen socket for each different dial peer bind listening on the specific dial
peer bind address.
Global bind Dial peer bind address is used in outbound SIP messages of this dial peer. The remaining
SIP messages use the global bind address.
Dial peer bind
One SIP listen socket with global bind address.
Additional SIP listen socket for each different dial peer bind command listening on the
specific dial peer bind address.
The bind command performs different functions based on the state of the interface (see the table below).
Shut down TCP, TLS, and User Datagram Protocol (UDP) socket listeners are initially
closed. (Socket listeners receive datagrams addressed to the socket.)
With or without active calls
Then the sockets are opened to listen to any IP address.
If the outgoing gateway has the bind command enabled and has an active call,
the call becomes a one-way call with media flowing from the outgoing gateway
to the terminating gateway.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
No shut down TCP, TLS, and UDP socket listeners are initially closed. (Socket listeners receive
datagrams addressed to the socket.)
No active calls
Then the sockets are opened and bound to the IP address set by the bind
command.
The sockets accept packets destined for the bound address only.
The dial peer bind socket listeners of the interface are reopened and the
configuration turns active for all subsequent SIP messages.
No shut down TCP, TLS, and UDP socket listeners are initially closed.
Active calls Then the sockets are opened to listen to any IP address.
The dial peer bind socket listeners of the interface are reopened and the
configuration turns active for all subsequent SIP messages.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
114
CUBE Fundamentals and Basic Setup
Source Address
Bound-interface IP address TCP, TLS, and UDP socket listeners are initially closed.
is removed.
Then the sockets are opened to listen to any address, because the IP address has
been removed. This happens even when SIP was never bound to an IP address.
A message stating that the IP address has been deleted from the SIP bound
interface is printed.
If the outgoing gateway has the bind command enabled and has an active call,
the call becomes a one-way call with media flowing from the outgoing gateway
to the terminating gateway.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
The physical cable is TCP, TLS, and UDP socket listeners are initially closed.
pulled on the bound port or
Then the sockets are opened and bound to listen to any address.
the interface layer is down.
When the pulled cable is replaced, the result is as documented for no shutdown
interfaces.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
A bind interface is shut The call becomes a one-way call with media flowing in only one direction. It
down or its IP address is flows from the gateway where the change or shutdown took place, to the gateway
changed or the physical where no change occurred. Thus, the gateway with the status change no longer
cable is pulled while SIP receives media.
calls are active.
The call is then disconnected, but the disconnected message is not understood
by the gateway with the status change, and the call is still assumed to be active.
If the bind interface is shutdown, the dial peer bind socket listeners of the
interface are closed. If the IP address of the interface is changed, the socket
listeners representing the bind command is opened with the available IP address
of the interface and the configuration turns active for all subsequent SIP
messages.
Note If there are active calls, the bind command does not take effect if it is issued for the first time or if another
bind command is in effect. A message reminds you that there are active calls and that the change cannot take
effect.
The bind command applied at the dial peer level can be modified only in the following situations:
• Dial peer bind can be modified when the dial-peer do not have any active calls.
• Dial peer bind is disabled in the supported IOS configuration options.
• Dial peer bind is removed when the bound interface is removed.
• Dial peer bind is removed when the dial peer is removed.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
115
CUBE Fundamentals and Basic Setup
Voice Media Stream Processing
Table 25: Interaction Between Previously Set and New bind Commands
Without bind all Generated bind control and bind media commands to override
active calls existing bind control and bind media commands.
Consider the following scenarios for attaching a tenant to a dial-peer that is processing active calls:
• You can attach a tenant to a dial-peer, when the the dial-peer has bind (bind control or bind all )
command enabled.
• You cannot attach a tenant to a dial-peer, when the dial-peer has no bind or bind media command
enabled and the tenant has bind control or bind all command enabled.
Consider the following scenarios for changing bind configuration on a tenant, when the tentant is attached to
a dial-peer that is processing active calls:
• You can change the bind configuration on tenant, when the associated dial-peer has bind ( bind control
or bind all ) command enabled. Because, the dial-peer bind configuration takes precedence over the
tenant bind configuraiton.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
116
CUBE Fundamentals and Basic Setup
Voice Media Stream Processing
• You cannot change the bind configuration on tenant, when the associated dial-peer has no bind or bind
media command enabled and the tenant has bind control or bind all command enabled.
The bind all and bind control commands perform different functions based on the state of the interface.
Note The bind all command applies to global and dial peer. The table below applies to bind media only if the
media interface is the same as the bind control interface. If the two interfaces are different, media behavior
is independent of the interface state.
Table 26: bind all and bind control Functions, Based on Interface State
Shut down TCP, TLS, and UDP socket listeners are initially closed. (Socket listeners
receive datagrams addressed to the socket.)
With or without active calls
Then the sockets are opened to listen to any IP address.
If the outgoing gateway has the bind command enabled and has an active call,
the call becomes a one-way call with media flowing from the outgoing gateway
to the terminating gateway.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
Not shut down TCP, TLS, and UDP socket listeners are initially closed. (Socket listeners
receive datagrams addressed to the socket.)
Without active calls
Then the sockets are opened and bound to the IP address set by the bind
command.
The sockets accept packets destined for the bound address only.
The dial peer bind socket listeners of the interface are reopened and the
configuration turns active for all subsequent SIP messages.
Not shut down TCP, TLS, and UDP socket listeners are initially closed.
With active calls Then the sockets are opened to listen to any IP address.
The dial peer bind socket listeners of the interface are reopened and the
configuration turns active for all subsequent SIP messages.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
117
CUBE Fundamentals and Basic Setup
Configuring SIP Binding
Bound interface’s IP TCP, TLS, and UDP socket listeners are initially closed.
address is removed.
Then the sockets are opened to listen to any address because the IP address has
been removed.
A message is printed that states the IP address has been deleted from the bound
SIP interface.
If the outgoing gateway has the bind command enabled and has an active call,
the call becomes a one-way call with media flowing from the outgoing gateway
to the terminating gateway.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
The physical cable is pulled TCP, TLS, and UDP socket listeners are initially closed.
on the bound port, or the
Then the sockets are opened and bound to listen to any address.
interface layer goes down.
When the pulled cable is replaced, the result is as documented for interfaces
that are not shut down.
The dial peer bind socket listeners of the interface are closed and the
configuration turns inactive for all subsequent SIP messages.
A bind interface is shut The call becomes a one-way call with media flowing in only one direction. The
down, or its IP address is media flows from the gateway where the change or shutdown took place to the
changed, or the physical gateway where no change occurred. Thus, the gateway with the status change
cable is pulled while SIP no longer receives media.
calls are active.
The call is then disconnected, but the disconnected message is not understood
by the gateway with the status change, and the call is still assumed to be active.
If the bind interface is shutdown, the dial peer bind socket listeners of the
interface are closed. If the IP address of the interface is changed, the socket
listeners representing the bind command is opened with the available IP address
of the interface and the configuration turns active for all subsequent SIP
messages.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
118
CUBE Fundamentals and Basic Setup
Configuring SIP Binding
DETAILED STEPS
Procedure
Router> enable
Step 3 interface type number Configures an interface type and enters the interface
configuration mode.
Example:
• type number —Type of interface to be configured and
Router(config)# interface fastethernet0/0 the port, connector, or interface card number.
Router(config-if)# exit
Step 6 Use one of the following commands to configure SIP Sets a source interface for signaling and media packets. The
binding: binding applies to the specified interfaces only. SIP must
be configured globally or at a dial peer level.
• bind {control | all} source-interface interface-id
[ipv6-address ipv6-address] in SIP configuration • control —Binds signaling packets.
mode.
• media —Binds media packets.
• bind media {source-address ipv4 ipv4-address |
source-interface interface-id [ipv6-address • all —Binds signaling and media packets.
ipv6-address]} in SIP configuration mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
119
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
Example:
SIP binding in dial-peer configuration mode:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
120
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
DETAILED STEPS
Procedure
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
121
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
VoiceOverIpPeer1234
peer type = voice, system default peer = FALSE, information type = voice,
description = `',
tag = 1234, destination-pattern = `',
voice reg type = 0, corresponding tag = 0,
allow watch = FALSE
answer-address = `', preference=0,
CLID Restriction = None
CLID Network Number = `'
CLID Second Number sent
CLID Override RDNIS = disabled,
rtp-ssrc mux = system
source carrier-id = `', target carrier-id = `',
source trunk-group-label = `', target trunk-group-label = `',
numbering Type = `unknown'
group = 1234, Admin state is up, Operation state is down,
incoming called-number = `', connections/maximum = 0/unlimited,
DTMF Relay = disabled,
modem transport = system,
URI classes:
Incoming (Request) =
Incoming (Via) =
Incoming (To) =
Incoming (From) =
Destination =
huntstop = disabled,
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
122
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
123
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
Note
If the bind address is not configured at the dial-peer, the output of the show dial-peer voice command remains the same
except for the values of the voice class sip bind control and voice class sip bind media, which display “system,”
indicating that the bind is configured at the global level.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
124
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
Although the bind all command is an accepted configuration, it does not appear in show running-config command output.
Because the bind all command is equivalent to issuing the commands bind control and bind media, those are the
commands that appear in the show running-config command output.
Example:
The following sample output shows that bind is enabled on router [Link]:
Building configuration...
Current configuration : 2791 bytes
!
version 12.2
service config
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service internal
service udp-small-servers
!
ip subnet-zero
ip ftp source-interface Ethernet0
!
voice service voip
sip
bind control source-interface FastEthernet0
!
interface FastEthernet0
ip address [Link] [Link]
duplex auto
speed auto
fair-queue 64 256 1000
ip rsvp bandwidth 75000 100
!
voice-port 1/1/1
no supervisory disconnect lcfo
!
dial-peer voice 1 pots
application session
destination-pattern 5550111
port 1/1/1
!
dial-peer voice 29 voip
application session
destination-pattern 5550133
session protocol sipv2
session target ipv4:[Link]
codec g711ulaw
!
gateway
!
line con 0
line aux 0
line vty 0 4
login
!
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
125
CUBE Fundamentals and Basic Setup
Verifying SIP Binding
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
126
CHAPTER 12
Media Path
The Media Path feature allows you to configure the path taken by media after a call is established. You can
configure media path in the following modes:
• Media flow-through
• Media flow-around
• Media anti-trombone
Configuring Media 12.4(3), 12.4(24)T, The Media Path feature allows you to configure the path
Path 15.0(1)M taken by media after a call is established.
The following commands were introduced by this feature:
media-flow around, media flow-through, media
anti-trombone.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
127
CUBE Fundamentals and Basic Setup
Media Flow-Through
Media Flow-Through
Media Flow-Through is a media path mode where media and signaling packets terminate and originate on
CUBE. As CUBE is an active participant of the call, this mode is recommended when connected outside an
enterprise (untrusted endpoints).
Figure 15: Media Flow-Through Mode
Note Ciso UBE supports Media-Flow Through video. However, Cisco UBE does not know the video SDP parameters
that the various video end points support. Cisco UBE supports basic H264 SDP for Media-Flow Through
video.
Cisco UBE supports the following video codecs:
• H261
• H263
• H263+
• H264
• MPEG-4
Note Ciso UBE supports the feature SDP pass-thru in Media-Flow Through. This feature allows Cisco UBE to
support a video SDP parameter. The following example explains SDP pass-thru configuration.
Router#conf t
Router(config)#voice service voip
Router(config-voi-serv)sip
Router(config-voi-serv)pass-thru content sdp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
128
CUBE Fundamentals and Basic Setup
Configure Media Flow-Through
DETAILED STEPS
Procedure
Device> enable
Step 3 Use one of the following commands to configure media Enables media packets to pass through the endpoints,
flow-through: without the intervention of the CUBE.
• media flow-through in dial-peer configuration mode
• media flow-through in global VoIP configuration
mode
Example:
In dial-peer configuration mode
Example:
In global VoIP SIP mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
129
CUBE Fundamentals and Basic Setup
Media Flow-Around
Media Flow-Around
Media Flow-Around is a media path mode where signaling packets terminate and originate on CUBE. As
media bypasses CUBE and flows directly between endpoints, this mode is recommended when connected
within an enterprise (trusted endpoints). Media Flow-Around is supported for both audio and video calls.
Figure 16: Media Flow-Around
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
130
CUBE Fundamentals and Basic Setup
Media Anti-Trombone
Example:
In global VoIP SIP mode
Media Anti-Trombone
Media Anti-Tromboning is a media path mode that allows CUBE to detect and avoid loops created by call
transfers or call forwards. Loops are restricted to the SIP signaling path and removed from the RTP media
path.
The user agent may initiate call forwards and call transfers that are sent towards CUBE as a new SIP INVITE
dialog. CUBE considers the original call and the forwarded call as separate unrelated calls. Media
anti-tromboning allows CUBE to detect the relation between the calls and resolve the media loop by sending
SDP packets back to the sender.
The figure below illustrates how CUBE needlessly loops RTP packets towards the User Agent because it fails
to detect the loop.
Figure 17: Tromboning - Needless looping of Media Packets
The figure below illustrates how CUBE detects and avoids the loop with the anti-tromboning feature.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
131
CUBE Fundamentals and Basic Setup
Prerequisites
Prerequisites
Cisco Unified Border Element
• Cisco IOS Release 15.1(3)T or a later release must be installed and running on your Cisco Unified Border
Element.
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands to configure media anti-tromboning:
• media anti-trombone in dial-peer configuration mode
• media anti-trombone in global VoIP configuration mode
4. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
132
CUBE Fundamentals and Basic Setup
Configuring Media Anti-Tromboning
DETAILED STEPS
Procedure
Device> enable
Step 3 Enter one of the following commands to configure media Enables media anti-trombone for all calls.
anti-tromboning:
• media anti-trombone in dial-peer configuration mode
• media anti-trombone in global VoIP configuration
mode
Example:
In dial-peer configuration mode
Example:
In global VoIP SIP mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
133
CUBE Fundamentals and Basic Setup
Configuring Media Anti-Tromboning
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
134
CHAPTER 13
SIP Profiles
Session Initiation Protocol (SIP) profiles change SIP incoming or outgoing messages so that interoperability
between incompatible devices can be ensured.
You can configure SIP profiles with rules to add, remove, copy, or modify the SIP, Session Description
Protocol (SDP), and peer headers that enter or leave CUBE. The rules in a SIP profile configuration can be
also tagged with a unique number. Tagging the rules allows you to insert or delete rules at any position of the
existing SIP profile configuration without deleting and reconfiguring the entire voice-class sip profile.
Figure 19: Incoming and Outgoing Messages where SIP Profiles can be applied
You can use the following tool to test your SIP profile on an incoming message: [Link]
SipProfileTest/.
• Feature Information for SIP Profiles, on page 135
• Information About SIP Profiles, on page 136
• Restrictions for SIP Profiles, on page 139
• How to Configure SIP Profiles, on page 139
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
135
CUBE Fundamentals and Basic Setup
Information About SIP Profiles
SIP Profiles (for Cisco IOS 15.4(2)T This feature extends support to inbound messages.
inbound messages)
Cisco IOS XE 3.12S This feature modifies the following commands:
The inbound keyword was added to the sip-profiles and
voice-class sip profiles commands.
Support for Rotary calls Cisco IOS 15.3(1)T With CSCty41575, this feature was enhanced to support
and Media Forking forked and rotary calls.
Configuring SIP Profile Cisco IOS This feature allows users to change (add, delete, or modify)
(Add, Delete or Modify) 12.4(15)XZ the standard SIP messages that are sent or received for better
interworking with different SIP entities.
Cisco IOS 12.4(20)T
This feature introduces the following commands: voice
Cisco IOS XE 2.5
class sip-profiles, response, request.
Support for Cisco IOS 15.5(2)T This feature allows users to add, copy, delete, or modify
Non-Standard SIP non-standard (for example, X-Cisco-Recording-Participant)
Headers using SIP profiles. The word keyword was added to the
sip-profiles command to allow the user to configure any
non-standard SIP header.
Support for tagging Cisco IOS 15.5(2)T This feature allows users to tag the rules in a SIP profile
rules in a SIP profile configuration. Tagging the rules allows users to insert or
Cisco IOS XE 3.15S
configuration delete rules at any position of the existing SIP profile
configuration without deleting and reconfiguring the entire
voice-class sip profile.
The following command is introduced in voice class sip
profiles configuration mode to tag and insert rules: rule
This feature also allows users to upgrade or downgrade all
the existing SIP profile configurations to rule-format and
non-rule format.
The following commands are introduced in global
configuration mode: voice sip sip-profiles upgrade, voice
sip sip-profiles downgrade
Support for Copying Cisco IOS 15.6(1)T This feature allows for unsupported SDP headers to be
Unsupported SDP copied into a SIP Profile and traverse through CUBE, for
Cisco IOS XE 3.17S
Headers all m-lines.
The feature introduces the following command: pass-thru
content custom-sdp .
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
136
CUBE Fundamentals and Basic Setup
Important Characteristics of SIP Profiles
of differences in how the protocol is implemented or interpreted. CUBE can customize the SIP messaging on
either side to what the devices in that segment of the network expects to see by normalizing the SIP messaging
on the network border, or between two non-interoperable devices within the network.
Service providers may have policies for which SIP messaging fields should be present (or what constitutes
valid values for the header fields) before a SIP call enters their network. Similarly, enterprises and small
businesses may have policies for the information that can enter or exit their networks for policy or security
reasons from a service provider SIP trunk.
Figure 20: SIP Profile
In order to customize SIP messaging in both directions, you can place and configure a CUBE with a SIP
profile at the boundary of these networks.
In addition to network policy compliance, the CUBE SIP profiles can be used to resolve incompatibilities
between SIP devices inside the enterprise network. These are the situations in which incompatibilities can
arise:
• A device rejects an unknown header (value or parameter) instead of ignoring it
• A device sends incorrect data in a SIP message
• A device does not implement (or implements incorrectly) protocol procedures
• A device expects an optional header value or parameter, or an optional protocol procedure that can be
implemented in multiple ways
• A device sends a value or parameter that must be changed or suppressed before it leaves or enters the
network
• Variations in the SIP standards on how to achieve certain functions
The SIP profiles feature on CUBE provides a solution to these incompatibilities and customization issues.
SIP profiles can also be used to change a header name from the long form to the compact form. For example,
From to f. This can be used as a way to reduce the length of a SIP message. By default, the device never sends
the compact form of the SIP messages although it receives either the long or the short form.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
137
CUBE Fundamentals and Basic Setup
Important Characteristics of SIP Profiles
• Copy Variables u01 to u99 are shared by inbound and outbound SIP Profiles.
• Session Initiation Protocol (SIP) and Session Description Protocol (SDP) headers are supported. SDP
can be either a standalone body or part of a Multipurpose Internet Mail Extensions (MIME) message.
• The rules that are configured for an INVITE message are applied only to the first INVITE of a call. A
special REINVITE keyword is used to manipulate subsequent INVITEs of a CALL.
• Manipulation of SIP headers by outbound SIP profiles occurs as the last step before the message leaves
the CUBE device. That is, after destination dial-peer matching has taken place. Changes to the SIP
messages are not remembered or acted on by the CUBE application. The Content-length field is
recalculated after the SIP Profiles rules are applied to the outgoing message.
• If the ANY keyword is used in place of a header, it indicates that a rule must be applied to any message
within the specified category.
• SIP header modification can be cryptic. It is easier to remove a header and add it back (with the new
value), rather than modifying it.
• To include '?' (question-mark) character as part of match-pattern or replace-pattern, you must press
"Ctrl+v" keys and then type '?'. This operation is needed to treat ‘?’ as an input character itself instead
of the usual device help prompt.
Note Regex features like look-ahead, look-behind, OR operator, non capturing group,
and quantifier brackets are not supported (for example, ?!, ?:, ?<=, |, {}, and so
on).
• If double quotes occur, a backslash must prefix the double quotes. For example, “User-Agent:
\”CISCO\” CUBE”
• If an incoming SIP message contains certain proprietary attributes, CUBE can copy these unsupported
SDP attributes or lines from incoming leg to outgoing leg using a SIP profile rule.
• The copy variable can be used in outbound profile to add or modify the outgoing message.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
138
CUBE Fundamentals and Basic Setup
Restrictions for SIP Profiles
• After modification by inbound SIP Profiles, the parameters in SIP message might change. This change
might change the inbound dial-peer that is matched when an actual dial-peer lookup is done.
• In the register pass-through feature, there is only one dial-peer for register and response. So both register
from phone and response from registrar go through the same inbound sip profile under the dial-peer if
any.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
139
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile to Manipulate SIP Request or Response Headers
DETAILED STEPS
Procedure
Step 3 voice class sip-profiles profile-id Creates a SIP Profiles and enters voice class configuration
mode.
Example:
Step 4 Enter one of the following to add, remove, modify SIP According to your choice, this step does one of the
headers: following:
• request message {sip-header | sdp-header} • Adds a SIP or SDP header to a SIP request.
header-to-add add header-value-to-add
• Removes a SIP or SDP header to a SIP request.
• request message {sip-header | sdp-header}
header-to-remove remove • Modifies a SIP or SDP header to a SIP request.
• request message {sip-header | sdp-header}
header-to-modify modify header-value-to-match • If ANY is used in place of a header, it indicates that a
header-value-to-replace rule must be applied to any message within the
specified category.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
140
CUBE Fundamentals and Basic Setup
Configuring SIP Profiles for Copying Unsupported SDP Headers
Step 5 Enter one of the following to add, remove, or modify SIP According to your choice, this step does one of the
response headers: following:
• response message [method method-type] {sip-header • Adds a SIP or SDP header to a SIP response.
| sdp-header} header-to-add add header-value-to-add
• Removes a SIP or SDP header to a SIP response.
• response message [method method-type] {sip-header
| sdp-header} header-to-remove remove • Modifies a SIP or SDP header to a SIP response.
• response message [method method-type] {sip-header
| sdp-header} header-to-modify modify • All notes from the previous step are applicable here.
header-value-to-match header-value-to-replace
SUMMARY STEPS
1. enable
2. configure terminal
3. To enable copying of unsupported SDP attribute from incoming leg to outbound leg, you need to enable
one of the following commands:
• In Global VoIP SIP configuration mode
pass-thru content custom-sdp
• In dial-peer configuration mode (The configuration is applied on the incoming dial-peer)
voice-class sip pass-thru content custom-sdp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
141
CUBE Fundamentals and Basic Setup
Configuring SIP Profiles for Copying Unsupported SDP Headers
DETAILED STEPS
Procedure
Step 3 To enable copying of unsupported SDP attribute from Enables copying of unsupported SDP attributes per m-line
incoming leg to outbound leg, you need to enable one of to the peer leg so that it can be used in outgoing SIP
the following commands: messages.
• In Global VoIP SIP configuration mode Note
Enabling this command does not enable the SDP
pass-thru content custom-sdp
Passthrough feature.
• In dial-peer configuration mode (The configuration is
applied on the incoming dial-peer)
voice-class sip pass-thru content custom-sdp
Example:
In Global VoIP SIP configuration mode:
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# pass-thru content custom-sdp
Example:
In Dial-peer configuration mode:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip pass-thru
content custom-sdp
Step 4 voice class sip-profiles profile-id Voice class sip-profile is configured on the outbound
dial-peer or as a global configuration.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
142
CUBE Fundamentals and Basic Setup
Example: Configuring SIP Profile Rules (Attribute Passing)
Step 5 Enter one of the following to copy an unsupported SDP M-line Index values:
line or attribute from peer leg's SDP and add, modify, or
• 0 - A value of zero represents the session level.
remove in the outgoing SDP:
• request/response ANY peer-header sdp • 1 to 6 - A value in the range of one to six represents
mline-index index COPY match-pattern copy-variable the m-line number in SDP.
• request/response ANY sdp-header mline-index
Copy: Enables copying of SDP line or attribute from peer
indexheader-name ADD copy-variable
leg SDP.
• request/response ANY sdp-header mline-index
indexheader-name MODIFY copy-variable + Add: Enables adding the copied SDP line or attribute in the
replace-pattern outgoing SDP.
• request/response ANY sdp-header mline-index Modify: Enables modifying SDP line or attribute in the
indexheader-name REMOVE outgoing SDP.
Remove: Enables removing SDP line or attribute in the
outgoing SDP.
Below are the rule tag behaviors that needs to be considered while using rule tag in SIP profile configurations:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
143
CUBE Fundamentals and Basic Setup
Configuring SIP Profile Using Rule Tag
• If a rule is added with the tag of an existing rule, then the existing rule is overwritten with the new rule.
• For inserting a rule at the desired position, the SIP profile configuration should be in rule format. In case
the SIP profile is in non-rule format, upgrade the SIP profiles to rule format before inserting a rule.
• If a new rule is inserted, the new rule takes the position specified in before tag. The subsequent rules
are incremented sequentially.
• Once the rule is removed, the tag belonging to the removed rule remains vacant. The tags associated with
the subsequent rules remain unchanged.
• If a rule is added to a vacant tag, the new rule gets associated with the vacant tag and the subsequent
rules remain unchanged.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-profiles profile-id
4. Enter one of the following to add, copy, modify, or remove a SIP request or response headers to a SIP
profile configuration:
• rule tag request method sdp-header | sip-header header-name add|copy|modify|remove
string
• rule tag response method sdp-header | sip-header header-name add|copy|modify|remove
string
5. Enter one of the following to insert a rule in between the existing set of rules to add, remove, or modify
SIP request or response headers:
• rule before tag request method sdp-header | sip-header header-name
add|copy|modify|remove string
• rule before tag response method sdp-header | sip-header header-name
add|copy|modify|remove string
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
144
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile for Non-standard SIP Header
Step 4 Enter one of the following to add, copy, modify, or remove According to your choice, this step tags the SIP request or
a SIP request or response headers to a SIP profile response header with a unique number.
configuration:
• rule tag request method sdp-header | sip-header
header-name add|copy|modify|remove string
• rule tag response method sdp-header | sip-header
header-name add|copy|modify|remove string
Step 5 Enter one of the following to insert a rule in between the According to your choice this steps inserts the rule at the
existing set of rules to add, remove, or modify SIP request position specified in the before tag. The subsequent rules
or response headers: in the existing SIP profile configuration is incremented
sequentially.
• rule before tag request method sdp-header |
sip-header header-name
add|copy|modify|remove string
• rule before tag response method sdp-header |
sip-header header-name
add|copy|modify|remove string
Step 6 Enter the following to delete a rule: According to your choice, this step tags the SIP request or
response with a unique number.
• no rule tag
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
145
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile for Non-standard SIP Header
DETAILED STEPS
Procedure
Step 3 voice class sip-profiles profile-id Creates a SIP Profiles and enters voice class configuration
mode.
Example:
Step 4 Enter one of the following to add, copy, remove, or modify According to your choice, this step does one of the
non-standard SIP request headers: following:
• request message {sip-header } • Adds a non-standard SIP header to a SIP request.
non-standard-header-to-add add • Copies contents from a non-standard SIP header to a
non-standard-header-value-to-add SIP request.
• request message {sip-header }
non-standard-header-to-copy copy • Removes a non-standard SIP header to a SIP request.
non-standard-header-value-to-match copy-variable • Modifies a non-standard SIP header to a SIP request.
• request message {sip-header } • If ANY is used in place of a header, it indicates that a
non-standard-header-to-remove remove rule must be applied to any message within the
• request message {sip-header } specified category.
non-standard-header-to-modify modify • For non-standard-header-value-to-add used to add a
non-standard-header-value-to-match non-standard header,
non-standard-header-value-to-replace non-standard-header-value-to-match or
non-standard-header-value-to-replace used to modify
a non-standard header:
• If a whitespace occurs, the entire value must be
included between double quotes. For example,
“User-Agent: CISCO CUBE”
• If double quotes occurs, a back slash must prefix
the double quotes. For example, “User-Agent:
\”CISCO\” CUBE”
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
146
CUBE Fundamentals and Basic Setup
Upgrading or Downgrading SIP Profile Configurations
Step 5 Enter one of the following to add, copy, remove, or modify According to your choice, this step does one of the
non-standard SIP response headers: following:
• response message [method method-type] {sip-header • Adds a non-standard SIP to a SIP response.
} non-standard-header-to-add add • Copies contents from a non-standard SIP header to a
non-standard-header-value-to-add SIP response.
• response message [method method-type]
{sip-header} non-standard-header-to-copy copy • Removes a non-standard header to a SIP response.
non-standard-header-value-to-match copy-variable • Modifies a non-standard SIP header to a SIP response.
• response message [method method-type] • All notes from the previous step are applicable here.
{sip-header} non-standard-header-to-remove remove
• response message [method method-type]
{sip-header} non-standard-header-to-modify modify
non-standard-header-value-to-match
non-standard-header-value-to-replace
Note We recommend that you downgrade the SIP profiles to non-rule format configuration before migrating to a
version below Cisco IOS Release 15.5(2)T or Cisco IOS-XE Release 3.15S. If you migrate without downgrading
the SIP profile configurations, then all the SIP profile configurations is lost after migration.
SUMMARY STEPS
1. enable
2. Enter the following to upgrade SIP profiles configurations to rule-format:
• voice sip sip-profiles upgrade
3. Enter the following to downgrade SIP profiles configurations to non-rule format:
• voice sip sip-profiles downgrade
4. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
147
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile as an Outbound Profile
DETAILED STEPS
Procedure
Step 2 Enter the following to upgrade SIP profiles configurations Upgrades all SIP Profiles to rule-format configurations.
to rule-format:
• voice sip sip-profiles upgrade
Example:
In EXEC(#) mode:
Device#voice sip sip-profiles upgrade
Step 3 Enter the following to downgrade SIP profiles Downgrades all SIP Profiles from rule-format configurations
configurations to non-rule format: to non-rule format configurations.
• voice sip sip-profiles downgrade
Example:
In EXEC(#) mode:
Device#voice sip sip-profiles downgrade
What to do next
Now apply the SIP Profile as an inbound or outbound SIP profile.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
148
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile as an Inbound Profile
DETAILED STEPS
Procedure
Example:
In global VoIP SIP mode
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. sip-profiles inbound
6. Apply the SIP profile to a dial peer:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
149
CUBE Fundamentals and Basic Setup
Configuring a SIP Profile as an Inbound Profile
DETAILED STEPS
Procedure
Device(config-voi-serv)# sip
Example:
In global VoIP SIP mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
150
CUBE Fundamentals and Basic Setup
Verifying SIP Profiles
DETAILED STEPS
Procedure
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
151
CUBE Fundamentals and Basic Setup
Examples: Adding, Modifying, Removing SIP Profiles
This command also displays the modifications performed by the SIP profile configuration, by preceding the modification
information with the word sip_profiles, as highlighted in the example below.
Example:
Device# debug ccsip all
…
Oct 12 06:51:53.647: //-1/xxxxxxxxxxxx/SIP/Info/
sip_profiles_application_change_sdp_line:
New SDP header is added : b=AS: 1600
Oct 12 06:51:53.647: //-1/xxxxxxxxxxxx/SIP/Info/
sip_profiles_update_content_length:
Content length header before modification :
Content-Length: 290
Oct 12 06:51:53.647: //-1/xxxxxxxxxxxx/SIP/Info/
sip_profiles_update_content_length:
Content length header after modification :
Content-Length: 279
Example: Adding "b=AS:4000" SDP header to the video-media Header of the INVITE SDP Request
Messages
Example: Adding "b=AS:4000" SDP header to the video-media Header of the INVITE SDP Request
Messages in rule format
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
152
CUBE Fundamentals and Basic Setup
Example: Adding a SIP, SDP, or Peer Header
Example: Adding the Retry-After Header to the SIP 480 Response Messages
Example: Adding the Retry-After Header to the SIP 480 Response Messages in rule format
Example: Adding "User-Agent: SIP-GW-UA" to the User-Agent Field of the 200 Response SIP Messages
Example: Adding "User-Agent: SIP-GW-UA" to the User-Agent Field of the 200 Response SIP Messages
in rule format
Example: Adding "a=ixmap:0 ping" in M-Line number 4 of the INVITE SDP Request Messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
153
CUBE Fundamentals and Basic Setup
Example: Modifying a SIP, SDP, or Peer Header
Example: Modifying SIP-Req-URI of the Header of the INVITE and RE-INVITE SIP Request Messages
to include "user=phone"
Example: Modifying SIP-Req-URI of the Header of the INVITE and RE-INVITE SIP Request Messages
to include "user=phone" in rule format
Modify the From Field of a SIP INVITE Request Messages to “gateway@gw-ip-address” Format
For example, modify 2222000020@[Link] to gateway@[Link]
Device(config)# voice class sip-profiles 20
Device(config-class)# request INVITE sip-header From modify "(<.*:)(.*@)" "\1gateway@"
Modify the From Field of a SIP INVITE Request Messages to “gateway@gw-ip-address” Format in
rule format
For example, modify 2222000020@[Link] to gateway@[Link]
Device(config)# voice class sip-profiles 20
Device(config-class)# rule 1 request INVITE sip-header From modify "(<.*:)(.*@)" "\1gateway@"
Replace "CiscoSystems-SIP-GW-UserAgent" with "-" in the Originator Header of the SDP in INVITE
Request Messages
Device(config)# voice class sip-profiles 10
Device(config-class)# request INVITE sdp-header Session-Owner modify
"CiscoSystems-SIP-GW-UserAgent“ "-"
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
154
CUBE Fundamentals and Basic Setup
Example: Modifying a SIP, SDP, or Peer Header
Replace "CiscoSystems-SIP-GW-UserAgent" with "-" in the Originator Header of the SDP in INVITE
Request Messages in rule format
Device(config)# voice class sip-profiles 10
Device(config-class)# rule 1 request INVITE sdp-header Session-Owner modify
"CiscoSystems-SIP-GW-UserAgent“ "-"
Convert "sip uri" to "tel uri" in Req-URI, From and To Headers of SIP INVITE Request Messages
For example, modify sip:2222000020@[Link]:5060” to “[Link]
Device(config)# voice class sip-profiles 40
Device(config-class)# request INVITE sip-header SIP-Req-URI modify "sip:(.*)@[^ ]+" "[Link]
Device(config-class)# request INVITE sip-header From modify "<sip:(.*)@.*>" "<[Link]
Device(config-class)# request INVITE sip-header To modify "<sip:(.*)@.*>" "<[Link]
Convert "sip uri" to "tel uri" in Req-URI, From and To Headers of SIP INVITE Request Messagesin
rule format
For example, modify sip:2222000020@[Link]:5060” to “[Link]
Device(config)# voice class sip-profiles 40
Device(config-class)# rule 1 request INVITE sip-header SIP-Req-URI modify "sip:(.*)@[^ ]+"
"[Link]
Device(config-class)# rule 2 request INVITE sip-header From modify "<sip:(.*)@.*>" "<[Link]
Device(config-class)# rule 3 request INVITE sip-header To modify "<sip:(.*)@.*>" "<[Link]
Outbound ptime:
a=ptime:30
Device(config)# voice class sip-profiles 103
Device(config-class)# request ANY sdp-header Audio-Attribute modify "a=ptime:20" "a=ptime:30"
a=inactive
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
155
CUBE Fundamentals and Basic Setup
Example: Modifying a SIP, SDP, or Peer Header
Outbound Audio-Attribute
a=sendrecv
Case 2:
Inbound Audio-Attribute
a=recvonly
Outbound Audio-Attribute
a=sendrecv
Case 3
Inbound Audio-Attribute
a=sendonly
Outbound Audio-Attribute
a=sendrecv
Device(config)# voice class sip-profiles 104
Device(config-class)# request any sdp-header Audio-Attribute modify "a=inactive" "a=sendrecv"
Device(config-class)# request any sdp-header Audio-Attribute modify "a=recvonly" "a=sendrecv"
Device(config-class)# request any sdp-header Audio-Attribute modify "a=sendonly" "a=sendrecv"
Example: Modifying Packetization Mode in a=fmtp line of M-line number 2 of the INVITE SDP Request
Messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
156
CUBE Fundamentals and Basic Setup
Example: Remove a SIP, SDP, or Peer Header
Remove Server Header from 100 and 180 SIP Response Messages
Once the rule is removed, the tag belonging to the removed rule remains vacant. The tags associated
with the subsequent rules are unchanged.
The SIP Profile configuration after removing the rule
Example: Removing "a=ixmap" in M-Line number 4 of the INVITE SDP Request Messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
157
CUBE Fundamentals and Basic Setup
Example: Inserting SIP Profile Rules
Execute the following command in EXEC (#) mode to upgrade the SIP Profiles to rule-format:
Device#voice sip sip-profiles upgrade
The following is a snippet from show running-config command showing the SIP profiles after
upgrading to rule-format:
Device#show running-config
!
rule 1 request INVITE sip-header Contact Modify “(.*)” “\1;temp=xyz”
rule 2 request INVITE sip-header Supported Add “Supported: ”
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
158
CUBE Fundamentals and Basic Setup
Example: Modifying Diversion Headers
Execute the following command in EXEC(#) mode to downgrade SIP Profiles to non-rule format:
Device# voice sip sip-profiles downgrade
The following is a snippet from show running-config command showing SIP profiles after
downgrading to non-rule format:
Device#show running-config
!
request INVITE sip-header Contact Modify “(.*)” “\1;temp=xyz”
request INVITE sip-header Supported Add “Supported: ”
!
Example: Create a Diversion header depending on the area code in the From field
Most service providers require a redirected call to have a diversion header that contains a full 10
digit number that is associated with a SIP trunk group. Sometimes, a SIP trunk may cover several
different area codes, states, and geographic locations. In this scenario, the service provider may
require a specific number to be placed in the diversion header depending on the calling party number.
In the below example, if the From field has an area code of 978 "<sip:978", the SIP profile leaves
the From field as is and adds a diversion header.
Device(config)# voice class sip-profiles 102
Device(config-class)# request INVITE sip-header From modify "From:(.*)<sip:978(.*)@(.*)"
"From:\1<sip:978\2@\3\x0ADiversion:
<sip:9789365000@[Link]:5060;privacy=off;reason=unconditional;counter=1;screen=no"
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
159
CUBE Fundamentals and Basic Setup
Example: Sample SIP Profile Application on SIP Invite Message
The below diversion header is added. There was no diversion header before this was added:
Diversion: <sip:9789365000@[Link]:5060;transport=udp>"
The SIP INVITE message before the SIP profile has been applied is show below:
INVITE sip:2222000020@[Link]:5060 SIP/2.0
Via: SIP/2.0/UDP [Link]:5060;branch=z9hG4bK1A203F
From: "sipp " <sip:1111000010@[Link]>;tag=F11AE0-1D8D
To: <sip:2222000020@[Link]>
Date: Mon, 29 Oct 2007 19:02:04 GMT
Call-ID: 4561B116-858811DC-804DEF2E-4CF2D71B@[Link]
Cisco-Guid: 1163870326-2240287196-2152197934-1290983195
Content-Length: 290
v=0
o=CiscoSystemsSIP-GW-UserAgent 6906 8069 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 17070 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
The SIP INVITE message after the SIP profile has been applied is shown below:
• The Cisco-Guid has been removed.
• CiscoSystemsSIP-GW-UserAgent has been replaced with -.
• The Audio-Bandwidth SDP header has been added with the value b=AS:1600.
INVITE sip:2222000020@[Link]:5060 SIP/2.0
Via: SIP/2.0/UDP [Link]:5060;branch=z9hG4bK1A203F
From: "sipp " <sip:1111000010@[Link]>;tag=F11AE0-1D8D
To: <sip:2222000020@[Link]>
Date: Mon, 29 Oct 2007 19:02:04 GMT
Call-ID: 4561B116-858811DC-804DEF2E-4CF2D71B@[Link]
Content-Length: 279
v=0
o=- 6906 8069 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 17070 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
b=AS:1600
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
160
CUBE Fundamentals and Basic Setup
Example: Sample SIP Profile for Non-Standard SIP Headers
The variable does not get copied properly between the call legs. Non-standard header to store the
value and then modify it on the out leg. An ADD operation puts new header under the content-length
header.
To store, remove and re-add the header:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
161
CUBE Fundamentals and Basic Setup
Example: Copy a User-to-User from REFER Message
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
162
CHAPTER 14
SIP Out-of-Dialog OPTIONS Ping Group
This feature groups the monitoring of SIP dial-peers endpoints and servers by consolidating dial peers with
the same SIP Out-of-Dialog (OOD) OPTIONS ping setup.
• Information About SIP Out-Of-dialog OPTIONS Ping Group, on page 163
• How to Configure SIP Out-Of-dialog OPTIONS Ping Group, on page 164
• Configuration Examples For SIP Out-of-Dialog OPTIONS Ping Group , on page 166
• Additional References, on page 168
• Feature Information for SIP Out-of-dialog OPTIONS Ping Group , on page 169
Note Configuring the same OPTIONS KEEPALIVE profile on two or more dial-peers with different bind interfaces
configured is not supported. This leads to a scenario wherein the OPTIONS SIP message is not sent from all
bind interfaces except the first configured one. But the dial-peer is always marked as ACTIVE. Similarly, it
is also not supported in multi VRF setup.
You can use the shutdown command to suspend monitoring of all dial peers associated with a keepalive
profile.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
163
CUBE Fundamentals and Basic Setup
How to Configure SIP Out-Of-dialog OPTIONS Ping Group
The new command voice-class sip options-keepalive profile tag is used to monitor a group of SIP servers
or endpoints and the existing voice-class sip options-keepalive command is used to monitor a single SIP
endpoint or server.
You can configure a server group to be a part of a SIP OODO ping group. A SIP dial peer is updated to BUSY
state only if all targets of its server group does not response to the OODO ping
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-options-keepalive keepalive-group-profile-id
4. description text
5. transport {tcp [tls] | udp | system}
6. sip-profiles profile-number
7. down-interval down-interval
8. up-interval up-interval
9. retry retry-interval
10. exit
11. dial-peer voice dial-peer-id voip
12. session protocol sipv2
13. voice-class sip options-keepalive profile keepalive-group-profile-id
14. session server-group server-group-id
15. end
16. show voice class sip-options-keepalive keepalive-group-profile-id
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
164
CUBE Fundamentals and Basic Setup
Configuring SIP Out-of-Dialog OPTIONS Ping Group
Step 3 voice class sip-options-keepalive Configures a keepalive profile and enters voice class
keepalive-group-profile-id configuration mode.
Example: • You can use the shutdown command to suspend
keepalive activity for all dial peers associated with
Device(config)# voice class sip-options-keepalive the keepalive profile.
171
Step 4 description text Configures a textual description for the keepalive heartbeat
connection.
Example:
Step 5 transport {tcp [tls] | udp | system} Defines the transport protocol used for the keepalive
heartbeat connection.
Example:
• The default value is system.
Device(config-class)# transport tcp
Step 6 sip-profiles profile-number Specifies the SIP profile that is to be used to send this
message.
Example:
• To configure a SIP profile, refer to “Configuring SIP
Device(config-class)# sip-profiles 100 Parameter Modification”.
Step 7 down-interval down-interval Configures the time (in seconds) at which an SIP OODO
ping is sent to the dial-peer endpoint when the heartbeat
Example:
connection to the endpoint is in Down status.
Device(config-class)# down-interval 35 • The default value is 30.
Step 8 up-interval up-interval Configures the time (in seconds) at which an SIP OODO
ping is sent to the dial-peer endpoint when the heartbeat
Example:
connection to the endpoint is in Up status.
Device(config-class)# up-interval 65 • The default value is 60.
Step 9 retry retry-interval Configures the maximum number of OODO ping retrials
permitted for a dial-peer destination. After receiving failed
Example:
responses for the configured number of OODO ping, the
heartbeat connection status should be switched from Up
Device(config-class)# retry 30
to Down.
• The default value is 5.
• If a successful response is received for an OODO
ping, the retry counter is set to zero.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
165
CUBE Fundamentals and Basic Setup
Configuration Examples For SIP Out-of-Dialog OPTIONS Ping Group
Device(config-class)# exit
Step 11 dial-peer voice dial-peer-id voip Defines a local dial peer and enters dial peer configuration
mode.
Example:
Step 12 session protocol sipv2 Specifies SIP version 2 as the session protocol for calls
between local and remote routers using the packet network.
Example:
Device(config-dial-peer)# session protocol sipv2
Step 13 voice-class sip options-keepalive profile Associates the dial peer with the specified keepalive group
keepalive-group-profile-id profile. The dial peer is monitored by CUBE according to
the parameters defined by this profile.
Example:
Device(config-dial-peer)# voice-class sip
options-keepalive profile 171
Step 14 session server-group server-group-id Associates the dial peer with the specified keepalive group
profile. The dial peer is monitored by the device according
Example:
to the parameters defined by this profile.
Device(config-dial-peer)# session server-group
151
Step 15 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
Step 16 show voice class sip-options-keepalive Displays information about voice class server group.
keepalive-group-profile-id
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
166
CUBE Fundamentals and Basic Setup
Configuration Examples For SIP Out-of-Dialog OPTIONS Ping Group
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
167
CUBE Fundamentals and Basic Setup
Additional References
------------------------------------------------------
Additional References
Related Documents
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
168
CUBE Fundamentals and Basic Setup
Feature Information for SIP Out-of-dialog OPTIONS Ping Group
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including [Link]
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a [Link] user
ID and password.
Table 29: Feature Information for SIP Out-of-dialog OPTIONS Ping Group
SIP Out-of-dialog OPTIONS Ping Cisco IOS XE Release 3.11S This feature groups the monitoring
Group of SIP dial peers endpoints and
15.4(1)T
servers by consolidating SIP
Out-Of-Dialog (OOD) Options of
dial peers with the similar SIP OOD
Options ping setup.
The following commands were
introduced or modified: voice class
sip-options-keepalive,
description, transport,
sip-profiles, down-interval,
up-interval, voice-class sip
options-keepalive profile, retry,
show voice class
sip-options-keepalive.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
169
CUBE Fundamentals and Basic Setup
Feature Information for SIP Out-of-dialog OPTIONS Ping Group
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
170
CHAPTER 15
Configure TCL IVR Applications
This chapter shows you how to configure Interactive Voice Response (IVR) using the Tool Command Language
(TCL) scripts. The Cisco IOS Release 12.1(3)T release introduces TCL IVR Version 2.0 with several feature
enhancements to the Cisco IVR functionality. This chapter contains the following sections:
To identify the hardware platform or software image information associated with a feature in this chapter, use
the Feature Navigator on [Link] to search for information about the feature or refer to the software release
notes for a specific release.
• Tcl IVR Overview, on page 171
• Tcl IVR Enhancements, on page 172
• RTSP Client Implementation, on page 172
• TCL IVR Prompts Played on IP Call Legs, on page 173
• TCL Verbs, on page 174
• TCL IVR Prerequisite Tasks, on page 177
• TCL IVR Configuration Tasks List, on page 177
• Configuring the Call Application for the Dial Peer, on page 178
• Configuring TCL IVR on the Inbound POTS Dial Peer, on page 181
• Configuring TCL IVR on the Inbound VoIP Dial Peer, on page 183
• Verifying TCL IVR Configuration, on page 184
• TCL IVR Configuration Examples, on page 185
• TCL IVR for Gateway1 (GW1) Configuration Example, on page 186
• TCL IVR for GW2 Configuration Example, on page 188
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
171
CUBE Fundamentals and Basic Setup
Tcl IVR Enhancements
IVR uses TCL scripts gather information and to process accounting and billing. For example, a TCL IVR
script plays when a caller receives a voice-prompt instruction to enter a specific type of information, such as
a personal identification number (PIN). After playing the voice prompt, the TCL IVR application collects the
predetermined number of touch tones and sends the collected information to an external server for user
authentication and authorization.
Note Audio playback is not supported when Secure Real-Time Transport Protocol (SRTP) is used with TCL IVR
applicatoins.
The enhancements add scalability and enable the TCL IVR scripting functionality on VoIP legs. In addition,
support for RTSP enables VoIP gateways to play messages from RTSP-compliant announcement servers.
The addition of these enhancements also reduces the CPU load and saves memory on the gateway because
no packetization is involved. Larger prompts can be played, and the use of an external audio server is allowed.
Note TCL IVR 2.0 removed the signature locking mechanism requirement.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
172
CUBE Fundamentals and Basic Setup
TCL IVR Prompts Played on IP Call Legs
Note For additional information about the dtmf-relay command, refer to the Cisco IOS Voice Command Reference
- D through I.
IVR 2.0 enables the system to accept calls initiated from the IP side of the network using G.711, and terminate
calls to the terminating gateway using the same codec. Figure 21: IVR Control of Scripts on an IP Call Leg,
on page 174 displays the TCL IVR application on the gateways controlling the scripts. IP phones can also
originate a call to a gateway running an TCL IVR script.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
173
CUBE Fundamentals and Basic Setup
TCL Verbs
TCL Verbs
TCL IVR, Version 2.0, delivers a new set of TCL verbs and scripts that replace the previous TCL version.
The new TCL verbs enable the user to:
• Utilize the RTSP audio servers
• Develop TCL scripts that interact with the IVR application
• Pass events to the Media Gateway Controller, which is a call agent
TCL IVR Version 2.0 is not backward compatible with the IVR 1.0 scripts.
Note For in-depth information about the TCL 2.0 verb set and how to develop scripts, refer to [Link] (Related
Documentation index).
TCL IVR scripts use the TCL verbs to interact with the gateway during call processing in order to collect the
required digits—for example, to request the PIN or account number for the caller. The TCL scripts are the
default scripts for all Cisco voice features using IVR. TCL scripts are configured to control calls coming into
or going out of the gateway.
Note Ensure that you have loaded the version of TCL scripts that support IVR Version 2.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
174
CUBE Fundamentals and Basic Setup
TCL Verbs
The TCL IVR scripts shown below are listed as an example of the types of scripts available to be downloaded
from the [Link] Software Center. For a complete list of scripts, it is recommended that you check the
Software Center.
Cisco provides the following IVR scripts:
• fax_hop_on_1—Collects digits from the redialer, such as account number and destination number. When
a call is placed to an H.323 network, the set of fields (configured in the call information structure) are
"entered", "destination", and "account".
• clid_authen—Authenticates the call with automatic number identification (ANI) and DNIS numbers,
collects the destination data, and makes the call.
• clid_authen_npw—Performs as clid_authen, but uses a null password when authenticating, rather than
DNIS numbers.
• clid_authen_collect—Authenticates the call with ANI and DNIS numbers and collects the destination
data. If authentication fails, it collects the account and password.
• clid_authen_col_npw—Performs as clid_authen_collect, but uses a null password and does not use or
collect DNIS numbers.
• clid_col_npw_3—Performs as clid_authen_col_npw except with that script, if authentication with the
digits collected (account and PIN) fails, the clid_authen_col_npwscript just plays a failure message
(auth_failed.au) and then hangs up. The clid_col_npw_3 script allows two failures, then plays the retry
audio file (auth_retry.au) and collects the account and PIN again.
• The caller can interrupt the message by entering digits for the account number, triggering the prompt to
tell the caller to enter the PIN. If authentication fails the third time, the script plays the audio file
auth_fail_final.au, and hangs up.
Table 30: clid_col_npw_3 Script Prompt Audio Files, on page 175 lists the prompt audio files associated with
the clid_col_npw_3script.
Table 31: Additional clid_col_npw_3 Script Audio Files, on page 175 lists additional audio files associated
with the clid_col_npw_3script.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
175
CUBE Fundamentals and Basic Setup
TCL Verbs
• clid_col_npw_npw—Tries to authenticate by using ANI, null as the user ID, user, and user password
pair. If that fails, it collects an account number and authenticates with account and null. It allows three
tries for the caller to enter the account number before ending the call with the authentication failed audio
file. If authentication succeeds, it plays a prompt to enter the destination number.
Table 32: clid_col_npw_npw Script Audio Files, on page 176 lists the audio files associated with the
clid_col_npw_npw script.
flash:enter_account.au Asks the caller to enter the account number the first
time.
• clid_col_dnis_3.tcl—Authenticates the caller ID three times. First it authenticates the caller ID with
DNIS. If that is not successful, it attempts to authenticate with the caller PIN up to three times.
• clid_col_npw_3.tcl—Authenticates with null. If authentication is not successful, it attempts to authenticate
by using the caller PIN up to 3 times.
• clid_4digits_npw_3.tcl—Authenticates with null. If the authentication is not successful, it attempts to
authenticate with the caller PIN up to 3 times using the 14-digit account number and password entered
together.
• clid_4digits_npw_3_cli.tcl— Authenticates the account number and PIN respectively by using ANI and
null. The number of digits allowed for the account number and password are configurable through the
CLI. If the authentication fails, it allows the caller to retry. The retry number is also configured through
the CLI.
• clid_authen_col_npw_cli.tcl—Authenticates the account number and PIN respectively using ANI and
null. If the authentication fails, it allows the caller to retry. The retry number is configured through the
CLI. The account number and PIN are collected separately.
• clid_authen_collect_cli.tcl—Authenticates the account number and PIN by using ANI and DNIS. If the
authentication fails, it allows the caller to retry. The retry number is configured through the CLI. The
account number and PIN are collected separately.
• clid_col_npw_3_cli.tcl—Authenticates by using ANI and null for account and PIN respectively. If the
authentication fails, it allows the caller to retry. The retry number is configured through the CLI.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
176
CUBE Fundamentals and Basic Setup
TCL IVR Prerequisite Tasks
• clid_col_npw_npw_cli.tcl—Authenticates by using ANI and null for account and PIN respectively. If
authentication fails, it allows the caller to retry. The retry number is configured through the CLI. The
account number and PIN are collected together.
Note To display the contents of the TCL IVR script, use the show call application voice command.
• Make sure that your access platform has a minimum of 16 MB Flash and 128MB of DRAM memory.
• Install and configure the appropriate RADIUS security server in your network. The version of RADIUS
that you are using must be able to support IETF-supported vendor specific attributes (VSAs), which are
implemented by using IETF RADIUS attribute 26.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
177
CUBE Fundamentals and Basic Setup
Configuring the Call Application for the Dial Peer
• Store the TCL scripts and audio files on a TFTP server configured to interact with your gateway access
server.
• Create the TCL IVR application script to use with the call application voice command when configuring
IVR using TCL scripts. You create this application first and store it on a server or location where it can
be retrieved by the access server.
• Define the call flow and pass the defined parameter values to the application. Depending on the TCL
script you select, these values can include the language of the audio file and the location of the audio
file. Table 30: clid_col_npw_3 Script Prompt Audio Files, on page 175 lists the TCL scripts and the
parameter values they require.
• Associate the application to the incoming POTS or VoIP dial peer.
Note When an IVR script is used to detect a "long #" from a caller connected to the H.323 call leg, the DTMF
method used must either be Cisco proprietary RTP or DTMF relay using H.245 signal IE. DTMF relay using
H.245 alphanumeric IE does not report the actual duration of the digit, causing long pound (#) detection to
fail.
SUMMARY STEPS
1. call application voice name url
2. call application voice name language digit language
3. call application voice name pin-length number
4. call application voice name retry-count number
5. call application voice name uid-length number
6. call application voice name set-location language category location
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
178
CUBE Fundamentals and Basic Setup
Configuring the Call Application for the Dial Peer
DETAILED STEPS
Procedure
flash:scripts/[Link]
t[Link]
[Link]
slot0:scripts/tcl/session..tcl
Note
You can only configure a url if the application named name
has not been configured.
Step 2 call application voice name language digit language Specifies the language used by the audio files. An example
is: call application voice test language 1 en. The arguments
Example:
are as follows:
Router(config)# call application voice name
language digit language • digit—Specifies zero (0) through 9.
• language—Specifies two characters that represent a
language. For example, "en" for English, "sp" for
Spanish, and "ch" for Mandarin. Enter aa to represent
all.
Step 3 call application voice name pin-length number Defines the number of characters in the PIN for the
designated application. Values are from 0 through 10.
Example:
Router(config)# call application voice name
pin-length number
Step 4 call application voice name retry-count number Defines the number of times a caller is permitted to reenter
the PIN for the designated application. Values are from 1
Example:
through 5.
Router(config)# call application voice name
retry-count number
Step 5 call application voice name uid-length number Defines the number of characters allowed to be entered for
the user ID for the designated application. Values are from
Example:
1 through 20.
Router(config)# call application voice name
uid-length number
Step 6 call application voice name set-location language category Defines the location, language, and category of the audio
location files for the designated application. An example is:
set-location en 1 t[Link] dir/audio filename.
Example:
Router(config)# call application
voicenameset-locationlanguage category location
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
179
CUBE Fundamentals and Basic Setup
Configuring the Call Application for the Dial Peer
What to do next
The following table lists TCL script names and the corresponding parameters that are required for each TCL
scripts.
clid_col_npw_3_cli.tcl Authenticates using ANI and null call application voice retry-count
for account and PIN. If the
min = 1, max = 5, default = 3
authentication fails, it allows the
caller to retry. The retry number is
configured through the CLI.
clid_col_npw_npw_cli.tcl Authenticates using ANI and null call application voice retry-count
for account and PIN. If
min = 1, max = 5, default = 3
authentication fails, it allows the
caller to retry. The retry number is
configured through the CLI. The
account number and PIN are
collected together.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
180
CUBE Fundamentals and Basic Setup
Configuring TCL IVR on the Inbound POTS Dial Peer
SUMMARY STEPS
1. aaa new-model
2. gw-accounting h323
3. aaa authentication login h323 radius
4. aaa accounting connection h323 start-stop radius
5. radius-server host ip-address auth-port number acct-port number
6. radius-server key key
7. dial-peer voice number pots
8. application name
9. destination-pattern string
10. session target
DETAILED STEPS
Procedure
Step 3 aaa authentication login h323 radius (Optional) Defines a method list called H.323 where
RADIUS is defined as the only method of login
Example:
authentication.
Router(config)# aaa authentication login h323
radius
Step 4 aaa accounting connection h323 start-stop radius (Optional) Defines a method list called H.323 where
RADIUS is used to perform connection accounting,
Example:
providing start-stop records.
Router(config)# aaa accounting connection h323
start-stop radius
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
181
CUBE Fundamentals and Basic Setup
Configuring TCL IVR on the Inbound POTS Dial Peer
Step 6 radius-server key key Specifies the password used between the gateway and the
RADIUS server.
Example:
Router(config)# radius-server key key
Step 7 dial-peer voice number pots Enters dial-peer configuration mode to configure the
incoming POTS dial peer. The number argument is a tag
Example:
that uniquely identifies the dial peer.
Router(config)# dial-peer voice number pots
Step 8 application name Associates the TCL IVR application with the incoming
POTS dial peer. Enter the selected TCL IVR application
Example:
name.
Router(dial-peer)# application name
Step 9 destination-pattern string Enters the telephone number associated with this dial peer.
The pattern argument is a series of digits that specify the
Example:
E.164 or private dialing plan telephone number. Valid
Router(config-dial-peer)# destination-pattern entries are numbers from zero (0) through nine and letters
string
from A through D. The following special characters can
be entered in the string:
• Plus sign (+)—(Optional) Indicates an E.164 standard
number. The plus sign (+) is not supported on the
Cisco MC3810 multiservice concentrator.
• string—Specifies the E.164 or private dialing plan
telephone number. Valid entries are the digits 0
through 9, the letters A through D, and the following
special characters:
• –Asterisk (*) and pound sign (#) that appear on
standard touch-tone dial pads.
• –Comma (,) inserts a pause between digits.
• –Period (.) matches any entered digit (this
character is used as a wildcard).
• T—(Optional) Indicates that the
destination-pattern value is a variable length
dial-string.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
182
CUBE Fundamentals and Basic Setup
Configuring TCL IVR on the Inbound VoIP Dial Peer
SUMMARY STEPS
1. dial-peer voice 4401 voip
2. application application-name
3. destination-pattern pattern
4. session protocol sipv2
5. session target
6. dtmf-relay cisco-rtp
7. codec g711ulaw
DETAILED STEPS
Procedure
Step 2 application application-name Specifies the name of the application and script to use.
Example:
Router(config-dial-peer)# application
application-name
Step 4 session protocol sipv2 Specifies the session protocol. The default session protocol
is H.323. The sipv2 argument enables SIP.
Example:
Router(config-dial-peer)# session protocol sipv2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
183
CUBE Fundamentals and Basic Setup
Verifying TCL IVR Configuration
Procedure
Step 1 Enter the show call application voice summary command to verify that the newly created applications are listed. The
example output follows
Router# show call application voice summary
name description
DEFAULT NEW::Basic app to do DID, or supply dialtone.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
184
CUBE Fundamentals and Basic Setup
TCL IVR Configuration Examples
name description
clid_authen_collect Authenticate with (ani, dnis), collect if that
fails
hotwo t[Link]
hoone t[Link]
hodest t[Link]
clid t[Link]
db102 t[Link]
*hw t[Link]
*hw1 t[Link]
t[Link]
Note
In the output shown, an asterisk (*) in an application indicates that this application was not loaded successfully. Use the
show call application voice command with the nameargument to view information for a particular application.
Step 2 Enter the show dial-peer voice command with the peer tag argument and verify that the application associated with the
dial peer is correct.
Step 3 Enter the show running-config command to display the entire configuration.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
185
CUBE Fundamentals and Basic Setup
TCL IVR for Gateway1 (GW1) Configuration Example
GW1
Router# show running-config
Building configuration...
Current configuration:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
186
CUBE Fundamentals and Basic Setup
TCL IVR for Gateway1 (GW1) Configuration Example
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
187
CUBE Fundamentals and Basic Setup
TCL IVR for GW2 Configuration Example
codec g711ulaw
!
dial-peer voice 102 pots
application debit_card_rtsp
incoming called-number 3450072
shutdown
destination-pattern 53.....
port 0:D
!
dial-peer voice 202 voip
shutdown
destination-pattern 34.....
session protocol sipv2
session target ipv4:[Link]
dtmf-relay cisco-rtp
codec g711ulaw
!
dial-peer voice 101 pots
application debit_card
incoming called-number 3450070
destination-pattern 53.....
port 0:D
!
gateway
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password xxx
!
ntp clock-period 17180740
ntp server [Link]
end
GW1#
GW2#
Router# show running-config
Building configuration...
Current configuration:
!
! Last configuration change at 08:41:12 PST Mon Jan 10 2000 by lab
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname GW2
!
logging buffered 100000 debugging
aaa new-model
aaa authentication login default local group radius
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
188
CUBE Fundamentals and Basic Setup
TCL IVR for GW2 Configuration Example
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
189
CUBE Fundamentals and Basic Setup
TCL IVR for GW2 Configuration Example
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
190
CUBE Fundamentals and Basic Setup
TCL IVR for GW2 Configuration Example
!
gateway
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password xxx
!
ntp clock-period 17180933
ntp server [Link]
end
GW2#
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
191
CUBE Fundamentals and Basic Setup
TCL IVR for GW2 Configuration Example
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
192
CHAPTER 16
VoIP for IPv6
This document describes VoIP in IPv6 (VoIPv6), a feature that adds IPv6 capability to existing VoIP features.
This feature adds dual-stack (IPv4 and IPv6) support on voice gateways and media termination points (MTPs),
IPv6 support for Session Initiation Protocol (SIP) trunks, and support for Skinny Client Control Protocol
(SCCP)-controlled analog voice gateways. In addition, the Session Border Controller (SBC) functionality of
connecting a SIP IPv4 or H.323 IPv4 network to a SIP IPv6 network is implemented on a Cisco UBE to
facilitate migration from VoIPv4 to VoIPv6.
• Prerequisites for VoIP for IPv6, on page 193
• Restrictions for Implementing VoIP for IPv6, on page 193
• Information About VoIP for IPv6, on page 195
• How to Configure VoIP for IPv6, on page 201
• Configuration Examples for VoIP over IPv6, on page 226
• Troubleshooting Tips for VoIP for IPv6, on page 226
• Verifying and Troubleshooting Tips, on page 227
• Feature Information for VoIP for IPv6, on page 244
Media Flow–Through
• Video call flows with Alternative Network Address Types (ANAT) are not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
193
CUBE Fundamentals and Basic Setup
Restrictions for Implementing VoIP for IPv6
• Webex call flow with ANAT is not supported (Cisco UBE does not support ANAT on Video and
Application media types).
SDP Pass-Through
• Supports only Early Offer (EO)–Early Offer (EO) and Delayed Offer (DO)–Delayed Offer (DO) call
flows.
• Delayed Offer–Early Offer call flow falls back to Delayed Offer–Delayed Offer call flow.
• Supplementary services are not supported on SDP Pass-Through.
• Transcoding and DTMF interworking are not supported.
Note The above SDP Pass–Through restrictions are applicable for both IPv4 and IPv6.
UDP Checksum
• CEF and process options are not supported on ASR1000 series routers.
• None option is partially supported on ISR–G2.
Media Anti–Trombone
• Media Anti–Trombone is not enabled if the initial call before tromboning is in Flow–Around (FA) mode.
• Media Anti–Trombone supports only symmetric media address type interworking (IPv4-IPv4 or IPv6-IPv6
media) with or without ANAT.
• Does not provide support for IPv4-IPv6 interworking cases with or without ANAT because Cisco UBE
cannot operate in FA mode post tromboning.
When dual stack is configured with preference to IPv6, crypto keys appear only under IPv6. It does not
appear under IPv4.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
194
CUBE Fundamentals and Basic Setup
Information About VoIP for IPv6
A SIP User Agent (UA) operates in one of the following three modes:
• IPv4-only: Communication with only IPv6 UA is unavailable.
• IPv6-only: Communication with only IPv4 UA is unavailable.
• Dual-stack: Communication with only IPv4, only IPv6 and dual-stack UAs are available.
Dual-stack SIP UAs use Alternative Network Address Transport (ANAT) grouping semantics:
• Includes both IPv4 and IPv6 addresses in the Session Description Protocol (SDP).
• Is automatically disabled in dual-stack mode (can be enabled if necessary).
• Requires media to be bound to an interface that have both IPv4 and IPv6 addresses.
• Described in RFC 4091 and RFC 4092 (RFC 5888 describes general SDP grouping framework).
SIP UAs use “sdp-anat” option tag in the Required and Supported SIP header fields:
• Early Offer (EO) INVITE using ANAT semantics places “sdp-anat” in the Require header.
• Delayed Offer (DO) INVITE places “sdp-anat” in the Supported header.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
195
CUBE Fundamentals and Basic Setup
SIP Voice Gateways in VoIPv6
• When ANAT is used, media addresses in SDP are chosen from the interface media that is configured.
When ANAT is not used, media addresses in SDP are chosen from the interface media that is configured
OR based on the best address to reach the destination signaling address (when no media bind is configured).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
196
CUBE Fundamentals and Basic Setup
VoIPv6 Support on Cisco UBE
the SIP session is still active. Two header fields can be defined: Session-Expires, which conveys the
lifetime of the session, and Min-SE, which conveys the minimum allowed value for the session timer.
For more information, refer to the “SIP Session Timer Support” section in the Cisco Unified Border
Element SIP Support Configuration Guide .
• SIP Media Inactivity Detection: The SIP Media Inactivity Detection Timer feature enables Cisco
gateways to monitor and disconnect VoIP calls if no Real-Time Control Protocol (RTCP) packets are
received within a configurable time period.
For more information, refer to the SIP Media Inactivity Timer section.
The SIP Voice Gateways feature is supported for analog endpoints that are connected to Foreign Exchange
Station (FXS) ports or a Cisco VG224 Analog Phone Gateway and controlled by a Cisco call-control system,
such as a Cisco Unified Communications Manager (Cisco Unified CM) or a Cisco Unified Communications
Manager Express (Cisco Unified CME).
For more information on SIP Gateway features and information about configuring the SIP voice gateway for
VoIPv6, see the c_Configuring_a_SIP_Voice_Gateway_for_IPv6_1058563.xml#con_1058563 .
Support has been added for audio calls in media Flow–Through (FT) and Flow–Around (FA) modes, High
Density (HD) transcoding, Local Transcoding Interface (LTI), along with Voice Class Codec (VCC) support,
support for Hold/Resume, REFER, re-INVITE, 302 based services, and support for media anti-trombone have
been added to Cisco UBE.
Cisco UBE being a signaling proxy processes all signaling messages for setting up media channels. This
enables Cisco UBE to affect the flow of media packets using the media flow-through and the media flow-around
modes.
• Media FT and Media FA modes support the following call flows:
• EO–to–EO
• DO–to–DO
• DO–to–EO
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
197
CUBE Fundamentals and Basic Setup
VoIPv6 Support on Cisco UBE
• Media Flow-Through (FT): In a media flow–through mode, between two endpoints, both signaling and
media flows through the IP-to-IP Gateway (IPIP GW). The IPIP GW performs both signaling and media
interworking between H.323/SIP IPv4 and SIP IPv6 networks.
Figure 23: H.323/SIP IPv4 – SIP IPv6 interworking in media flow-through mode
• Media Flow-Around (FA): Media flow–around provides the ability to have a SIP video call whereby
signaling passes through Cisco UBE and media pass directly between endpoints bypassing the Cisco
UBE.
Figure 24: H.323/SIP IPv4 - SIP IPv6 interworking in media flow-around mode
• Assisted RTCP (RTCP Keepalive): Assisted Real-time Transport Control Protocol (RTCP) enables
Cisco UBE to generate RTCP keepalive reports on behalf of endpoints; however, endpoints, such as
second generation Cisco IP phones (7940/7960) and Nortel Media Gateways (MG 1000T) do not generate
any RTCP keepalive reports. Assisted RTCPs enable customers to use Cisco UBE to interoperate between
endpoints and call control agents, such as Microsoft OCS/Lync so that RTCP reports are generated to
indicate session liveliness during periods of prolonged silence, such as call hold or call on mute.
The assisted RTCP feature helps Cisco UBE to generate standard RTCP keepalive reports on behalf of
endpoints. RTCP reports determine the liveliness of a media session during prolonged periods of silence,
such as a call on hold or a call on mute.
• SDP Pass–Through: SDP is configured to pass through transparently at the Cisco UBE, so that both
the remote ends can negotiate media independently of the Cisco UBE.
SDP pass-through is addressed in two modes:
• Flow-through—Cisco UBE plays no role in the media negotiation, it blindly terminates and
re-originates the RTP packets irrespective of the content type negotiated by both the ends. This
supports address hiding and NAT traversal.
• Flow-around—Cisco UBE neither plays a part in media negotiation, nor does it terminate and
re-originate media. Media negotiation and media exchange is completely end-to-end.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
198
CUBE Fundamentals and Basic Setup
VoIPv6 Support on Cisco UBE
For more information, refer to the “Configurable Pass-through of SIP INVITE Parameters” section in
the Cisco Unified Border Element SIP Support Configuration Guide .
• UDP Checksum for IPv6: User Datagram Protocol (UDP) checksums provide data integrity for addressing
different functions at the source and destination of the datagram, when a UDP packet originates from an
IPv6 node.
• IP Toll Fraud:The IP Toll Fraud feature checks the source IP address of the call setup before routing
the call. If the source IP address does not match an explicit entry in the configuration as a trusted VoIP
source, the call is rejected.
For more information, refer to the “Configuring Toll Fraud Prevention” section in the Cisco Unified
Communications Manager Express System Administrator Guide .
• RTP Port Range: Provides the capability where the port range is managed per IP address range. This
features solves the problem of limited number of rtp ports for more than 4000 calls. It enables combination
of an IP address and a port as a unique identification for each call.
• Hold/Resume: Cisco UBE supports supplementary services such as Call Hold and Resume. An active
call can be put in held state and later the call can be resumed.
For more information, refer to the “Configuring Call Hold/Resume for Shared Lines for Analog Ports”
section in Supplementary Services Features for FXS Ports on Cisco IOS Voice Gateways Configuration
Guide .
• Call Transfer (re-INVITE, REFER): Call transfer is used for conference calling, where calls can
transition smoothly between multiple point-to-point links and IP level multicasting.
For more information, refer to the “Configurable Pass-through of SIP INVITE Parameters” section in
the Cisco Unified Border Element SIP Support Configuration Guide .
• Call Forward (302 based): SIP provides a mechanism for forwarding or redirecting incoming calls. A
Universal Access Servers (UAS) can redirect an incoming INVITE by responding with a 302 message
(moved temporarily).
• Consumption of 302 at stack level is supported for EO-EO, DO-DO and DO-EO calls for all
combination of IPv4/IPv6/ANAT.
• Consumption of 302 at stack level is supported for both FT and FA calls.
For more information, refer to the “ Configuring Call Transfer and Forwarding” section in Cisco Unified
Communications Manager Express System Administrator Guide .
• Media Antitrombone: Antitromboning is a media signaling service in SIP entity to overcome the media
loops. Media Trombones are media loops in a SIP entity due to call transfer or call forward. Media loops
in Cisco UBE are not detected because Cisco UBE looks at both call types as individual calls and not
calls related to each other.
Antitrombone service has to be enabled only when no media interworking is required in both legs. Media
antitrombone is supported only when the initial call is in IPv4 to IPv4 or IPv6 to IPv6 mode only.
For more information, refer to the “Configuring Media Antitrombone” section in the Cisco Unified
Border Element Protocol-Independent Features and Setup Configuration Guide .
• RE-INVITE Consumption: The Re-INVITE/UPDATE consumption feature helps to avoid
interoperability issues by consuming the mid-call Re-INVITEs/UPDATEs from Cisco UBE. As Cisco
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
199
CUBE Fundamentals and Basic Setup
VoIPv6 Support on Cisco UBE
UBE blocks RE-INVITE / mid-call UPDATE, remote participant is not made aware of the SDP changes,
such as Call Hold, Call Resume, and Call transfer.
For more information, refer to the “Cisco UBE Mid-call Re-INVITE/UPDATE Consumption” section
in the Cisco Unified Border Element Protocol-Independent Features and Setup Configuration Guide .
• Address Hiding: The address hiding feature ensures that the Cisco UBE is the only point of signaling
and media entry/exit in all scenarios. When you configure address-hiding, signaling and media peer
addresses are also hidden from the endpoints, especially for supplementary services when the Cisco UBE
passes REFER/3xx messages from one leg to the other.
For more information, refer to the “Configuring Address Hiding” section in the SIP-to-SIP Connections
on a Cisco Unified Border Element .
• Header Passing: Header Pass through enables header passing for SIP INVITE, SUBSCRIBE and
NOTIFY messages; disabling header passing affects only incoming INVITE messages. Enabling header
passing results in a slight increase in memory and CPU utilization.
For more information, refer to the “SIP-to-SIP Connections on a Cisco Unified Border Element” section
in the SIP-to-SIPConnections on Cisco Unified Border Element .
• Refer–To Passing: The Refer-to Passing feature is enabled when you configure refer-to-passing in Refer
Pass through mode and the supplementary service SIP Refer is already configured. This enables the
received refer-to header in Refer Pass through mode to move to the outbound leg without any modification.
However, when refer-to-passing is configured in Refer Consumption mode without configuring the
supplementary-service SIP Refer, the received Refer-to URI is used in the request-URI of the triggered
invite.
For more information, refer to the “Configuring Support for Dynamic REFER Handling on Cisco UBE”
section in the Cisco Unified Border Element SIP Configuration Guide .
• Error Pass-through: The SIP error message pass through feature allows a received error response from
one SIP leg to pass transparently over to another SIP leg. This functionality will pass SIP error responses
that are not yet supported on the Cisco UBE or will preserve the Q.850 cause code across two sip call-legs.
For more information, refer to the “Configuring SIP Error Message Passthrough” section in the Cisco
Unified Border Element SIP Support Configuration Guide .
• SIP UPDATE Interworking: The SIP UPDATE feature allows a client to update parameters of a session
(such as, a set of media streams and their codecs) but has no impact on the state of a dialog. UPDATE
with SDP will support SDP Pass through, media flow around and media flow through. UPDATE with
SDP support for SIP to SIP call flows is supported in the following scenarios:
• Early Dialog SIP to SIP media changes.
• Mid Dialog SIP to SIP media changes.
For more information, refer to the “SIP UPDATE Message per RFC 3311” section in the Cisco Unified
Border Element SIP Support Configuration Guide .
• SIP OPTIONS Ping: The OPTIONS ping mechanism monitors the status of a remote Session Initiation
Protocol (SIP) server, proxy or endpoints. Cisco UBE monitors these endpoints periodically.
For more information, refer to the “Cisco UBE Out-of-dialog OPTIONS Ping for Specified SIP Servers
or Endpoints” section in the Configuration of SIP Trunking for PSTN Access (SIP-to-SIP) Configuration
Guide .
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
200
CUBE Fundamentals and Basic Setup
How to Configure VoIP for IPv6
• Configurable Error Response Code in OPTIONS Ping: Cisco UBE provides an option to configure
the error response code when a dial peer is busied out because of an Out-of-Dialog OPTIONS ping
failure.
For more information, refer to the “Configuring an Error Response Code upon an Out-of-Dialog OPTIONS
Ping Failure” section in the Cisco Unified Border Element SIP Support Configuration Guide .
• SIP Profiles: SIP profiles create a set of provisioning properties that you can apply to SIP trunk.
• Dynamic Payload Type Interworking (DTMF and Codec Packets): The Dynamic Payload Type
Interworking for DTMF and Codec Packets for SIP-to-SIP Calls feature provides dynamic payload type
interworking for dual tone multifrequency (DTMF) and codec packets for Session Initiation Protocol
(SIP) to SIP calls. The Cisco UBE interworks between different dynamic payload type values across the
call legs for the same codec. Also, Cisco UBE supports any payload type value for audio, video, named
signaling events (NSEs), and named telephone events (NTEs) in the dynamic payload type range 96 to
127.
For more information, refer to the “Dynamic Payload Type Interworking for DTMF and Codec Packets
for SIP-to-SIP Calls” section in the Cisco Unified Border Element (Enterprise) Protocol-Independent
Features and Setup Configuration Guide .
• Audio Transcoding using Local Transcoding Interface (LTI): Local Transcoding Interface (LTI) is
an interface created to remove the requirement of SCCP client for Cisco UBE transcoding.
For information, refer to Cisco Unified Border Element 9.0 Local Transcoding Interface (LTI) .
• Voice Class Codec (VCC) with or without Transcoding: The Voice Class Codec feature supports
basic and all Re-Invite based supplementary services like call-hold/resume, call forward, call transfer,
where if any mid-call codec changes, Cisco UBE inserts/removes/modifies the transcoder as needed.
Support for negotiation of an Audio Codec on each leg of a SIP–SIP call on the Cisco UBE feature
supports negotiation of an audio codec using the Voice Class Codec (VCC) infrastructure on Cisco UBE.
VCC supports SIP-SIP calls on Cisco UBE and allows mid-call codec change for supplementary services.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
201
CUBE Fundamentals and Basic Setup
Shutting Down or Enabling VoIPv6 Service on Cisco Gateways
A Cisco Unified Border Element can interoperate between H.323/SIP IPv4 and SIP IPv6 networks in media
flow-through mode. In media flow-through mode, both signaling and media flows through the Cisco Unified
Border Element, and the Cisco Unified Border Element performs both signaling and media interoperation
between H.323/SIP IPv4 and SIP IPv6 networks (see the figure below).
Figure 25: H.323/SIP IPv4--SIP IPv6 Interoperating in Media Flow-Through Mode
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. shutdown [ forced]
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
202
CUBE Fundamentals and Basic Setup
Shutting Down or Enabling VoIPv6 Submodes on Cisco Gateways
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. call service stop [forced]
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config-voi-serv)# sip
Step 5 call service stop [forced] Shuts down or enables VoIPv6 for the selected submode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
203
CUBE Fundamentals and Basic Setup
Configuring the Protocol Mode of the SIP Stack
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. protocol mode ipv4 | ipv6 | dual-stack [preference {ipv4 | ipv6}]}
DETAILED STEPS
Procedure
Device> enable
Device(config)# sip-ua
Step 4 protocol mode ipv4 | ipv6 | dual-stack [preference {ipv4 Configures the Cisco IOS SIP stack in dual-stack mode.
| ipv6}]}
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
204
CUBE Fundamentals and Basic Setup
Enabling ANAT Mode
Device(config)# sip-ua
Device(config-sip-ua)# protocol mode dual-stack preference ipv6
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. anat
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config-voi-serv)# sip
Device(conf-serv-sip)# anat
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
205
CUBE Fundamentals and Basic Setup
Verifying SIP Gateway Status
SUMMARY STEPS
1. show sip-ua calls
2. show sip-ua connections
3. show sip-ua status
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
206
CUBE Fundamentals and Basic Setup
Verifying SIP Gateway Status
Use the show sip-ua connections command to display SIP UA transport connection tables:
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
207
CUBE Fundamentals and Basic Setup
RTCP Pass-Through
RTCP Pass-Through
IPv4 and IPv6 addresses embedded within RTCP packets (for example, RTCP CNAME) are passed on to
Cisco UBE without being masked. These addresses are masked on the Cisco UBE ASR 1000.
The Cisco UBE ASR 1000 does not support printing of RTCP debugs.
Note RTCP is passed through by default. No configuration is required for RTCP pass-through.
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. protocol mode {ipv4 | ipv6 | dual-stack {preference {ipv4 | ipv6}}
5. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
208
CUBE Fundamentals and Basic Setup
Verifying RTP Pass-Through
SUMMARY STEPS
1. debug voip rtcp packets
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
209
CUBE Fundamentals and Basic Setup
Configuring the Source IPv6 Address of Signaling and Media Packets
8:5:21B:D4FF:FEDD:35F0
*Feb 14 06:24:58.919:
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. bind {control | media | all} source interface interface-id [ipv6-address ipv6-address]
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
210
CUBE Fundamentals and Basic Setup
Configuring the SIP Server
Device(config-voi-serv)# sip
Step 5 bind {control | media | all} source interface interface-id Binds the source address for signaling and media packets
[ipv6-address ipv6-address] to the IPv6 address of a specific interface.
Example:
Example: Configuring the Source IPv6 Address of Signaling and Media Packets
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
211
CUBE Fundamentals and Basic Setup
Configuring the Session Target
Device(config)# sip-ua
Step 4 sip-server {dns: host-name] | ipv4: ipv4–address | ipv6: Configures a network address for the SIP server interface.
[ipv6-address] :[port-nums]}
Example:
Step 5 keepalive target {{ipv4 : address | ipv6 : address}[: port] Identifies SIP servers that will receive keepalive packets
| dns : hostname} [ tcp [tls]] | udp] [secondary] from the SIP gateway.
Example:
Device(config)# sip-ua
Device(config-sip-ua)# sip-server ipv6: 2001:DB8:0:0:8:800:200C:417A
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
212
CUBE Fundamentals and Basic Setup
Configuring SIP Register Support
Step 3 dial-peer voice tag {mmoip | pots | vofr | voip} Defines a particular dial peer, specifies the method of voice
encapsulation, and enters dial peer configuration mode.
Example:
Step 4 destination pattern [+ string T Specifies either the prefix or the full E.164 telephone
number to be used for a dial peer.
Example:
Step 5 session target {ipv4: destination-address| ipv6: [ Designates a network-specific address to receive calls from
destination-address ]| dns : $s$. | $d$. | $e$. | $u$.] a VoIP or VoIPv6 dial peer.
host-name | enum:table -num | loopback:rtp | ras|
sip-server} [: port
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
213
CUBE Fundamentals and Basic Setup
Configuring SIP Register Support
DETAILED STEPS
Procedure
Device> enable
Device(config)# sip-ua
Step 4 registrar {dns: address | ipv4: destination-address [: port] Enables SIP gateways to register E.164 numbers on behalf
| ipv6: destination-address : port] } aor-domain expires of analog telephone voice ports, IP phone virtual voice
seconds [tcp tls] ] type [secondary] [scheme string] ports, and SCCP phones with an external SIP proxy or SIP
registrar.
Example:
Step 5 retry register retries Configures the total number of SIP register messages that
the gateway should send.
Example:
Step 6 timers register milliseconds Configures how long the SIP UA waits before sending
register requests.
Example:
Device(config)# sip-ua
Device(config-sip-ua)# registrar ipv6: 2001:DB8:0:0:8:800:200C:417A expires 3600 secondary
Device(config-sip-ua)# retry register 10
Device((config-sip-ua)# timers register 500
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
214
CUBE Fundamentals and Basic Setup
Configuring Outbound Proxy Server Globally on a SIP Gateway
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config-voi-serv)# sip
Step 5 outbound-proxy {ipv4: ipv4-address | ipv6: ipv6-address Specifies the SIP outbound proxy globally for a Cisco IOS
| dns: host : domain} [: port-number] voice gateway using an IPv6 address.
Example:
Device(config-serv-sip)#outbound-proxy ipv6:
2001:DB8:0:0:8:800:200C:417A
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
215
CUBE Fundamentals and Basic Setup
Configuring UDP Checksum
DETAILED STEPS
Procedure
Device> enable
Step 3 ipv6 udp checksum [process | cef | none] Configures UDP checksum for Cisco UBE so that when
you enable UDP checksum, it is computed and added for
Example:
outgoing media packets. Similarly, disable the command
to ignore the checksum calculation.
Device(config)# ipv6 udp checksum process
Use the following keywords with the ipv6 udp checksum
command:
• process: Packets are punted to the process switching
path for checksum validation.
• cef: The UDP checksum validation is done in the CEF
path.
• none: UDP checksum validation is not done for
received media packets in the CEF path and there is
no UDP checksum computation for transmitted media
packets.
Device(config)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
216
CUBE Fundamentals and Basic Setup
Configuring IP Toll Fraud
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Step 4 ip address trusted list Enters IP address trusted list configuration mode. You can
add unique and multiple IP addresses for incoming VoIP
Example:
(H.323/SIP) calls to a list of trusted IP addresses.
Device(config-voi-serv)# ip address trusted list
Step 5 ipv6 X:X:X:X::X Enters IPv6 addresses for toll fraud prevention.
Example:
Step 6 end Exits trusted list configuration mode and returns to global
configuration mode.
Example:
Device(cfg-iptrust-list)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
217
CUBE Fundamentals and Basic Setup
Configuring the RTP Port Range for an Interface
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Step 4 allow-connections sip to sip Allows sip-to-sip connections under voice service voip
configuration mode for Cisco UBE.
Example:
Step 5 media-address range range Configures the media-address range, which enables the
media gateway to allocate the available free port for a given
Example:
IP address within the address range.
Device(config-voi-serv)# media-address range
2001:DB8::/48
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
218
CUBE Fundamentals and Basic Setup
Configuring Message Waiting Indicator Server Address
Device(config-voi-ser)# exit
Step 8 dial-peer voice tag voip Enters dial peer configuration mode.
Example:
Step 9 voice–class sip bind media source–interface interface Matches the local SIP bind media IP address to the IP
address range entries. Binds media packets to the IPv4 or
Example:
IPv6 address of a specific interface and specifies an
interface as the source address of SIP packets.
Device(config-dial-peer)# voice-class sip bind
media source-interface GigabitEthernet 0
Step 10 end Exits dial peer configuration mode and returns to global
configuration mode.
Example:
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
219
CUBE Fundamentals and Basic Setup
Configuring Voice Ports
DETAILED STEPS
Procedure
Device> enable
Device(config)# sip-ua
Step 4 mwi-server {ipv4: destination-address | ipv6: Configures voice-mail server settings on a voice gateway
destination-address | dns: host–name} peer-tag or user agent.
[output-dial-peer-tag]
• ipv4/ ipv6: destination-address—IP address of the
Example: voice-mail server.
• dns: host-name—Host device housing the domain
Device(config-sip-ua)# mwi-server ipv6 name server that resolves the name of the voice-mail
2001:DB8::/48 peer-tag 3 server. The argument should contain the complete
hostname to be associated with the target address; for
example, dns:[Link].
• peer-tag—Attaches an existing dial peer to SIP MWI
service.
Device(config-sip-ua)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
220
CUBE Fundamentals and Basic Setup
Configuring Cisco UBE Mid-call Re-INVITE Consumption
DETAILED STEPS
Procedure
Device> enable
Device(config)# voice-port 3
Step 4 vmwi [fsk | dc-voltage] Enables either Frequency–Shift Keying (FSK) visible
message waiting indication (VMWI) or DC voltage on a
Example:
Cisco VG224 onboard analog FXS voice port. VMWI is
configured automatically when MWI is configured on the
Device(config-voiceport)# vmwi fsk
voice port.
• If an FSK phone is connected to the voice port, use
the fsk keyword. Similarly, if a DC voltage phone is
connected to the voice port, use the dc–voltage
keyword.
Device(config-voiceport)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. Configure passthrough of mid-call signaling changes only when bidirectional media is added.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
221
CUBE Fundamentals and Basic Setup
Configuring Passthrough SIP Messages at Dial Peer Level
DETAILED STEPS
Procedure
Step 3 Configure passthrough of mid-call signaling changes only Re-Invites are passed through only when bidirectional media
when bidirectional media is added. is added.
• In Global VoIP SIP configuration mode
midcall-signaling passthru media-change
• In dial-peer configuration mode
voice-class sip midcall-signaling passthru
media-change
Example:
In Global VoIP SIP configuration mode:
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# midcall-signaling passthru
media-change
Example:
In Dial-peer configuration mode:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip
midcall-signaling passthru media-change
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
222
CUBE Fundamentals and Basic Setup
Configuring H.323 IPv4-to-SIPv6 Connections in a Cisco UBE
Note If the Cisco UBE Mid-call Re-INVITE/UPDATE consumption feature is configured on global and dial-peer
level, dial-peer level takes precedence.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice dial-peer tag voip
4. voice-class sip mid-call signaling passthru media-change
5. exit
DETAILED STEPS
Procedure
Step 3 dial-peer voice dial-peer tag voip Enters dial-peer voice configuration mode.
Example:
Device(config)# dial-peer voice 2 voip
Step 4 voice-class sip mid-call signaling passthru media-change Passes through SIP messages that involve media change.
Example:
Device(config-dial-peer)# voice-class sip mid-call
signaling passthru media-change
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
223
CUBE Fundamentals and Basic Setup
Configuring H.323 IPv4-to-SIPv6 Connections in a Cisco UBE
Figure 26: Cisco UBE Interoperating IPv4 Networks with IPv6 Service Provider
A Cisco UBE can interoperate between H.323/SIP IPv4 and SIP IPv6 networks in media flow-through mode.
In media flow-through mode, both signaling and media flows through the Cisco UBE, and the Cisco UBE
performs both signaling and media interoperation between H.323/SIP IPv4 and SIP IPv6 networks (see the
figure below).
Figure 27: IPv4 to IPv6 Media Interoperating Through Cisco IOS MTP
The Cisco UBE feature adds IPv6 capability to existing VoIP features. This feature adds dual-stack support
on voice gateways and MTP, IPv6 support for SIP trunks, and SCCP-controlled analog voice gateways. In
addition, the SBC functionality of connecting SIP IPv4 or H.323 IPv4 network to a SIP IPv6 network is
implemented on an Cisco UBE to facilitate migration from VoIPv4 to VoIPv6.
Note A Cisco UBE interoperates between H.323/SIP IPv4 and SIP IPv6 networks only in media flow-through
mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
224
CUBE Fundamentals and Basic Setup
Configuring H.323 IPv4-to-SIPv6 Connections in a Cisco UBE
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. allow-connections from type to to type
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Step 4 allow-connections from type to to type Allows connections between specific types of endpoints in
a VoIPv6 network.
Example:
Arguments are as follows:
Device(config-voi-serv)# allow-connections h323 to
sip • from-type --Type of connection. Valid values: h323,
sip.
• to-type --Type of connection. Valid values: h323, sip.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
225
CUBE Fundamentals and Basic Setup
Configuration Examples for VoIP over IPv6
Device(config)# sip-ua
Device(config-sip-ua)# protocol mode dual-stack preference ipv6
Media Flow-Around
To enable all Session Initiation Protocol (SIP)-related debugging, use the debug ccsip all command.
To trace the execution path through the call control application programming interface (CCAPI), use the
debug voip ccapi inout command.
SDP Pass-Through
To enable all Session Initiation Protocol (SIP)-related debugging (when the call is active in Pass through
mode), use the debug ccsip all command.
VMWI SIP
To collect debug information only for signaling events, use the debug vpm signal command.
To show all Session Initiation Protocol (SIP) Service Provider Interface (SPI) message tracing, use the debug
ccsip messages command.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
226
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Tips
SUMMARY STEPS
1. show call active voice brief
2. show call active voice compact
3. show voip rtp connections
DETAILED STEPS
Procedure
long duration call detected:<y/n> long duration call duration :<sec> timestamp:<time>
LostPacketRate:<%> OutOfOrderRate:<%>
MODEMPASS <method> buf:<fills>/<drains> loss <overall%> <multipkt>/<corrected>
last <buf event time>s dur:<Min>/<Max>s
FR <protocol> [int dlci cid] vad:<y/n> dtmf:<y/n> seq:<y/n>
<codec> (payload size)
ATM <protocol> [int vpi/vci cid] vad:<y/n> dtmf:<y/n> seq:<y/n>
<codec> (payload size)
Tele <int> (callID) [channel_id] tx:<tot>/<v>/<fax>ms <codec> noise:<l> acom:<l> i/o:<l>/<l> dBm
MODEMRELAY info:<rcvd>/<sent>/<resent> xid:<rcvd>/<sent> total:<rcvd>/<sent>/<drops>
speeds(bps): local <rx>/<tx> remote <rx>/<tx>
Proxy <ip>:<audio udp>,<video udp>,<tcp0>,<tcp1>,<tcp2>,<tcp3> endpt: <type>/<manf>
bw: <req>/<act> codec: <audio>/<video>
tx: <audio pkts>/<audio bytes>,<video pkts>/<video bytes>,<t120 pkts>/<t120 bytes>
rx: <audio pkts>/<audio bytes>,<video pkts>/<video bytes>,<t120 pkts>/<t120 bytes>
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
227
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
0 : 987 361904110ms.1 (16:01:10.557 IST Tue May 14 2013) +530 pid:1 Answer 1005 connected
dur 00:00:56 tx:1082/173120 rx:1141/182560 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP 2001:1111:2222:3333:4444:5555:6666:1012:38356 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms
g711ulaw TextRelay: off Transcoded: No
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
0 : 988 361904120ms.1 (16:01:10.567 IST Tue May 14 2013) +510 pid:2 Originate 2005 connected
dur 00:00:56 tx:1141/182560 rx:1082/173120 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP 2001:1111:2222:3333:4444:5555:6666:1012:26827 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms
g711ulaw TextRelay: off Transcoded: No
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
-------------------------------------------------------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
228
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
SUMMARY STEPS
1. debug ccsip message
2. show voip rtp connections
DETAILED STEPS
Procedure
v=0
o=CiscoSystemsSIP-GW-UserAgent 4604 5397 IN IP6 2001:DB8:C18:2:219:2FFF:FE89:7928
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1 2
m=audio 16970 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 17066 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:219:2FFF:FE89:7928
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
229
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
v=0
o=CiscoSystemsSIP-GW-UserAgent 3184 51 IN IP4 [Link]
s=SIP Call
c=IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
t=0 0
a=group:ANAT 1 2
m=audio 16438 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 16440 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
230
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
231
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 435
v=0
o=CiscoSystemsSIP-GW-UserAgent 8213 2783 IN IP4 [Link]
s=SIP Call
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
t=0 0
a=group:ANAT 1
m=audio 17200 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 0 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
v=0
o=CiscoSystemsSIP-GW-UserAgent 8884 4606 IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
232
CUBE Fundamentals and Basic Setup
Verifying and Troubleshooting Cisco UBE ANAT Flow-Through Call
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1
m=audio 16436 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 0 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
233
CUBE Fundamentals and Basic Setup
Verifying Cisco UBE ANAT Flow-Around Calls
SUMMARY STEPS
1. debug ccsip message
2. show voip rtp connections
DETAILED STEPS
Procedure
v=0
o=CiscoSystemsSIP-GW-UserAgent 9103 1209 IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1 2
m=audio 18706 RTP/AVP 18 0 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
m=audio 16384 RTP/AVP 18 0 19
c=IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
234
CUBE Fundamentals and Basic Setup
Verifying Cisco UBE ANAT Flow-Around Calls
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
v=0
o=CiscoSystemsSIP-GW-UserAgent 9582 2407 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1 2
m=audio 18706 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 16384 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
a=mid:2
a=rtpmap:18 G729/8000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
235
CUBE Fundamentals and Basic Setup
Verifying Cisco UBE ANAT Flow-Around Calls
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
236
CUBE Fundamentals and Basic Setup
Verifying Cisco UBE ANAT Flow-Around Calls
v=0
o=CiscoSystemsSIP-GW-UserAgent 2764 5975 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1
m=audio 17278 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 0 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
237
CUBE Fundamentals and Basic Setup
Verifying Cisco UBE ANAT Flow-Around Calls
Require: sdp-anat
Server: Cisco-SIPGateway/IOS-15.2.20120528.102328.
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 421
v=0
o=CiscoSystemsSIP-GW-UserAgent 9047 741 IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
s=SIP Call
c=IN IP4 [Link]
t=0 0
a=group:ANAT 1
m=audio 17278 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20
m=audio 0 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
238
CUBE Fundamentals and Basic Setup
Verifying VMWI SIP
DETAILED STEPS
Procedure
Note
The debug ccsip messages command shows the SIP Messages, such as Subscribe and Notify.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
239
CUBE Fundamentals and Basic Setup
Verifying SDP Passthrough Configuration
DETAILED STEPS
Procedure
Received:
INVITE sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]:5060 SIP/2.0
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:33FF:FEB1:B440]:5060;branch=z9hG4bK20277F
Remote-Party-ID: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;party=calling;screen=no;privacy=off
From: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;tag=59283684-0
To: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>
Date: Fri, 08 Jun 2012 11:01:48 GMT
Call-ID: 2D6EEC84-B09011E1-8235D9DB-F669887E@2001:DB8:C18:2:223:33FF:FEB1:B440
Supported: 100rel,timer,resource-priority,replaces
Require: sdp-anat
Min-SE: 1800
Cisco-Guid: 2131649325-2962952673-2175336473-0797538600
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1339153308
Contact: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 488
v=0
o=CiscoSystemsSIP-GW-UserAgent 7132 4992 IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
s=SIP Call
c=IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
t=0 0
a=group:ANAT 1 2
m=audio 16406 RTP/AVP 18 0 19
c=IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
m=audio 18024 RTP/AVP 18 0 19
c=IN IP4 [Link]
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
240
CUBE Fundamentals and Basic Setup
Verifying SDP Passthrough Configuration
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:33FF:FEB1:B440]:5060;branch=z9hG4bK20277F
From: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;tag=59283684-0
To: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>
Date: Fri, 08 Jun 2012 10:53:14 GMT
Call-ID: 2D6EEC84-B09011E1-8235D9DB-F669887E@2001:DB8:C18:2:223:33FF:FEB1:B440
Timestamp: 1339153308
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.20120528.102328.
Content-Length: 0
Sent:
INVITE sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]:5060 SIP/2.0
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:4FF:FEAC:4540]:5060;branch=z9hG4bK15D1013
Remote-Party-ID: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;party=calling;screen=no;privacy=off
From: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE624-253A
To: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>
Date: Fri, 08 Jun 2012 10:53:14 GMT
Call-ID: FB05CC74-B08E11E1-82C1F4DD-5665AA1B@2001:DB8:C18:2:223:4FF:FEAC:4540
Supported: timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 2131649325-2962952673-2175336473-0797538600
User-Agent: Cisco-SIPGateway/IOS-15.2.20120528.102328.
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1339152794
Contact: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 443
v=0
o=CiscoSystemsSIP-GW-UserAgent 7132 4992 IN IP6 2001:DB8:C18:2:223:33FF:FEB1:B440
s=SIP Call
t=0 0
a=group:ANAT 1 2
m=audio 16712 RTP/AVP 18 0 19
c=IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
m=audio 16714 RTP/AVP 18 0 19
c=IN IP4 [Link]
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
241
CUBE Fundamentals and Basic Setup
Verifying SDP Passthrough Configuration
To: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>
Date: Fri, 08 Jun 2012 12:15:49 GMT
Call-ID: FB05CC74-B08E11E1-82C1F4DD-5665AA1B@2001:DB8:C18:2:223:4FF:FEAC:4540
Timestamp: 1339152794
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-[Link].T
Content-Length: 0
Received:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:4FF:FEAC:4540]:5060;branch=z9hG4bK15D1013
From: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE624-253A
To: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>;tag=994FD4C0-90B
Date: Fri, 08 Jun 2012 12:15:49 GMT
Call-ID: FB05CC74-B08E11E1-82C1F4DD-5665AA1B@2001:DB8:C18:2:223:4FF:FEAC:4540
Timestamp: 1339152794
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>;party=called;screen=no;privacy=off
Contact: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]:5060>
Server: Cisco-SIPGateway/IOS-[Link].T
Content-Length: 0
Sent:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:33FF:FEB1:B440]:5060;branch=z9hG4bK20277F
From: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;tag=59283684-0
To: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE658-2545
Date: Fri, 08 Jun 2012 10:53:14 GMT
Call-ID: 2D6EEC84-B09011E1-8235D9DB-F669887E@2001:DB8:C18:2:223:33FF:FEB1:B440
Timestamp: 1339153308
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;party=called;screen=no;privacy=off
Contact: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]:5060>
Server: Cisco-SIPGateway/IOS-15.2.20120528.102328.
Content-Length: 0
Received:
SIP/2.0 200 OK
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:4FF:FEAC:4540]:5060;branch=z9hG4bK15D1013
From: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE624-253A
To: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>;tag=994FD4C0-90B
Date: Fri, 08 Jun 2012 12:15:49 GMT
Call-ID: FB05CC74-B08E11E1-82C1F4DD-5665AA1B@2001:DB8:C18:2:223:4FF:FEAC:4540
Timestamp: 1339152794
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>;party=called;screen=no;privacy=off
Contact: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]:5060>
Supported: replaces
Require: sdp-anat
Server: Cisco-SIPGateway/IOS-[Link].T
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 434
v=0
o=CiscoSystemsSIP-GW-UserAgent 5870 3683 IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
242
CUBE Fundamentals and Basic Setup
Verifying SDP Passthrough Configuration
s=SIP Call
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
t=0 0
a=group:ANAT 1
m=audio 17424 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
m=audio 0 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:2
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
Sent:
ACK sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]:5060 SIP/2.0
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:4FF:FEAC:4540]:5060;branch=z9hG4bK15E99E
From: <sip:1001@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE624-253A
To: <sip:6000@[2001:DB8:C18:2:217:59FF:FEDE:8898]>;tag=994FD4C0-90B
Date: Fri, 08 Jun 2012 10:53:14 GMT
Call-ID: FB05CC74-B08E11E1-82C1F4DD-5665AA1B@2001:DB8:C18:2:223:4FF:FEAC:4540
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:33FF:FEB1:B440]:5060;branch=z9hG4bK20277F
From: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;tag=59283684-0
To: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE658-2545
Date: Fri, 08 Jun 2012 10:53:14 GMT
Call-ID: 2D6EEC84-B09011E1-8235D9DB-F669887E@2001:DB8:C18:2:223:33FF:FEB1:B440
Timestamp: 1339153308
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;party=called;screen=no;privacy=off
Contact: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]:5060>
Supported: replaces
Supported: sdp-anat
Server: Cisco-SIPGateway/IOS-15.2.20120528.102328.
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 389
v=0
o=CiscoSystemsSIP-GW-UserAgent 5870 3683 IN IP6 2001:DB8:C18:2:217:59FF:FEDE:8898
s=SIP Call
t=0 0
a=group:ANAT 1
m=audio 16710 RTP/AVP 18 19
c=IN IP6 2001:DB8:C18:2:223:4FF:FEAC:4540
a=mid:1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
m=audio 0 RTP/AVP 18 19
c=IN IP4 [Link]
a=mid:2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
243
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
Received:
ACK sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]:5060 SIP/2.0
Via: SIP/2.0/UDP [2001:DB8:C18:2:223:33FF:FEB1:B440]:5060;branch=z9hG4bK203700
From: <sip:1001@[2001:DB8:C18:2:223:33FF:FEB1:B440]>;tag=59283684-0
To: <sip:6000@[2001:DB8:C18:2:223:4FF:FEAC:4540]>;tag=5EAE658-2545
Date: Fri, 08 Jun 2012 11:01:48 GMT
Call-ID: 2D6EEC84-B09011E1-8235D9DB-F669887E@2001:DB8:C18:2:223:33FF:FEB1:B440
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
244
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco UBE support for IPv6 12.4(22)T Cisco Unified Border Element
(Cisco UBE) support for SIP
IPv4-IPv6 dual stack and IPv4 and
IPv6 capability provides the
following functionality:
• Translation of SIP IPv4 to
IPv6 addresses
• Administration and
enforcement of policies for the
IPv4/IPv6 mode of operation
of each component.
• Supports the following
scenarios: H.323 IPv4 to SIP
IPv6; SIP IPv4 to SIP IPv6,
SIP IPv6 to SIP IPv6
• DTMF: Interworking
capability on Cisco UBE
(H.245 Signal, RFC 2833, SIP
Notify, Key Press Markup
Language,H.323 to SIP, RFC
2833 to G.711 Inband)
• IPv6 topology hiding and
demarcation
• SIP Options-ping
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
245
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
246
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
247
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
248
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
249
CUBE Fundamentals and Basic Setup
Feature Information for VoIP for IPv6
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
250
CHAPTER 17
Monitoring of Phantom Packets
The Monitoring of Phantom Packets feature allows you to configure port ranges specific to the VoIP Real-Time
Transport Protocol (RTP) layer. This allows the VoIP RTP layer to safely drop packets without proper sessions
(phantom packets) received on these ports of the Cisco Unified Border Element (CUBE) or Voice time-division
multiplexing (TDM) gateways. Because the ports are configured specifically for the VoIP RTP layer, punting
the packets to UDP process is not required. This helps in reducing the performance issues.
• Restrictions of Monitoring of Phantom Packets, on page 251
• Information About Monitoring of Phantom Packets, on page 252
• How to Configure Monitoring of Phantom Packets, on page 252
• Configuration Examples For Monitoring of Phantom Packets, on page 254
• Additional References for Configurable Pass-Through of SIP INVITE Parameters, on page 254
• Feature Information for Monitoring of Phantom Packets, on page 255
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
251
CUBE Fundamentals and Basic Setup
Information About Monitoring of Phantom Packets
the port range of the media address. As a result, the signaling packets do not get punted up to the RP,
and get dropped by the media packet filter. This may result in events such as incomplete TCP handshakes
during the second leg of a call through CUBE or Voice Gateways.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
252
CUBE Fundamentals and Basic Setup
Configuring Monitoring of Phantom Packets
DETAILED STEPS
Procedure
Step 3 voice service voip Specifies VoIP encapsulation and enters voice-service
configuration mode.
Example:
Device(config)# voice service voip
Step 4 media-address range starting-ip-address Configures an IPv4 or IPv6 media address range. And,
ending-ip-address port range starting-port-number creates a port range for the configured media addresses.
ending-port-number
Note
Example: If you do not configure any port range, the default port
range is applied. The default port range is 8000-48198 for
Using IPv4 addresses:
ASR and ISR G3 platforms, and 16384-32766 for ISR G2
For single IP: platforms.
Device(conf-voi-serv)# media-address range [Link]
[Link]
Example:
Using IPv6 addresses:
For single IP:
Device(conf-voi-serv)# media-address range
2001:DB8:1::1 2001:DB8:1::1
Example:
Port range for media address.
Device(cfg-media-addr-range)# port-range 8000 48198
Step 5 port-range starting-port-number ending-port-number Configures a port range. If you do not configure any port
range nothing is applied.
Example:
Device(cfg-media-addr-range)# port-range 8000 48198 Note
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
253
CUBE Fundamentals and Basic Setup
Configuration Examples For Monitoring of Phantom Packets
Note The ports from 21643 to 21845 are not used by the RTP layer. They might be used by applications
such as AAA/Radius. These ports are allowed to be punted to the control plane if needed.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
254
CUBE Fundamentals and Basic Setup
Feature Information for Monitoring of Phantom Packets
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including [Link]
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a [Link] user
ID and password.
Monitoring of Phantom Packets Cisco IOS XE Release 3.9S This feature allows you to
configure port ranges specific to the
15.4(1)T
VoIP Real-Time Transport Protocol
(RTP) layer and drop phantom RTP
packets (RTP packets that are
configured in valid port range but
for which there is no matching call
or session).
The following commands were
introduced: port-range,
media-address range.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
255
CUBE Fundamentals and Basic Setup
Feature Information for Monitoring of Phantom Packets
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
256
CHAPTER 18
Configurable SIP Parameters via DHCP
The Configurable SIP Parameters via DHCP feature allows a Dynamic Host Configuration Protocol (DHCP)
server to provide Session Initiation Protocol (SIP) parameters via a DHCP client. These parameters are used
for user registration and call routing.
The DHCP server returns the SIP Parameters via DHCP options 120 and 125. These options are used to specify
the SIP user registration and call routing information. The SIP parameters returned are the SIP server address
via Option 120, and vendor-specific information such as the pilot, contract or primary number, an additional
range of secondary numbers, and the SIP domain name via Option 125.
In the event of changes to the SIP parameter values, this feature also allows a DHCP message called
DHCPFORCERENEW to reset or apply a new set of values.
The SIP parameters provisioned by DHCP are stored, so that on reboot they can be reused.
• Finding Feature Information, on page 257
• Prerequisites for Configurable SIP Parameters via DHCP, on page 257
• Restrictions for Configurable SIP Parameters via DHCP, on page 258
• Information About Configurable SIP Parameters via DHCP, on page 258
• How to Configure SIP Parameters via DHCP, on page 262
• Feature Information for Configurable SIP Parameters via DHCP, on page 269
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
257
CUBE Fundamentals and Basic Setup
Restrictions for Configurable SIP Parameters via DHCP
Cisco Unified Border Element Support for Configurable SIP Parameters via DHCP
The Cisco Unified Border Element provides the support for the DHCP provisioning of the SIP parameters.
The NGN is modeled using SIP as a VoIP protocol. In order to connect to NGN, the User to Network Interface
(UNI) specification is used. Cisco TelePresence Systems (CTS), consisting of an IP Phone, a codec, and Cisco
Unified Communications Manager, are required to internetwork over the NGN for point-to-point and
point-to-multipoint video calls. Because Cisco Unified Communications Manager does not provide a UNI
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
258
CUBE Fundamentals and Basic Setup
Information About Configurable SIP Parameters via DHCP
interface, there has to be an entity to provide the UNI interface. The Cisco Unified Border Element provides
the UNI interface and has several advantages such as demarcation, delayed offer to early offer, and registration.
The figure below shows the Cisco Unified Border Element providing the UNI interface for the NGN.
Figure 28: Cisco NGN with Cisco Unified Border Element providing UNI interface
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
259
CUBE Fundamentals and Basic Setup
Information About Configurable SIP Parameters via DHCP
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
260
CUBE Fundamentals and Basic Setup
Information About Configurable SIP Parameters via DHCP
The DHCP messages involved in provisioning the SIP parameters are described in Steps 1 to 6.
1. F1: The Cisco Unified Border Element DHCP client sends a DHCPDISCOVER message to find the
available NGN DHCP servers on the network and obtain a valid IPv4 address. The Cisco Unified Border
Element DHCP client identity (computer name) and MAC address are included in this message.
2. F2: The Cisco Unified Border Element DHCP client receives a DHCPOFFER message from each available
NGN DHCP server. The DHCPOFFER message includes the offered DHCP server’s IPv4 address, the
DHCP client’s MAC address, and other configuration parameters.
3. F3: The Cisco Unified Border Element DHCP client selects an NGN DHCP server and its IPv4 address
configuration from the DHCPOFFER messages it receives, and sends a DHCPREQUEST message
requesting its usage. Note that this is where Cisco Unified Border Element requests SIP server information
via DHCP Option 120 and vendor- identifying information via DHCP Option 125.
4. F4: The chosen NGN DHCP server assigns its IPv4 address configuration to the Cisco Unified Border
Element DHCP client by sending a DHCPACK message to it. The Cisco Unified Border Element DHCP
client receives the DHCPACK message. This is where the SIP server address, phone number and domain
name information are received via DHCP options 120 and 125. The Cisco Unified Border Element will
use the information for registering the phone number and routing INVITE messages to the given SIP
server.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
261
CUBE Fundamentals and Basic Setup
How to Configure SIP Parameters via DHCP
5. F5: When NGN has a change of information or additional information (such as changing SIP server
address from [Link] to [Link]) for assigning to Cisco Unified Border Element, the DHCP server initiates
DHCPFORCERENEW to the Cisco Unified Border Element. If the authentication is successful, the Cisco
Unified Border Element DHCP client accepts the DHCPFORCERENEW and moves to the next stage of
sending DHCPREQUEST. Otherwise DHCPFORCERENEW is ignored and the current information is
retained and used.
6. F6 and F7: In response to DHCPFORCERENEW, similar to steps F3 and F4, the Cisco Unified Border
Element requests DHCP Options 120 and 125. Upon getting the response, SIP will apply these parameters
if they are different by sending an UN-REGISTER message for the previous phone number and a
REGISTER message for the new number. Similarly, a new domain and SIP server address will be used.
If the returned information is the same as the current set, it is ignored and hence registration and call
routing remains the same.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. ip dhcp client request sip-server-address
5. ip dhcp client request vendor-identifying-specific
6. ip address dhcp
7. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
262
CUBE Fundamentals and Basic Setup
Configuring the DHCP Client Example
DETAILED STEPS
Procedure
Router> enable
Step 3 interface type number Configures an interface type and enters interface
configuration mode.
Example:
Step 4 ip dhcp client request sip-server-address Configures the DHCP client to request a SIP server address
from a DHCP server.
Example:
Step 5 ip dhcp client request vendor-identifying-specific Configures the DHCP client to request vendor-specific
information from a DHCP server.
Example:
Step 6 ip address dhcp Acquires an IP address on the interface from the DHCP.
Example:
Router(config-if)# exit
Router> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
263
CUBE Fundamentals and Basic Setup
Enabling the SIP Configuration
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. sip-ua
5. dhcp interface type number
6. registrar dhcp expires seconds random-contact refresh-ratio seconds
7. credentials dhcp password [0| 7] password realm domain-name
8. exit
DETAILED STEPS
Procedure
Router> enable
Step 3 interface type number Configures an interface type and enters interface
configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
264
CUBE Fundamentals and Basic Setup
Enabling the SIP Configuration Example
Router(config-if)# sip-ua
Step 5 dhcp interface type number Assigns a specific interface for DHCP provisioning of SIP
parameters.
Example:
• Multiple interfaces on the CUBE can be configured
Router(sip-ua)# dhcp interface gigabitethernet 0/0 with DHCP--this command specifies the DHCP
interface used with SIP.
Step 6 registrar dhcp expires seconds random-contact Registers E.164 numbers on behalf of analog telephone
refresh-ratio seconds voice ports (FXS) and IP phone virtual voice ports (EFXS)
with an external SIP proxy or SIP registrar server.
Example:
• expires seconds --Specifies the default registration
Router(sip-ua)# registrar dhcp expires 100 time, in seconds. Range is 60 to 65535. Default is
random-contact refresh-ratio 90 3600.
• refresh-ratio seconds --Specifies the refresh-ratio,
in seconds. Range is 1 to 100 seconds. Default is 80.
Step 7 credentials dhcp password [0| 7] password realm Sends a SIP registration message from a Cisco Unified
domain-name Border Element in the UP state.
Example:
Router(sip-ua)# exit
Router> enable
Router# configure terminal
Router(config)# interface gigabitethernet 1/0
Router(config-if)# sip-ua
Router(sip-ua)# dhcp interface gigabitethernet 1/0
Router(sip-ua)# registrar dhcp expires 90 random-contact refresh-ratio 90
Router(sip-ua)# credentials dhcp password cisco realm [Link]
Router(sip-ua)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
265
CUBE Fundamentals and Basic Setup
Troubleshooting Tips
Troubleshooting Tips
To display information on DHCP and SIP interaction when SIP parameters are provisioned by DHCP, use
the debug ccsip dhcp command in privileged EXEC mode.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. outbound-proxy dhcp
6. exit
DETAILED STEPS
Procedure
Router> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
266
CUBE Fundamentals and Basic Setup
Configuring a SIP Outbound Proxy Server in Voice Service VoIP Configuration Mode Example
Router(config-voi-srv)# sip
Step 5 outbound-proxy dhcp Configures the DHCP client to request a SIP server address
from a DHCP server.
Example:
Router(config-serv-sip)# exit
Router> enable
Router# configure terminal
Configuring a SIP Outbound Proxy Server and Session Target in Dial Peer
Configuration Mode
Perform this task to configure the SIP server as a SIP outbound proxy server in dial peer configuration mode.
Note SIP must be configured on the dial pier before DHCP is configured. Therefore the session protocol sipv2
command must be executed before the session target dhcp command. DHCP is supported only with SIP
configured on the dial peer.
>
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
267
CUBE Fundamentals and Basic Setup
Configuring a SIP Outbound Proxy Server and Session Target in Dial Peer Configuration Mode
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice number voip
4. session protocol sipv2
5. voice-class sip outbound-proxy dhcp
6. session target dhcp
7. exit
DETAILED STEPS
Procedure
Router> enable
Step 3 dial-peer voice number voip Defines a dial peer, specifies VoIP as the method of voice
encapsulation, and enters dial peer configuration mode.
Example:
Step 4 session protocol sipv2 Enters the session protocol type as SIP.
Example:
Step 5 voice-class sip outbound-proxy dhcp Configures the SIP server received from the DHCP server
as a SIP outbound proxy server.
Example:
Step 6 session target dhcp Specifies that the DHCP protocol is used to determine the
IP address of the session target.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
268
CUBE Fundamentals and Basic Setup
Configuring a SIP Outbound Proxy Server in Dial Peer Configuration Mode Example
Router(config-dial-peer)# exit
Router> enable
Router# configure terminal
Router(config)# dial-peer voice 11 voip
Router(config-dial-peer)# session protocol sipv2
Table 36: Feature Information for Configurable SIP Parameters via DHCP
Configurable SIP 12.4(22)YB The Configurable SIP Parameters via DHCP feature introduces
Parameters via DHCP 15.0(1)M the configuring of SIP parameters via DHCP.
The following commands were introduced or modified:
credentials (sip-ua), debug ccsip dhcp, dhcp interface, ip
dhcp-client forcerenew, outbound-proxy, registrar, session
target (VoIP dial peer), show sip dhcp, voice-class sip
outbound-proxy.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
269
CUBE Fundamentals and Basic Setup
Feature Information for Configurable SIP Parameters via DHCP
Table 37: Feature Information for Configurable SIP Parameters via DHCP
Configurable SIP IOS XE Release The Configurable SIP Parameters via DHCP feature introduces
Parameters via DHCP 3.17S the configuring of SIP parameters via DHCP.
The following commands were introduced or modified:
credentials (sip-ua), debug ccsip dhcp, dhcp interface, ip
dhcp-client forcerenew, outbound-proxy, registrar, session
target (VoIP dial peer), show sip dhcp, voice-class sip
outbound-proxy.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
270
PA R T II
Dial Peer Enhancements
• Matching Inbound Dial Peers by URI, on page 273
• URI-Based Dialing Enhancements, on page 277
• Multiple Pattern Support on a Voice Dial Peer, on page 291
• Outbound Dial-Peer Group as an Inbound Dial-Peer Destination, on page 299
• Inbound Leg Headers for Outbound Dial-Peer Matching, on page 309
• Server Groups in Outbound Dial Peers, on page 319
• Domain-Based Routing Support on the Cisco UBE, on page 329
• ENUM Enhancement per Kaplan Draft RFC, on page 337
CHAPTER 19
Matching Inbound Dial Peers by URI
The Matching Inbound Dial Peers by URI feature allows you to configure the selection of inbound dial peers
by matching parts of the URI sent by a remote (neighboring) SIP entity. The match can be done on different
parts of the URI like hostname, IP address, DNS name. This feature can be used to configure configuration
policies, enforce specific call-treatment, security, and routing policies on each SIP trunk by originating SIP
entity.
In a scenario where multiple SIP hops are involved in a call, there would be multiple via headers involved,
and the topmost via header of an incoming SIP invite represents the last hop that forwarded the SIP request,
and the bottom-most via header would represent the originator of the SIP request. This feature supports
matching by the last hop that forwarded the request (neighboring SIP entity), which is the topmost via header.
Note For incoming dial-peer match based on URI, if there are multiple dial-peer matches, then the longest matching
dial-peer is chosen (similar to multiple dial-peer match based on incoming called number). However for URI
pattern match, there is no match length and hence this is the least preferred.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
273
Dial Peer Enhancements
Configuring an Inbound Dial Peer to Match on URI
5. exit
6. dial-peer voice tag voip
7. session protocol sipv2
8. incoming uri { from | request | to | via} voice-class-uri-tag
9. end
DETAILED STEPS
Procedure
Device> enable
Step 3 voice class uri voice-class-uri-tag Creates a voice class for matching SIP dial peers and enters
voice URI class configuration mode.
Example:
Step 4 Specify a URI field for the voice class: • You can specify up to ten instances of the host ipv4:,
host ipv6:, and host dns: commands.
• host hostname-pattern
• host ipv4: ipv4-address • You can specify only one instance of the host
• host ipv6: ipv6-address hostname-pattern commands.
• host dns: dns-address • Length of uri-pattern, username-pattern, and
• pattern uri-pattern hostname-pattern should be less than 32.
• user-id username-pattern
• username-pattern is matched against the username
Example: field of the URI.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
274
Dial Peer Enhancements
Examples for Configuring an Inbound Dial Peer to Match on a URI
Device(config-voice-uri-class)# exit
Step 6 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 7 session protocol sipv2 Configures SIP as the session protocol type.
Example:
Step 8 incoming uri { from | request | to | via} voice-class-uri-tag Configures the voice class with an inbound dial peer, so
that it is matches against configured URI fields.
Example:
Step 9 end Exits dial peer voice configuration mode and enters
privileged EXEC mode.
Example:
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
275
Dial Peer Enhancements
Examples for Configuring an Inbound Dial Peer to Match on a URI
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
276
CHAPTER 20
URI-Based Dialing Enhancements
The URI-Based Dialing Enhancements feature describes the enhancements made to Uniform Resource Identifier
(URI)-based dialing on Cisco Unified Border Element (CUBE) for Session Initiation Protocol (SIP) calls.
The URI-Based Dialing Enhancements feature includes support for call routing on Cisco UBE when the user
part of the incoming Request-URI is non-E164 (for example, INVITE sip:user@[Link]).
• Feature Information for URI-Based Dialing Enhancements, on page 277
• Information About URI-Based Dialing Enhancements, on page 278
• How to Configure URI-Based Dialing Enhancements, on page 281
• Configuration Examples for URI-Based Dialing Enhancements, on page 288
• Additional References for URI-Based Dialing Enhancements, on page 290
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
277
Dial Peer Enhancements
Information About URI-Based Dialing Enhancements
Note The minimum supported release of Cisco IOS required for URI based call routing on dial-peers is Cisco IOS
XE Gibraltar Release 16.12. You must configure the 'call-route-url' on the outgoing dial-peers to properly
route the refer-to headers based on the URI matching.
The primary use of URI-based dialing is peer-to-peer calling between enterprises using complete URI addresses
(that is, ‘username@host’). The host part of the URI identifies the destination to which the call should be
routed. In earlier Cisco Unified Border Element (Cisco UBE) URI routing, the URI was replaced in the SIP
header with the destination server IP address. Then routing of calls was based on the following restrictions:
• The user part of the incoming Request-URI must be an E164 number.
• The outgoing Request-URI is always set to the session target information of the outbound dial peer.
The URI-Based Dialing Enhancements feature extends support for Cisco UBE URI-based routing of calls.
With these enhancements Cisco UBE supports:
• URI-based routing when the user part of the incoming Request-URI is non-E164 (for example, INVITE
sip:user@[Link]).
• URI-based routing when the user part is not present. The user part is an optional parameter in the URI
(for example, INVITE sip:[Link]).
• Copying the outgoing Request-URI and To header from the inbound Request-URI and To header
respectively.
• Deriving (optionally) the session target for the outbound dial peer from the host portion of the inbound
URI.
• URI-based routing for 302, Refer, and Bye Also scenarios.
• Call hunting where the subsequent dial peer is selected based on URI.
• Pass through of 302, with the host part of Contact: unmodified.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
278
Dial Peer Enhancements
Call Flows for URI-Based Dialing Enhancements
Case 2: Incoming Request-URI does not contain user part. The To: header information is also copied from
the peer leg when the requri-passing command is enabled.
Case 3: The old behavior of setting the outbound Request-URI to session target is retained when the
requri-passing command is not enabled.
Case 4: The session target derived from the host part of the URI. The outgoing INVITE is sent to resolved IP
address of the host part of the URI.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
279
Dial Peer Enhancements
Call Flows for URI-Based Dialing Enhancements
Case 6: In 302 pass-through, contact header can be passed through from one leg to another by using the
contact-passing command.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
280
Dial Peer Enhancements
How to Configure URI-Based Dialing Enhancements
Configuring Pass Though of Request URI and To Header URI (Global Level)
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. requri-passing
6. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
281
Dial Peer Enhancements
Configuring Pass Though of Request URI and To Header URI (Dial Peer Level)
Step 5 requri-passing Enables pass through of the host part of the Request-URI
and To SIP headers. By default, Cisco UBE sets the host
Example:
part of the URI to the value configured under the session
Router(conf-serv-sip)# requri-passing target of the outbound dial peer.
Configuring Pass Though of Request URI and To Header URI (Dial Peer Level)
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class uri tag sip
4. host hostname-pattern
5. exit
6. dial-peer voice tag voip
7. session protocol sipv2
8. destination uri tag
9. session target ipv4:ip-address
10. voice-class sip requri-passing [system]
11. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
282
Dial Peer Enhancements
Configuring Pass Though of Request URI and To Header URI (Dial Peer Level)
Step 3 voice class uri tag sip Creates a voice class for matching dial peers to a Session
Initiation Protocol (SIP) and enters voice URI class
Example:
configuration mode.
Device(config)# voice class uri mydesturi sip
Step 4 host hostname-pattern Matches a call based on the host field in a SIP Uniform
Resource Identifier (URI).
Example:
Device(config-voice-uri-class)# host [Link]
Step 6 dial-peer voice tag voip Defines a VoIP dial peer and enters dial peer configuration
mode.
Example:
Device(config)# dial-peer voice 22 voip
Step 7 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the Internet Engineering Task Force
Example:
(IETF) SIP.
Device(config-dial-peer)# session protocol sipv2
Step 8 destination uri tag Specifies the voice class used to match a dial peer to the
destination URI of an outgoing call.
Example:
Device(config)# destination uri mydesturi
Step 9 session target ipv4:ip-address Designates a network-specific address to receive calls from
a VoIP.
Example:
Device(config-dial-peer)# session target
ipv4:[Link]
Step 10 voice-class sip requri-passing [system] Enables the pass through of SIP URI headers.
Example:
Device(config-dial-peer)# voice-class sip
requri-passing system
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
283
Dial Peer Enhancements
Configuring Pass Through of 302 Contact Header
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. contact-passing
6. end
DETAILED STEPS
Procedure
Step 3 voice service voip Specifies VoIP encapsulation and enters voice service
configuration mode.
Example:
Device(config)# voice service voip
Step 5 contact-passing Enables pass through of the contact header from one leg to
the other leg in 302 pass through scenario.
Example:
Router(conf-serv-sip)# contact-passing
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
284
Dial Peer Enhancements
Configuring Pass Through of 302 Contact Header (Dial Peer Level)
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class uri destination-tag sip
4. user-id id-tag
5. exit
6. voice service voip
7. allow-connections sip to sip
8. dial-peer voice tag voip
9. session protocol sipv2
10. destination uri destination-tag
11. voice-class sip contact-passing
12. end
DETAILED STEPS
Procedure
Step 3 voice class uri destination-tag sip Creates a voice class for matching dial peers to a Session
Initiation Protocol (SIP) and enters voice URI class
Example:
configuration mode.
Device(config)# voice class uri mydesturi sip
Step 4 user-id id-tag Matches a call based on the User ID portion of the Uniform
Resource Identifier (URI).
Example:
Device(config-voice-uri-class)# user-id 5678
Step 6 voice service voip Specifies Voice over IP (VoIP) as the voice encapsulation
type and enters voice service configuration mode.
Example:
Device(config)# voice service voip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
285
Dial Peer Enhancements
Deriving of Session Target from URI
Step 8 dial-peer voice tag voip Defines a VoIP dial peer and enters dial peer configuration
mode.
Example:
Device(config)# dial-peer voice 200 voip
Step 9 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the Internet Engineering Task Force
Example:
(IETF) SIP.
Device(config-dial-peer)# session protocol sipv2
Step 10 destination uri destination-tag Specifies the voice class used to match a dial peer to the
destination URI of an outgoing call.
Example:
Device(config-dial-peer)# destination uri
mydesturi
Step 11 voice-class sip contact-passing Enables pass through of the contact header from one leg
to the other leg in 302 pass through scenario.
Example:
Device(config-dial-peer)# voice-class sip
contact-passing
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class uri destination-tag sip
4. host hostname-pattern
5. exit
6. dial-peer voice tag voip
7. session protocol sipv2
8. destination uri destination-tag
9. session target sip-uri
10. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
286
Dial Peer Enhancements
Deriving of Session Target from URI
DETAILED STEPS
Procedure
Step 3 voice class uri destination-tag sip Creates or modifies a voice class for matching dial peers
to a Session Initiation Protocol (SIP) or telephone (TEL)
Example:
Uniform Resource Identifier (URI) and enters voice URI
Device(config)# voice class uri mydesturi sip class configuration mode.
Step 4 host hostname-pattern Matches a call based on the host field in a SIP URI.
Example:
Device(config-voice-uri-class)# host
[Link]
Step 6 dial-peer voice tag voip Defines a VoIP dial peer and enters dial peer configuration
mode.
Example:
Device(config)# dial-peer voice 25 voip
Step 7 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the Internet Engineering Task Force
Example:
(IETF) SIP.
Device(config-dial-peer)# session protocol sipv2
Step 8 destination uri destination-tag Specifies the voice class used to match a dial peer to the
destination URI of an outgoing call.
Example:
Device(config-dial-peer)# destination uri
mydesturi
Step 9 session target sip-uri Derives session target from incoming URI.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
287
Dial Peer Enhancements
Configuration Examples for URI-Based Dialing Enhancements
Step 11 voice class uri source-tag sip Creates or modifies a voice class for matching dial peers
to a SIP or TEL URI and enters voice URI class
Example:
configuration mode.
Device(config)# voice class uri mysourceuri sip
Step 12 host hostname-pattern Matches a call based on the host field in a SIP URI.
Example:
Device(config-voice-uri-class)# host [Link]
Example: Configuring Pass Though of Request URI and To Header URI (Dial Peer Level)
! Configuring URI voice class destination
Device(config)# voice class uri mydesturi sip
Device(config-voice-uri-class)# host [Link]
Device(config-voice-uri-class)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
288
Dial Peer Enhancements
Example: Configuring Pass Through of 302 Contact Header
Example: Configuring Pass Through of 302 Contact Header (Dial Peer Level)
! Configuring URI voice class destination
Device> enable
Device# configure terminal
Device(config)# voice class uri mydesturi sip
Device(config-voice-uri-class)# user-id 5678
Device(config-voice-uri-class)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
289
Dial Peer Enhancements
Additional References for URI-Based Dialing Enhancements
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including [Link]
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a [Link] user
ID and password.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
290
CHAPTER 21
Multiple Pattern Support on a Voice Dial Peer
The Multiple Pattern Support on a Voice Dial Peer feature enables you to configure multiple patterns on a
VoIP dial peer using an E.164 pattern map. A dial peer can be configured to match multiple patterns to an
incoming calling or called number or an outgoing destination number.
• Feature Information for Multiple Pattern Support on a Voice Dial Peer, on page 291
• Restrictions for Multiple Pattern Support on a Voice Dial Peer, on page 292
• Information About Multiple Pattern Support on a Voice Dial Peer, on page 292
• Configuring Multiple Pattern Support on a Voice Dial Peer, on page 292
• Verifying Multiple Pattern Support on a Voice Dial Peer, on page 295
• Configuration Examples for Multiple Pattern Support on a Voice Dial Peer, on page 296
Table 39: Feature Information for Multiple Pattern Support on a Voice Dial Peer
Configuring Multiple Pattern Cisco IOS 15.4 (1)T This feature was extended for
Support on a Voice Dial Peer inbound VoIP dial peers for
Cisco IOS XE 3.11S
(Inbound Calls) incoming calling and called
numbers.
The following commands were
introduced or modified: incoming
called e164-pattern-map,
incoming calling
e164-pattern-map
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
291
Dial Peer Enhancements
Restrictions for Multiple Pattern Support on a Voice Dial Peer
Configuring Multiple Pattern Cisco IOS 15.2(4)M This feature allows you to add more
Support on a Voice Dial Peer than one E.164 destination pattern
Cisco IOS XE 3.7S
(Outbound Calls) inside a pattern map and configure
that pattern map for one or more
VoIP dial peers.
This feature is supported for
outbound peers only.
The following commands were
introduced or modified: destination
e164-pattern-map, e164, show
voice class e164-pattern-map, url,
voice class e164-pattern-map
load, voice class
e164-pattern-map.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
292
Dial Peer Enhancements
Configuring Multiple Pattern Support on a Voice Dial Peer
2. configure terminal
3. voice class e164-pattern-map pattern-map-id
4. Do one of the following:
• e164 pattern-map-tag
• url url
5. (Optional) description string
6. exit
7. dial-peer voice dial-peer-id voip
8. {destination | incoming called | incoming calling} e164-pattern-map pattern-map-group-id
9. end
10. (Optional) voice class e164-pattern-map load pattern-map-group-id
11. show dial-peer voice [summary | dial-peer-id]
DETAILED STEPS
Procedure
Device> enable
Step 3 voice class e164-pattern-map pattern-map-id Creates a pattern map for configuring one or multiple E.164
patterns on a dial peer and enters voice class configuration
Example:
mode.
Device(config)# voice class e164-pattern-map 1111
Step 4 Do one of the following: Configure one or more E.164 telephone number prefix
match patterns for the pattern map.
• e164 pattern-map-tag
• url url • Repeat this step for each pattern if you are using the
e164 command.
Example:
Using URL text file: • You can specify a file URL containing the patterns
for this dial peer using the url url command. You
must then load the E.164 telephone prefixes using
Device(voice-class)# url
[Link]
Step 10. The file can be internal (on the device) or
external.
Directly specifying match patterns:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
293
Dial Peer Enhancements
Configuring Multiple Pattern Support on a Voice Dial Peer
Step 5 (Optional) description string Provides a description for the pattern map.
Example:
Step 6 exit Exits voice class configuration mode and enters global
configuration mode.
Example:
Device(voice-class)# exit
Step 7 dial-peer voice dial-peer-id voip Defines a VoIP dial peer and enters dial peer configuration
mode.
Example:
Step 8 {destination | incoming called | incoming calling} Links a pattern-map group with a dial peer.
e164-pattern-map pattern-map-group-id
• Use the destination keyword for outbound dial peers.
Example:
• Use the incoming called or incoming calling
Device(config-dial-peer)# incoming calling
keywords for inbound dial peers using called or
e164-pattern-map 1111 calling numbers.
Step 9 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
Step 10 (Optional) voice class e164-pattern-map load Loads the specified pattern map with E.164 match patterns
pattern-map-group-id from a text file configured in the pattern map.
Example: • This step is required only if patterns have been
defined for the specified pattern map using a file URL
Device# voice class e164-pattern-map load 1111 in Step 4.
Step 11 show dial-peer voice [summary | dial-peer-id] Displays the status of a pattern map when the pattern map
is associated with a dial peer.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
294
Dial Peer Enhancements
Verifying Multiple Pattern Support on a Voice Dial Peer
DETAILED STEPS
Procedure
e164-pattern-map 200
-----------------------------------------
It has 1 entries
It is not populated from a file.
Map is valid.
E164 pattern
-------------------
200
VoiceOverIpPeer1234567
peer type = voice, system default peer = FALSE, information type = voice,
description = `',
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
295
Dial Peer Enhancements
Configuration Examples for Multiple Pattern Support on a Voice Dial Peer
Example: Configuring Multiple Patterns for Outbound Dial Peers by Specifying Each E164 Pattern
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
296
Dial Peer Enhancements
Configuration Examples for Multiple Pattern Support on a Voice Dial Peer
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
297
Dial Peer Enhancements
Configuration Examples for Multiple Pattern Support on a Voice Dial Peer
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
298
CHAPTER 22
Outbound Dial-Peer Group as an Inbound
Dial-Peer Destination
This feature can group multiple outbound dial peers into a dial-peer group and configure this dial-peer group
as the destination of an inbound dial peer.
• Feature Information for Outbound Dial-Peer Group as an Inbound Dial-Peer Destination, on page 299
• Restrictions, on page 300
• Information About Outbound Dial-Peer Group as an Inbound Dial-Peer Destination, on page 300
• Configuring Outbound Dial-Peer Group as an Inbound Dial-Peer Destination, on page 301
• Verifying Outbound Dial-Peer Groups as an Inbound Dial-Peer Destination, on page 303
• Troubleshooting Tips, on page 304
• Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination, on page
305
Table 40: Feature Information for Outbound Dial-Peer Group as an Inbound Dial-Peer Destination
Support for POTS dial-peer Cisco IOS 15.5(1)T An outgoing POTS dial peer can be
part of a dial-peer group. An
Cisco IOS XE 3.14S
inbound POTS dial peer can have
a dial-peer group as the destination.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
299
Dial Peer Enhancements
Restrictions
Outbound Dial-Peer Group as an Cisco IOS 15.4(1)T This feature groups multiple
Inbound Dial-Peer Destination outbound dial-peers into a dial-peer
Cisco IOS XE 3.11S
group and configures this dial-peer
group as a destination of an
inbound dial peer.
The following commands were
introduced or modified: voice class
dpg, description, dial-peer
preference, destination dpg, show
voice class dpg.
Restrictions
• If a dial-peer group is in the shutdown state, regular dial-peer search occurs.
• If all dial-peers in an active dial-peer group are unavailable, call is disconnected.
• The number of matched digits is zero.
• The destination-pattern command is required on the outbound dial-peer even though matching is not
done based on this command.
• The outgoing call setup is deferred until inter-digit timer expires or a terminator is entered.
• Dial-peer group works only with valid E.164 pattern.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
300
Dial Peer Enhancements
Configuring Outbound Dial-Peer Group as an Inbound Dial-Peer Destination
You can also specify various dial-peer hunt mechanism using the existing dial-peer hunt command.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice outbound-dial-peer-id [voip | pots]
4. destination-pattern pattern
5. no digit-strip for POTS dial peers.
6. exit
7. (Optional) dial-peer hunt hunt-order-number
8. voice class dpg dial-peer-group-id
9. dial-peer outbound-dial-peer-id [preference preference-order]
10. (Optional) description string
11. exit
12. dial-peer voice inbound-dial-peer-id [voip | pots]
13. destination dpg dial-peer-group-id
14. end
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
301
Dial Peer Enhancements
Configuring Outbound Dial-Peer Group as an Inbound Dial-Peer Destination
Step 3 dial-peer voice outbound-dial-peer-id [voip | pots] Defines a dial peer and enters dial peer configuration mode.
Example:
For VoIP dial peer:
Example:
For POTS dial peer:
Step 4 destination-pattern pattern Configures a destination pattern. This step is required even
though the value is not used for dial-peer matching.
Example:
For VoIP Dial Peers
Device(config-dial-peer)# destination-pattern 1004
Example:
For POTS Dial Peers
Device(config-dial-peer)# destination-pattern .T
Step 5 no digit-strip for POTS dial peers. Disable unexpected dialed digit strip.
Example:
Device(config-dial-peer)# no digit-strip
Device(config-dial-peer)# exit
Step 7 (Optional) dial-peer hunt hunt-order-number Specifies a hunt selection mechanism for dial peers.
Example: • The default mechanism is random selection.
Step 8 voice class dpg dial-peer-group-id Creates a dial-peer group for grouping multiple outbound
dial peers and enters voice class configuration mode.
Example:
• You can use the shutdown command to resume
Device(config)# voice class dpg 181 regular outbound dial-peer provisioning in dial-peers
with this dial-peer group as destination.
Step 9 dial-peer outbound-dial-peer-id [preference Associates a configured outbound dial peer with this
preference-order] dial-peer group and configures a preference value.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
302
Dial Peer Enhancements
Verifying Outbound Dial-Peer Groups as an Inbound Dial-Peer Destination
Step 10 (Optional) description string Provides a description for the dial-peer group.
Example:
Step 11 exit Exits voice class configuration mode and enters global
configuration mode.
Example:
Device(config-class)# exit
Step 12 dial-peer voice inbound-dial-peer-id [voip | pots] Defines a dial peer and enters dial peer configuration mode.
Example:
For VoIP dial peer:
Example:
For POTS dial peer:
Step 13 destination dpg dial-peer-group-id Specifies a dial peer group from which an outbound dial
peer can be chosen.
Example:
Device(config-dial-peer)# destination dpg 181
Step 14 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
303
Dial Peer Enhancements
Troubleshooting Tips
DETAILED STEPS
Procedure
Troubleshooting Tips
SUMMARY STEPS
1. Enter the following:
• debug voip dialpeer inout
• debug voip ccapi inout
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
304
Dial Peer Enhancements
Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
305
Dial Peer Enhancements
Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination
!Associating outbound dial peer group with an inbound dial peer group.
Device(config)# dial-peer voice 100 voip
Device(config-dial-peer)# incoming called-number 13411
Device(config-dial-peer)# destination dpg 200
Device(config-dial-peer)# end
!Associating outbound dial peer group with an inbound POTS dial peer group.
Device(config)# dial-peer voice 600 pots
Device(config-dial-peer)# incoming called-number 4T
Device(config-dial-peer)# destination dpg 200
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
306
Dial Peer Enhancements
Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination
1001 1
1002 2
1004 0
1003 1
-------------------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
307
Dial Peer Enhancements
Configuration Examples for Outbound Dial Peer Group as an Inbound Dial-Peer Destination
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
308
CHAPTER 23
Inbound Leg Headers for Outbound Dial-Peer
Matching
The Inbound Leg Headers for Outbound Dial-Peer Matching feature allows you to match and provision an
outbound dial peer for an outbound call leg using the headers from an inbound call leg. The following headers
of an incoming call leg can be used for outbound dial-peer matching:
• VIA (SIP Header)
• FROM (SIP Header)
• TO (SIP Header)
• DIVERSION (SIP Header)
• REFERRED BY (SIP Header)
• Called Number
• Calling Number
• Carrier ID
• Feature Information for Inbound Leg Headers for Outbound Dial-Peer Matching, on page 309
• Prerequisites for Inbound Leg Headers for Outbound Dial-Peer Matching, on page 310
• Restrictions for Inbound Leg Headers for Outbound Dial-Peer Matching, on page 310
• Information About Inbound Leg Headers for Outbound Dial-Peer Matching, on page 311
• Configure Inbound Leg Headers for Outbound Dial-Peer Matching, on page 311
• Verifying Inbound Leg Headers for Outbound Dial-Peer Matching, on page 314
• Configuration Example: Inbound Leg Headers for Outbound Dial-Peer Matching, on page 317
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
309
Dial Peer Enhancements
Prerequisites for Inbound Leg Headers for Outbound Dial-Peer Matching
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Table 41: Feature Information for Inbound Leg Headers for Outbound Dial-Peer Matching
Inbound Leg Headers 15.4(2)T, Cisco TheInbound Leg Headers for Outbound Dial-Peer Matching
for Outbound IOS XE Release feature allows you to match and provision an outbound call leg
Dial-Peer Matching 3.12S using the headers of an inbound call leg.
The following commands were introduced by this feature:
destination provision-policy, destination uri-via, destination
uri-to, destination uri-from, destination uri-diversion,
destination uri-referred-by, show voice class dial-peer
provision-policy
The following commands were modified.
show command incall, show dialplan dialpeer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
310
Dial Peer Enhancements
Information About Inbound Leg Headers for Outbound Dial-Peer Matching
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class dial-peer provision-policy tag
4. (Optional) description string
5. preference preference-order first-attribute second-attribute
6. exit
7. dial-peer voice inbound-dial-peer-tag voip
8. destination provision-policy tag
9. exit
10. dial-peer voice outbound-dial-peer-tag voip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
311
Dial Peer Enhancements
Configure Inbound Leg Headers for Outbound Dial-Peer Matching
11. Configure a match command for an outbound dial peer according to the provision policy rule attribute
configured.
12. end
DETAILED STEPS
Procedure
Device> enable
Step 3 voice class dial-peer provision-policy tag Creates a provision policy profile in which a set of
attributes for dial-peer matching can be defined.
Example:
Device(config)# voice class dial-peer • You can use the shutdown command to deactivate
provision-policy 200 the provision policy and allow normal outbound
dial-peer provisioning.
Step 4 (Optional) description string Provides a description for the provision policy profile.
Example:
from diversion, referred-by, to, uri, via • If rules are not configured, outbound dial-peer
provisioning is disabled, and an incoming call
referred-by diversion, from, to, uri, via matched to an inbound dial peer associated with this
to diversion, referred-by, from, uri, via profile is disconnected by CUBE or voice gateway
with cause code "unassigned number (1)".
uri diversion, referred-by, to, from, via,
carrier-id
via diversion, referred-by, to, uri, from
called calling, carrier-id
calling called
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
312
Dial Peer Enhancements
Configure Inbound Leg Headers for Outbound Dial-Peer Matching
Example:
Step 6 exit Exits voice class configuration mode and enters global
configuration mode.
Example:
Device(voice-class)# exit
Step 7 dial-peer voice inbound-dial-peer-tag voip Enters dial peer configuration mode for an inbound dial
peer.
Step 8 destination provision-policy tag Associates a provision policy profile with an inbound dial
peer.
Example:
Note
Device(config)# dial-peer voice 100 voip When both incoming and outgoing dial peers are
Device(config-dial-peer)# destination configured with calling e164-pattern-map, it's essential
provision-policy 200
to apply a provision policy to the incoming dial peer to
Device(config)# exit
avoid call failures.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
313
Dial Peer Enhancements
Verifying Inbound Leg Headers for Outbound Dial-Peer Matching
Example:
Device(config)# dial-peer voice 300 voip
Device(config-dial-peer)# destination uri-from
200
Device(config)# exit
Step 12 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
DETAILED STEPS
Procedure
Step 1 show dialplan incall {sip | h323} {calling | called} e164-pattern | include voice
Displays inbound dial peers based on an incoming calling or called number. Once you have the dial peer number, you
can use it to search for the complete dial-peer details in the running-config.
Example:
Device# show dialplan incall sip calling 3333 | include Voice
VoiceOverIpPeer1
VoiceOverIpPeer1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
314
Dial Peer Enhancements
Verifying Inbound Leg Headers for Outbound Dial-Peer Matching
Device# show dialplan incall sip called 6000 timeout | include Voice
VoiceOverIpPeer100
VoiceOverIpPeer1234567
peer type = voice, system default peer = FALSE, information type = voice,
description = `',
tag = 1234567, destination-pattern = `',
destination e164-pattern-map tag = 200 status = valid,
destination dpg tag = 200 status = valid,
voice reg type = 0, corresponding tag = 0,
allow watch = FALSE
answer-address = `', preference=0,
incoming calling e164-pattern-map tag = `200' status = valid,
CLID Restriction = None
Step 2 show dialplan dialpeer inbound-dial-peer-id number e164-pattern [timeout] | include Voice
Displays a list of outbound dial peers based on a specified inbound dial peer. This command line will be helpful find a
list of outbound dial peer of a destination dial-peer group.
Example:
Device# show dialplan dialpeer 1 number 23457 timeout | include Voice
VoiceOverIpPeer100013
VoiceOverIpPeer100012
Example:
voice class dial-peer provision-policy 2000
preference 2 diversion to
!
...
!
dial-peer voice 32555 voip
session protocol sipv2
session target ipv4:[Link]
destination uri-diversion 1
destination uri-to test2
!
dial-peer voice 32991 voip
destination provision-policy 2000
incoming called-number 1234
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
315
Dial Peer Enhancements
Verifying Inbound Leg Headers for Outbound Dial-Peer Matching
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
316
Dial Peer Enhancements
Configuration Example: Inbound Leg Headers for Outbound Dial-Peer Matching
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
317
Dial Peer Enhancements
Configuration Example: Inbound Leg Headers for Outbound Dial-Peer Matching
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
318
CHAPTER 24
Server Groups in Outbound Dial Peers
This feature configures a server group (group of server addresses) that can be referenced from an outbound
dial peer.
• Feature Information for Configuring Server Groups in Outbound Dial Peers, on page 319
• Information About Server Groups in Outbound Dial Peers, on page 320
• How to Configure Server Groups in Outbound Dial Peers, on page 321
• Configuration Examples for Server Groups in Outbound Dial Peers, on page 325
Table 42: Feature Information for Configuring Server Groups in Outbound Dial Peers
Server Groups in Outbound Dial Cisco IOS XE Release 3.11S This feature configures server
Peers groups (groups of IPv4 and IPv6
15.4(1)T
addresses) which can be referenced
from an outbound SIP dial peer.
The following command is
introduced under: voice class
server-group, description, ipv4
port preference, ipv6 port
preference, hunt-scheme, show
voice class server-group,
shutdown (Server Group).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
319
Dial Peer Enhancements
Information About Server Groups in Outbound Dial Peers
Hunt Stop for Server Groups Cisco IOS XE Bengaluru 17.4.1a This feature allows you to
configure hunt-stop based on
(configurable) response codes in
the Server Group.
The following command is
introduced under voice class
server-group. huntstop rule-tag
resp-code from_resp_code to
to_resp_code
Note Whenever destination server group is used, and multiple interfaces are involved, ensure that the server group
must have the session targets, belonging to the same network as that of sip bind on the dial-peer, where the
server-group is configured.
If there are session targets of different network, then different dial-peers must be created with appropriate
grouping of the targets with respective binding of the interfaces.
If a server-group is in the shutdown mode, all dial-peers using this destination are out of service.
Note • You can use Server Groups only with SIP dial-peers.
• If a destination IP on the server group responds with codes 404, 500, or 503, the server group hunts for
the next destination. But if the server group receives codes 480, 486, or 600, hunting is not supported
and hence the server group does not hunt to the next destination.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
320
Dial Peer Enhancements
How to Configure Server Groups in Outbound Dial Peers
Caution Huntstop cannot be used with the following cause codes 401, 407, 415, 417, 422, 480, 485, 486, and 488.
1. If you attempt to configure one of the listed cause codes specifically, the following CLI error message
appears.
Example, huntstop 1 resp-code 401
Error: The specified response code cannot be used with Huntstop.
2. If you attempt to configure range of codes that includes one of those codes that are listed, the command
is accepted with the following warning message.
Example, huntstop 1 resp-code 420–430
Warning: Range includes code(s) that will not stop hunting.
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
321
Dial Peer Enhancements
Configuring Server Groups in Outbound Dial Peers
Step 3 voice class server-group server-group-id Configures a voice class server group and enters voice
class configuration mode.
Example:
• You can use the shutdown command to make the
Device(config)# voice class server-group 171 server group inactive.
Step 4 {ipv4 | ipv6} address [port port] [preference Configures a server IP address as a part of this server group
preference-order] along with an optional port number and preference order.
Example: • Repeat this step to add up to five servers to the server
group.
Device(config-class)# ipv4 [Link] preference 3
• The servers are not selected by the preference value
if round robin is configured in the next step.
• Default and highest value of preference is zero.
Step 5 (Optional) hunt-scheme round-robin Defines a hunt method for the order of selection of target
server IP addresses (from the IP addresses configured for
Example:
this server group) for the setting up of outgoing calls.
Device(config-class)# hunt-scheme round-robin • If a hunt scheme is not defined, an available IP
address of highest preference value is selected. If
neither a round-robin hunt scheme nor a preference
value is configured, the selection of servers is random.
Step 6 (Optional) description string Provides a description for the server group.
Example:
Step 7 (Optional) huntstop rule-tag resp-code from_resp_code Stops hunting for servers in the Server Group based on
to to_resp_code configurable response codes.
Example: • Huntstop rule identifier tags range: 1-1000.
You can configure hunting in 2 ways, providing the • Configurable SIP error response codes range: 400 to
following cause codes - 599. The range must be in between 400 and 599 and
a. Range must be entered in minimum to maximum order
(Example: 450 to 460). You can enter multiple ranges
Device(config-class)# huntstop 1 resp-code 400
using additional instances of this command. Response
to 410 codes do not need to be ordered between instances
(Example: huntstop 1 500 to 510 and huntstop 2 400
b. Standalone to 450).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
322
Dial Peer Enhancements
Configuring Server Groups in Outbound Dial Peers
Step 8 dial-peer voice dial-peer-id voip Defines a VoIP dial peer and enters dial peer configuration
mode.
Example:
Step 9 session protocol sipv2 Specifies SIP version 2 as the session protocol for calls
between local and remote routers using the packet network.
Example:
Device(config-dial-peer)# session protocol sipv2
Step 10 destination-pattern [+] string [T] Specifies either the prefix or the full E.164 telephone
number to be used for a dial peer.
Example:
Device(config-dial-peer)# destination-pattern
+5550179
Step 11 session server-group server-group-id Configures the specified server group as the destination
of the dial peer.
Example:
Device(config-dial-peer)# session server-group • This command is available for SIP dial peers only.
171
• If the specified server group is in shutdown mode,
the dial peer is not selected to route outgoing calls.
Step 12 end Exits dial peer configuration mode and enters privileged
EXEC mode.
Example:
Device(config-dial-peer)# end
Step 13 show voice class server-group server-group-id Displays information about the voice class server group.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
323
Dial Peer Enhancements
Verifying Server Groups in Outbound Dial Peers
DETAILED STEPS
Procedure
The following example displays the configurations for dial peers that are associated with server groups.
Example:
Device# show voice class server-group dialpeer 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
324
Dial Peer Enhancements
Configuration Examples for Server Groups in Outbound Dial Peers
3 ipv4 [Link]
! Displays the configurations made for the outbound dial peer 181 associated with a server
group
Device# show voice class server-group dialpeer 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
325
Dial Peer Enhancements
Configuration Examples for Server Groups in Outbound Dial Peers
-------------------------------------
! Displays the configurations made for the outbound dial peer 181 associated with a server
group
Device# show voice class server-group dialpeer 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
326
Dial Peer Enhancements
Configuration Examples for Server Groups in Outbound Dial Peers
-------------------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
327
Dial Peer Enhancements
Configuration Examples for Server Groups in Outbound Dial Peers
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
328
CHAPTER 25
Domain-Based Routing Support on the Cisco UBE
First Published: June 15, 2011
Last Updated: July 22, 2011
The Domain-based routing feature provides support for matching an outbound dial peer based on the domain
name or IP address provided in the request URI of the incoming SIP message or an inbound dial peer.
Domain-based routing enables for calls to be routed on the outbound dialpeer based on the domain name or
IP address provided in the request Uniform Resource Identifier (URI) of incoming Session IP message.
• Feature Information for Domain-Based Routing Support on the Cisco UBE, on page 329
• Restrictions for Domain-Based Routing Support on the Cisco UBE, on page 330
• Information About Domain-Based Routing Support on the Cisco UBE, on page 330
• How to Configure Domain-Based Routing Support on the Cisco UBE, on page 331
• Configuration Examples for Domain-Based Routing Support on the Cisco UBE, on page 336
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
329
Dial Peer Enhancements
Restrictions for Domain-Based Routing Support on the Cisco UBE
Table 43: Feature Information for Domain-Based Routing Support on the Cisco UBE
Domain Based Routing Support on Cisco IOS XE Release 3.8S The domain-based routing enables
the Cisco UBE for calls to be routed on the
outbound dial peer based on the
domain name or IP address
provided in the request URI
(Uniform Resource Identifier) of
incoming SIP message.
The following commands were
introduced or modified: call-route,
voice-class sip call-route.
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any
examples, command display output, and figures included in the document are shown for illustrative purposes
only. Any use of actual IP addresses in illustrative content is unintentional and coincidental. © 2011 Cisco
Systems, Inc. All rights reserved
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
330
Dial Peer Enhancements
How to Configure Domain-Based Routing Support on the Cisco UBE
With the introduction of the domain-based routing feature, all parameters including the domain name of the
request URI will be sent to the application and the outbound dial peer can be matched with any parameter. In
Figure 1, when the domain name [Link] is used to match an outbound dial peer the resulting dial peer
is 2000. The call route url command is used for configuring domain-based routing.
Note Translation rules should be applied to outgoing dial peers instead of inbound dial peers when the call route
url command is configured. If the translation rule is applied to inbound dial peers, it becomes ineffective
when call-route url is enabled. In this scenario, the call-route url takes precedence and selects the called
number, disregarding the translated number. Therefore, the call-route url supersedes any translation rules
applied to inbound dial peers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
331
Dial Peer Enhancements
Configuring Domain-Based Routing at Dial Peer Level
DETAILED STEPS
Procedure
Example:
Step 6 exit Exits the current mode.
Example:
Device(conf-serv-sip)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
332
Dial Peer Enhancements
Verifying and Troubleshooting Domain-Based Routing Support on the Cisco UBE
DETAILED STEPS
Procedure
Step 3 dial-peer voice dial-peer tag voip Enter dial peer voice configuration mode.
Example:
Device(config)# dial-peer voice 2 voip
Example:
Routes calls based on the URL
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
333
Dial Peer Enhancements
Verifying and Troubleshooting Domain-Based Routing Support on the Cisco UBE
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
334
Dial Peer Enhancements
Verifying and Troubleshooting Domain-Based Routing Support on the Cisco UBE
Min-SE: 1800
Cisco-Guid: 1432849350-0876876256-2424621905-3925258737
User-Agent: Cisco-SIPGateway/IOS-15.1(3.14.2)PIA16
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1297340108
Contact: <sip:5555555555@[2208:1:1:1:1:1:1:1116]:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Length: 424
v=0
o=CiscoSystemsSIP-GW-UserAgent 8002 7261 IN IP6 2208:1:1:1:1:1:1:1116
s=SIP Call
c=IN IP6 2208:1:1:1:1:1:1:1116
t=0 0
m=image 17278 udptl t38
c=IN IP6 2208:1:1:1:1:1:1:1116
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxFillBitRemoval:0
a=T38FaxTranscodingMMR:0
a=T38FaxTranscodingJBIG:0
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:200
a=T38FaxMaxDatagram:320
a=T38FaxUdpEC:t38UDPRedundancy”
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
335
Dial Peer Enhancements
Configuration Examples for Domain-Based Routing Support on the Cisco UBE
The following event shows the matched dial peers in the order of priority:
Example:
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# call-route url
Device(conf-serv-sip)# exit
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip call-route url
Device(config-dial-peer)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
336
CHAPTER 26
ENUM Enhancement per Kaplan Draft RFC
The Cisco Unified Border Element (CUBE) facilitates the mapping of E.164 called numbers to Session
Initiation Protocol (SIP) Uniform Resource Identifiers (URIs). The SIP ENUM technology allows the traditional
telephony part of the network (using E.164 numbering to address destinations) to interwork with the SIP
telephony part of the network, generally using SIP URIs. From the Public Switched Telephone Network
(PSTN) network, if an end user dials an E.164 called party, the number can be translated by an ENUM gateway
into the corresponding SIP URI. This SIP URI is then used to look up the Domain Name System (DNS)
Naming Authority Pointer (NAPTR) Resource Records (RR). The NAPTR RR (as defined in RFC 2915)
describes how the call should be forwarded or terminated and records information, such as email addresses,
a fax number, a personal website, a VoIP number, mobile telephone numbers, voice mail systems, IP-telephony
addresses, and web pages. Alternately, when the calling party is a VoIP endpoint and dials an E.164 number,
then the originator's SIP user agent (UA) converts it into a SIP URI to be used to look up at the ENUM gateway
DNS and fetch the NAPTR RR.
The ENUM enhancement per Kaplan draft RFC provides source-based routing, that is, SIP-to-SIP calls can
be routed based on the source SIP requests. To provide source-based routing and to interact with the Policy
Server, an EDNS0 OPT pseudo resource record with source URI, incoming SIP call ID, outbound SIP call
ID, and Call Session Identification are added to the ENUM DNS query, according to
draft-kaplan-enum-sip-routing-04. The incoming SIP call ID, outbound SIP call ID, and Call Session
Identification are automatically included with an EDNS0 OPT pseduo resource record in the ENUM DNS
query only if “source-uri no-cache” is enabled and XCC service is registered. This feature also provides the
flexibility to disable route caching.
• Feature Information for ENUM Enhancement per Kaplan Draft RFC, on page 337
• Restrictions for ENUM Enhancement per Kaplan Draft RFC, on page 338
• Information About ENUM Enhancement per Kaplan Draft RFC, on page 339
• How to Configure ENUM Enhancement per Kaplan Draft RFC, on page 339
• Troubleshooting Tips, on page 342
• Configuration Examples for ENUM Enhancement per Kaplan Draft RFC, on page 342
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
337
Dial Peer Enhancements
Restrictions for ENUM Enhancement per Kaplan Draft RFC
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Table 44: Feature Information for ENUM Enhancement per Kaplan Draft RFC
ENUM Enhancement per Cisco IOS XE 3.14S The ENUM enhancement per Kaplan draft RFC provides
Kaplan Draft RFC source-based routing, that is, SIP-to-SIP calls can be
Cisco IOS 15.5(1)T
routed based on the source SIP requests. To provide this
source-based routing, an EDNS0 OPT pseudo resource
record with source URI is added to the ENUM DNS
query, according to draft-kaplan-enum-sip-routing-04.
This feature also provides the flexibility to disable route
caching.
Support to include inbound Cisco IOS 15.5(2)T This feature allows you to add incoming SIP call ID,
call ID, outbound call ID and outbound SIP call ID, and Call Session Identification to
Cisco IOS XE 3.15S
Call Session Identification to an EDNS0 OPT pseduo resource record in the ENUM
ENUM DNS query DNS query.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
338
Dial Peer Enhancements
Information About ENUM Enhancement per Kaplan Draft RFC
Refer to the document titled Unified Border Element ENUM Support Configuration Example for a detailed
message format.
DETAILED STEPS
Procedure
Step 3 voice enum-match-table match-table-index [source-uri] Enables source URI filtering for the enum match table entry.
[no-cache] You can use the no-cache option to disable the caching to
the voice enum command.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
339
Dial Peer Enhancements
Testing the ENUM Request
SUMMARY STEPS
1. enable
2. test enum match-table-index input -pattern source-url source-url more parameter
3. end
DETAILED STEPS
Procedure
Step 2 test enum match-table-index input -pattern source-url Tests the source-based routing ENUM.
source-url more parameter
• The source routing or no caching features depend on
Example: the voice enum-match-table command. If the
Device# test enum 1117777 source source-uri command is not configured, the source-url
sip:1116666@[Link] more source-url in the test command is ignored.
“ibcall-id=1-23735@[Link];
obcall-id=7190DF-F1AA3CF1@[Link];sbc-id=1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
340
Dial Peer Enhancements
Verifying the ENUM Request
SUMMARY STEPS
1. show host *
2. show host [Link].e164-test*
3. show host 1*
4. show host "[Link].e164-test sip*"
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
341
Dial Peer Enhancements
Troubleshooting Tips
Troubleshooting Tips
Use the following commands for debugging information:
• debug voip enum detail
• debug ip domain
• debug ccsip message
• debug voip ccapi inout
• clear voip fpi session correlator-id—This command is used to clear the hung FPI sessions. After the
hung session is identified using the existing show commands and its correlator is obtained, the clear
voip fpi session correlator-id command can be used to clear the session.
Below is an extract of a sample ENUM DNS query containing the EDNS0 OPT psedo resource record fields
as per Kaplan Draft that is helpful in debugging. In the below query the values corresponding to ibcall-id,
obcall-id, and sbc-id represent the incoming SIP call ID, outbound SIP call ID and Call Session Identification
respectively.
[Link].[Link] sip:1116666@10.1.50.16enum_dns_query: name = [Link].[Link]
sip:1116666@[Link] type = 35, ns_server = 0x0 no_cache 1 more_data
;ibcall-id=1-23735@[Link];
obcall-id=7190DF-39DD11E4-8008EDAD-F1AA3CF1@[Link];sbc-id=1
voice enum-match-table 3 no-cache //The cache table is not looked up and the route is not
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
342
Dial Peer Enhancements
Configuration Examples for ENUM Enhancement per Kaplan Draft RFC
cached.//
rule 1 1 /^\(.*\)$/ /\1/ e164-test
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
343
Dial Peer Enhancements
Configuration Examples for ENUM Enhancement per Kaplan Draft RFC
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
344
PA R T III
Multi-Tenancy
• Support for Multi-VRF, on page 347
• Configuring Multi-Tenants on SIP Trunks, on page 403
CHAPTER 27
Support for Multi-VRF
The Virtual Routing and Forwarding (VRF) feature allows Cisco Unified Border Element (CUBE) to have
multiple instances of routing and forwarding table to co-exist on the same device at the same time.
With Multi-VRF feature, each interface or subinterface can be associated with a unique VRF.
Note The information in this chapter is specific to Multi-VRF feature beginning in Cisco IOS Release 15.6(2)T.
However, there is some information on Voice-VRF feature for the reference purpose only. For detailed
information on the Voice-VRF feature, see [Link]
[Link].
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
347
Multi-Tenancy
Feature Information for VRF
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Support for Voice-VRF Cisco IOS 12.4(11)XJ This feature provides support
(VRF-Aware) to configure a VRF specific to
voice traffic.
Support for Multi-VRF Cisco IOS 15.6(2)T This feature allows CUBE to
have multiple instances of
VRF to co-exist on the same
device at the same time.
The following commands are
introduced: media-address
voice-vrf name port-range
min-max, show voice vrf
Support for Inbound Dial-peer Cisco IOS 15.6(3)M This feature supports inbound
Matching using VRF-ID dial-peer matching using VRF
Cisco IOS XE Denali 16.3.1
ID.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
348
Multi-Tenancy
Information About Voice-VRF
Support for media Cisco IOS XE Gibraltar 16.12.2 This feature adds media
flow-around using Multi-VRF flow-around support for the
following intra-VRF call
flows in standalone and high
availability scenarios:
• Basic Audio Call
• Call Hold and Resume
• Re-INVITE based Call
Transfer
• 302 based Call Forward
• Fax Pass Through Calls
• T.38 Fax Calls
Support up to 100 VRF Cisco IOS XE Amsterdam 17.3.1a This feature enhancement
instances provides support up to 100
VRFs. Each of the VRFs
supports up to 10 different
RTP port ranges.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
349
Multi-Tenancy
VRF Preference Order
Note One physical interface or sub-interface can be associated with one VRF only. One VRF can be associated
with multiple interfaces.
As per the Multi-VRF feature, the dial-peer configuration must include the use of the interface bind
functionality. This is mandatory. It allows dial-peers to be mapped to a VRF via the interface bind.
The calls received on a dial-peer are processed based on the interface to which it is associated with. The
interface is in turn associated with the VRF. So, the calls are processed based on the VRF table associated
with that particular interface.
1 Dial-peer Bind —
Restrictions
• Supports only SIP-SIP calls.
• Cisco Unified Communications Manager Express (Unified CME) and CUBE co-located with VRF is
not supported.
• Cisco Unified Survivability Remote Site Telephony (Unified SRST) and CUBE co-location is not
supported on releases before Cisco IOS XE Fuji 16.7.1.
• IPv6 on VRF is not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
350
Multi-Tenancy
Recommendations
• SDP pass-through is not supported on releases before Cisco IOS Release 15.6(3)M and Cisco IOS XE
Denali 16.3.1.
• Calls are not supported when incoming dial-peer matched is default dial-peer (dial-peer 0).
• Media Anti-trombone is not supported with VRF.
• Cisco UC Services API with VRF is not supported.
• Multi-VRF is not supported on TDM-SIP gateway.
• VRF aware matching is applicable only for inbound dial-peer matching and not for outbound dial-peer
matching.
• Invoking TCL scripts through a dial-peer is not supported with the Multi-VRF.
• Multi-VRF using global routing table or default routing table (VRF 0) with virtual interfaces is not
supported on ISR-G2 (2900 and 3900 series) routers.
• SCCP-based media resources are not supported with VRF.
• Multi-VRF configured in media flow-around mode is supported only for intra-VRF calls. The following
are not supported with Multi-VRF configured in media flow-around mode:
• Supplementary services with REFER Consume, Mid-call (or Early Dialogue) block
• Session Description Protocol (SDP) Passthrough
• Media Recording
• DSP flows (DTMF, transcode)
Recommendations
• For new deployments, we recommend a reboot of the router once all VRFs' are configured under interfaces.
• No VRF Route leaks are required on CUBE to bridge VoIP calls across different VRFs.
• High Availability(HA) with VRF is supported where VRF IDs are check-pointed in the event of fail-over.
Ensure that same VRF configuration exists in both the HA boxes.
• Whenever destination server group is used with VRF, ensure that the server group should have the session
targets, belonging to the same network as that of sip bind on the dial-peer, where the server-group is
configured. This is because, dial-peer bind is mandatory with VRF and only one sip bind can be configured
on any given dial-peer.
• If there are no VRF configuration changes at interface level, then reload of the router is not required.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
351
Multi-Tenancy
Configuring VRF
Configuring VRF
Note We recommend you NOT to modify VRF settings on the interfaces in a live network as it requires CUBE
reload to resume VRF functionality.
This section provides the generic configuration steps for creating a VRF. For detailed configuration steps
specific to your network scenario (Multi-VRF and Multi-VRF with HA), refer to Configuration Examples
section.
Note You can also use the latest configuration option, which allows creation of multiprotocol VRFs that support
both IPv4 and IPv6. Entering the command vrf definition vrf-name creates the multiprotocol VRF. Under
VRF definition submode, you can use the command address-family {ipv4 | ipv6} to specify appropriate
address family. To associate the VRF with an interface, use the command vrf forwarding vrf-name under
the interface configuration submode.
For more information about the vrf definition and vrf forwarding commands, refer to the Cisco IOS Easy
Virtual Network Command Reference Guide.
Create a VRF
SUMMARY STEPS
1. enable
2. configure terminal
3. ip vrf vrf-name
4. rd route-distinguisher
5. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
352
Multi-Tenancy
Assign Interface to VRF
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
SUMMARY STEPS
1. enable
2. configure terminal
3. interfaceinterface-name
4. ip vrf forwarding vrf-name
5. ip address ip address subnet mask
6. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
353
Multi-Tenancy
Create Dial-peers
Create Dial-peers
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice number voip
4. session protocol protocol
5. Create dial-peer:
• To create inbound dial-peer:
incoming called number number
• To create outbound dial-peer:
destination pattern number
6. codec codec-name
7. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
354
Multi-Tenancy
Create Dial-peers
DETAILED STEPS
Procedure
Step 3 dial-peer voice number voip Creates the dial-peer with the specified number.
Example:
Device(config)# dial-peer voice 1111
voip
Step 4 session protocol protocol Specifies the protocol associated with the dial-peer.
Example:
Device(config-dial-peer)# session protocol sipv2
Example:
Outbound dial-peer:
Device(config-dial-peer)# destination pattern 3333
Step 6 codec codec-name Specifies the codec associated with this dial-peer.
Example:
Device(config-dial-peer)# codec g711ulaw
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
355
Multi-Tenancy
Bind Dial-peers
Bind Dial-peers
You can configure SIP binding at global level as well as at dial-peer level.
• Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser
will display an error
• Whenever global sip bind interface associated with a VRF is added,modified, or removed, you should
restart the sip services under 'voice service voip > sip' mode so that the change in global sip bind comes
into effect with associated VRF ID.
SUMMARY STEPS
1. enable
2. configure terminal
3. Bind control and media to the interface
• At dial-peer level:
dial-peer voice number voip
sip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
356
Multi-Tenancy
Bind Dial-peers
DETAILED STEPS
Procedure
Step 3 Bind control and media to the interface Interface bind associates VRF to the specified dial-peer.
• At dial-peer level:
dial-peer voice number voip
sip
Example:
At global configuration level:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
357
Multi-Tenancy
Configure VRF-Specific RTP Port Ranges
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. media-address voice-vrf vrf-name port-range min max
5. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
358
Multi-Tenancy
Example: VRF with overlapping and non-overlapping RTP Port Range
The output:
Device# show run | section voice
voice-card 0/3
dsp services dspfarm
voice service voip
no ip address trusted authenticate
media-address voice-vrf VRF1 port 16000 32000
*Here, the port-range is configured on the same
line as the media address.
Example:
Example 2
CUBE supports up to 100 VRFs. Hence, you can configure
up to 100 media address instances, that is, one instance per
voice-vrf. This configuration is subject to the maximum
number of VRFs supported by the host platform.
Device(conf-voi-serv)#
media-address voice-vrf VRF1 port-range 8000 48000
media-address voice-vrf VRF2 port-range 8000 48000
......................
......................
media-address voice-vrf VRF99 port-range 8000 48000
media-address voice-vrf VRF100 port-range 8000
48000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
359
Multi-Tenancy
Example: VRF with overlapping and non-overlapping RTP Port Range
The following is example shows two VRFs with non-overlapping RTP port range:
The output for command show voip rtp connections shows as follows:
Device# show voip rtp connections
In the above output, you can observe that for both the VRF's having non-overlapping rtp port ranges, the local
RTP port allocated for vrf1 and vrf2 are different.
Example 2 - Overlapping Port Range
The following is example shows two VRFs with overlapping RTP port range:
The output for command show voip rtp connections shows as follows:
Device# show voip rtp connections
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
360
Multi-Tenancy
Directory Number (DN) Overlap across Multiple-VRFs
------------------------------------------------------------------------------
Global Media Pool 8000 48198 19999 101 0
VRF ID Based Media Pool
------------------------------------------------------------------------------
vrf1 25000 28000 1501 0 1
vrf2 25000 28000 1501 0 1
------------------------------------------------------------------------------
VoIP RTP active connections :
No. CallId dstCallId LocalRTP RmtRTP LocalIP RemoteIP MPSS VRF
In the above output, you can observe that for both the VRF’s having overlapping rtp port ranges, the local
RTP port allocated for vrf1 and vrf2 is same.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
361
Multi-Tenancy
Example: Associating Dial-peer Groups to Overcome DN Overlap
Creating outbound dial-peer with destination pattern ‘3001’ associated with VRF1.
Device(config)# dial-peer voice 300 voip
Device(config-dial-peer)# destination-pattern 3001
Device(config-dial-peer)# video codec h264
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
362
Multi-Tenancy
IP Overlap with VRF
Creating outbound dial-peer with destination pattern ‘3001’ associated with VRF2.
Device(config)# dial-peer voice 301 voip
Device(config-dial-peer)# destination-pattern 3001
Device(config-dial-peer)# video codec h264
Device(config-dial-peer)# session protocol sipv2
Device(config-dial-peer)# session target ipv4:[Link]
Device(config-dial-peer)# voice-class sip bind control source-interface GigabitEthernet0/2
Device(config-dial-peer)# voice-class sip bind media source-interface GigabitEthernet0/2
Device(config-dial-peer)# dtmf-relay sip-kpml
Device(config-dial-peer)# codec g711ulaw
With above dial-peer group configuration, whenever dial-peer “3000” is matched as inbound dial-peer, CUBE
will always route call using dial-peer “300” (VRF1). Without dial-peer group, CUBE would have picked
dial-peers “300”(VRF1) and “301”(VRF2) in random to route the call.
Device# show vrf brief
Name Default RD Protocols Interfaces
VRF1 1:1 ipv4 Gi0/0
Gi0/1
VRF2 2:2 ipv4 Gi0/2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
363
Multi-Tenancy
IP Overlap with VRF
Device> enable
Device# configure terminal
Device(config)# interface GigabitEthernet0/0
Device(config-if)# ip vrf forwarding VRF1
Device(config-if)# ip address [Link] [Link]
Device(config-if)# speed auto
Device(config-if)# exit
Configure Gigabit Ethernet 0/1 that belongs to VRF2 with IP address [Link].
Device# enable
Device# configure terminal
Device(config)# ip vrf VRF2
Device(config)# rd 1:1
Device(config)# exit
Device> enable
Device# configure terminal
Device(config)# interface GigabitEthernet0/1
Device(config-if)# ip vrf forwarding VRF2
Device(config-if)# ip address [Link] [Link]
Device(config-if)# speed auto
Device(config-if)# exit
For call routing on VRF1 and VRF2, ensure that appropriate routing entries are configured for both VRF1
and VRF2.
Note The above configurations are specific to VRF support only. For call routing, appropriate routing protocols
must be configured in the network.
Even though Gigabit Ethernet 0/0 and Gigabit Ethernet 0/1 have an overlapping IP address, the call processing
is not overlapped as they belong to different VRFs.
show ip interface brief command shows that GigabitEthernet 0/0 and GigabitEthernet 0/1 have an overlapping
IP address:
Device# show ip interface brief
Interface IP-Address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES NVRAM administratively down down
GigabitEthernet0/0 [Link] YES NVRAM up up
GigabitEthernet0/1 [Link] YES NVRAM up up
GigabitEthernet0/1.1 unassigned YES NVRAM up up
GigabitEthernet0/2 unassigned YES NVRAM up up
show voip rtp connections command shows a video call that is established on CUBE across different interfaces
belonging to different VRFs having Overlap IP address:
Device# show voip rtp connections
VoIP RTP Port Usage Information:
Max Ports Available: 11700, Ports Reserved: 303, Ports in Use: 4
Min Max Ports Ports Ports
Media-Address Range Port Port Available Reserved In-use
------------------------------------------------------------------------------
Global Media Pool 20000 22000 900 101 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
364
Multi-Tenancy
Using Server Groups with VRF
As dial-peer 200 is bind to GigabitEthernet0/0/1 , the session targets configured in the “server-group 1” should
belong to the network which is reachable by the bind source interface GigabitEthernet0/0/1 as shown below:
Device(config)# voice class server-group 1
Device(config-class)# ipv4 [Link]
Device(config-class)# ipv4 [Link] preference 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
365
Multi-Tenancy
Inbound Dial-Peer Matching Based on Multi-VRF
interface GigabitEthernet0/1
ip address [Link] [Link]
duplex auto
ip vrf forwarding VRF ID2
speed auto
interface GigabitEthernet0/2
ip address [Link] [Link]
duplex auto
ip vrf forwarding VRF ID3
speed auto
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
366
Multi-Tenancy
Example: Inbound Dial-Peer Matching based on Multi-VRF
codec g711ulaw
Prior to Cisco IOS 15.6(3)M and Cisco IOS XE Denali 16.3.1 releases, when an incoming call is received for
the dialed number 5678 on GigabitEthernet0/0 (VRF ID1), inbound dial-peer matching was done based on
the called-number 5678. In this case, dial-peer 1000 which is bound to GigabitEthernet0/1 (VRF ID2) was
considered to be the first matched dial-peer for this call. And, the response was sent incorrectly to VRF ID2
instead of VRF ID1.
With the introduction of VRF aware inbound dial-peer matching, the initial filtering is done based on the VRF
ID and then based on the called-number. For the above example, a call with called-number of 5678 that is
received on GigabitEthernet 0/0 with VRF ID 1 configured, the dial-peers will first be filtered to those that
are bound to GigabitEthernet 0/0 before selection of the inbound dial-peer is performed. Now, the response
is sent successfully on VRF ID1.
Note Whenever the VRF ID is added, modified, or removed under the interface, it is mandatory to execute the
following command before making any calls: clear interface <interface>. If the clear interface <interface>
command is not executed, the dial-peer is bound to the old VRF ID and not to the new VRF ID.
Note Inbound dial-peer matching based on VRF ID is selected in the following order of preference:
1. Dial-peer based configuration
2. Tenant based configuration
3. Global based configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
367
Multi-Tenancy
VRF Aware DNS for SIP Calls
Note Ensure that the name-server is configured using ip name-server vrf command. For configuration details,
see Name Server Configuration.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
368
Multi-Tenancy
Configuration Examples
Configuration Examples
Note The steps in the following configuration example is for a new network and hence it is assumed that there is
no existing configuration.
Configuring VRF
Device# enable
Device# configure terminal
Device(config)# ip vrf VRF1
Device(config)# rd 1:1
Device(config)# ip vrf VRF2
Device(config)# rd 2:2
Device(config)# exit
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
369
Multi-Tenancy
Example: Configuring Multi-VRF in Standalone Mode
Device> enable
Device# configure terminal
Device(config)# interface GigabitEthernet0/1
Device(config-if)# ip address [Link] [Link]
Device(config-if)# speed auto
Device(config-if)# exit
Creating Dial-peer
Creating Inbound Dial-peer:
Execute the following command to verify the dial-peer association with interface:
Configure Binding
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
370
Multi-Tenancy
Example: Configuring Multi-VRF in Standalone Mode
Note • Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser
will display an error.
• Whenever global sip bind interface associated with a VRF is added, modified, or removed, you should
restart the sip services under voice service voip sip mode so that the change in global sip bind comes
into effect with associated VRF ID.
Execute the following command to verify the interface association with VRF:
------------------------------------------------------------------------------
VoIP RTP active connections :
No. CallId dstCallId LocalRTP RmtRTP LocalIP RemoteIP MPSS VRF
1 1 2 25000 16390 [Link] [Link] NO VRF1
2 2 1 25002 16398 [Link] [Link] NO VRF2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
371
Multi-Tenancy
Example: Configuring Multi-VRF in Standalone Mode
long duration call detected:<y/n> long duration call duration :<sec> timestamp:<time>
LostPacketRate:<%> OutOfOrderRate:<%>
VRF:<%>
MODEMPASS <method> buf:<fills>/<drains> loss <overall%> <multipkt>/<corrected>
last <buf event time>s dur:<Min>/<Max>s
FR <protocol> [int dlci cid] vad:<y/n> dtmf:<y/n> seq:<y/n>
<codec> (payload size)
ATM <protocol> [int vpi/vci cid] vad:<y/n> dtmf:<y/n> seq:<y/n>
<codec> (payload size)
Tele <int> (callID) [channel_id] tx:<tot>/<v>/<fax>ms <codec> noise:<l> acom:<l> i/o:<l>/<l>
dBm
MODEMRELAY info:<rcvd>/<sent>/<resent> xid:<rcvd>/<sent> total:<rcvd>/<sent>/<drops>
speeds(bps): local <rx>/<tx> remote <rx>/<tx>
Proxy <ip>:<audio udp>,<video udp>,<tcp0>,<tcp1>,<tcp2>,<tcp3> endpt: <type>/<manf>
bw: <req>/<act> codec: <audio>/<video>
tx: <audio pkts>/<audio bytes>,<video pkts>/<video bytes>,<t120 pkts>/<t120 bytes>
rx: <audio pkts>/<audio bytes>,<video pkts>/<video bytes>,<t120 pkts>/<t120 bytes>
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
11FF : 8565722 511605450ms.1 (*16:21:53.676 IST Tue Aug 4 2015) +30 pid:400001
Answer 777412373 active
dur 00:00:22 tx:1110/66600 rx:1111/66660 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:30804 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
VRF: VRF1
11FF : 8565723 511605470ms.1 (*16:21:53.696 IST Tue Aug 4 2015) +0 pid:400000 Originate
777512373 active
dur 00:00:22 tx:1111/66660 rx:1110/66600 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:30804 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
VRF: VRF2
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
372
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
<callID> A/O FAX T<sec> Codec type Peer Address IP R<ip>:<udp> VRF
Total call-legs: 2
8565722 ANS T12 g711ulaw VOIP P777412373 [Link]:30804 VRF1
8565723 ORG T12 g711ulaw VOIP P777512373 [Link]:30804 VRF2
Note Below configuration example is applicable for Cisco ASR 1000 Series Aggregated Services Routers (ASR)
and Cisco 4000 Series Integrated Services Routers (ISR G3).
Note Do not configure VRF on the interface that is used for RG Infra. Traffic of VRF and RG Infra should be on
different interfaces.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
373
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
Note The configurations of Active Router and Stand By Router should be identical.
Configuring VRF
Device> enable
Device# configure terminal
Device(config)# ip vrf VRF1
Device(config)# rd 1:1
Device(config)# ip vrf VRF2
Device(config)# rd 2:2
Device(config)# redundancy
Device(config)# mode none
Device(config)# application redundancy
Device(config)# group 1
Device(config)# name raf-b2b
Device(config)# priority 1
Device(config)# timers delay 30 reload 60
Device(config)# control GigabitEthernet0/0/0 protocol 1
Device(config)# data GigabitEthernet0/0/0
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
GigabitEthernet0/0/0 is used for configuring RG Infra and therefore do not configure any VRF with this
interface.
Inbound interface - GigabitEthernet0/1 is used for voice traffic configured with VRF1.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
374
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
Outbound interface - GigabitEthernet0/2 is used for voice traffic configured with VRF2.
Creating Dial-peer
Creating Inbound Dial-peer:
Configuring Binding
Note Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser will
display an error.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
375
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
Configuring VRF
Device> enable
Device# configure terminal
Device(config)# ip vrf VRF1
Device(config)# rd 1:1
Device(config)# ip vrf VRF2
Device(config)# rd 2:2
Device(config)# redundancy
Device(config)# mode none
Device(config)# application redundancy
Device(config)# group 1
Device(config)# name raf-b2b
Device(config)# priority 1
Device(config)# timers delay 30 reload 60
Device(config)# control GigabitEthernet0/0/0 protocol 1
Device(config)# data GigabitEthernet0/0/0
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
GigabitEthernet0/0/0 is used for configuring RG Infra and therefore do not configure any VRF with this
interface.
Inbound interface - GigabitEthernet0/1 is used for voice traffic configured with VRF1.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
376
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
Outbound interface - GigabitEthernet0/2 is used for voice traffic configured with VRF2.
Creating Dial-peer
Creating Inbound Dial-peer:
Configuring Binding
Note Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser will
display an error.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
377
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
11F3 : 5 243854170ms.1 (*11:48:43.972 UTC Mon May 25 2015) +6770 pid:0 Answer active
dur 00:00:14 tx:843/50551 rx:1028/61680 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:16388 SRTP: off rtt:1ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
11F3 : 6 243854170ms.2 (*11:48:43.972 UTC Mon May 25 2015) +6770 pid:3333 Originate 2222
active
dur 00:00:14 tx:1028/61680 rx:843/50551 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:16388 SRTP: off rtt:65522ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
378
Multi-Tenancy
Example: Configuring RG Infra High Availability with VRF
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
11F9 : 8 245073830ms.1 (*12:16:18.094 UTC Mon May 25 2015) +26860 pid:3333 Originate 2222
connected
dur 00:03:37 tx:6757/405420 rx:6757/405420 dscp:0 media:0 audio tos:0x0 video tos:0x0
IP [Link]:16390 SRTP: off rtt:65531ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
11F9 : 7 245073850ms.1 (*12:16:18.114 UTC Mon May 25 2015) +26840 pid:0 Answer connected
dur 00:03:37 tx:6757/405420 rx:6757/405420 dscp:0 media:0 audio tos:0x0 video tos:0x0
IP [Link]:16390 SRTP: off rtt:65523ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
379
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
Note Below configuration example is applicable for Cisco Integrated Services Routers Generation 2 (ISR G2)
Platforms. [Cisco 2900 Series Integrated Services Routers and Cisco 3900 Series Integrated Services Routers]
Note Do not configure VRF on the interface that is used for HSRP. Traffic of VRF and HSRP should be on different
interfaces.
Note The configurations of Active Router and Stand By Router should be identical.
Configuring VRF
Device> enable
Device# configure terminal
Device(config)# ip vrf VRF1
Device(config)# rd 1:1
Device(config)# ip vrf VRF2
Device(config)# rd 2:2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
380
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
The interface used for HSRP should not be configured with any VRF. In this example, GigabitEthernet0/0/0
is used for configuring HSRP and therefore no VRF is associated with this interface.
Inbound interface - GigabitEthernet0/1 is used for voice traffic configured with VRF1.
Outbound interface - GigabitEthernet0/2 is used for voice traffic configured with VRF2.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
381
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
Device(config-ipczone-assoc)# no shutdown
Device(config-ipczone-assoc)# protocol sctp
Device(config-ipc-protocol-sctp)# local port 5000
Device(config-ipc-local-sctp)# local-ip [Link]
Device(config-ipc-local-sctp)# exit
Device(config-ipc-protocol-sctp)# remote port 5000
Device(config-ipc-remote-sctp)# remote-ip [Link]
Creating Dial-peer
Creating Inbound Dial-peer:
Configuring Binding
Note Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser will
display an error.
Configuring VRF
Device> enable
Device# configure terminal
Device(config)# ip vrf VRF1
Device(config)# rd 1:1
Device(config)# ip vrf VRF2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
382
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
Device(config)# rd 2:2
Note If an IP address is already assigned to an interface, then associating a VRF with interface will disable the
interface and remove the existing IP address. An error message (sample error message shown below) is
displayed on the console. Assign the IP address to proceed further.
The interface used for HSRP should not be configured with any VRF. In this example, GigabitEthernet0/0/0
is used for configuring HSRP and therefore no VRF is associated with this interface.
Inbound interface - GigabitEthernet0/1 is used for voice traffic configured with VRF1.
Outbound interface - GigabitEthernet0/2 is used for voice traffic configured with VRF2.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
383
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
Creating Dial-peer
Creating Inbound Dial-peer:
Configuring Binding
Note Control and Media on a dial-peer have to bind with same VRF. Else, while configuring, the CLI parser will
display an error.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
384
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
my state = 13 -ACTIVE
peer state = 8 -STANDBY HOT
Mode = Duplex
Unit ID = 0
client count = 17
client_notification_TMR = 120000 milliseconds
RF debug mask = 0x0
On Standby Router
client count = 17
client_notification_TMR = 120000 milliseconds
RF debug mask = 0x0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
385
Multi-Tenancy
Example: Configuring HSRP High Availability with VRF
11F3 : 5 243854170ms.1 (*11:48:43.972 UTC Mon May 25 2015) +6770 pid:0 Answer active
dur 00:00:14 tx:843/50551 rx:1028/61680 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:16388 SRTP: off rtt:1ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
11F3 : 6 243854170ms.2 (*11:48:43.972 UTC Mon May 25 2015) +6770 pid:3333 Originate 2222
active
dur 00:00:14 tx:1028/61680 rx:843/50551 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:16388 SRTP: off rtt:65522ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
386
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
11F9 : 8 245073830ms.1 (*12:16:18.094 UTC Mon May 25 2015) +26860 pid:3333 Originate 2222
connected
dur 00:03:37 tx:6757/405420 rx:6757/405420 dscp:0 media:0 audio tos:0x0 video tos:0x0
IP [Link]:16390 SRTP: off rtt:65531ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
11F9 : 7 245073850ms.1 (*12:16:18.114 UTC Mon May 25 2015) +26840 pid:0 Answer connected
dur 00:03:37 tx:6757/405420 rx:6757/405420 dscp:0 media:0 audio tos:0x0 video tos:0x0
IP [Link]:16390 SRTP: off rtt:65523ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729r8 TextRelay:
off Transcoded: No ICE: Off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
LostPacketRate:0.00 OutOfOrderRate:0.00
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Example: Configuring Multi VRF where Media Flows Around the CUBE
The configuration in this scenario is as shown below where there is overlapping endpoint IP address across
two customers and use CUBE for inter-enterprise calls. Here the media flows around the CUBE for the
enterprises with Multi-VRF feature and both the enterprises have the same endpoint IP address.
Figure 35: Multi-VRF with Media Flow Around CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
387
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Set-up Information
• Two enterprises ENT2 and ENT3 have the same endpoint IP address.
• Provider Edge (PE) router acts as DHCP for both enterprises.
• PSTN call flow is simulated with the Emulation Call Manager.
• When a call is initiated from ENT2 to ENT3, the call is a flow around call and both the endpoints are
connected directly.
Configuration Information
The table below details the configuration information required to configure Multi-VRF, where the media (call)
flows around the CUBE.
CUBE VRF ENT2 - CUBE VRF Configuration ENT3 - CUBE VRF Configuration
Configurtion
CUBE Voice ! !
Class URI
voice class uri 2112 sip voice class uri 3112 sip
Configurtion
pattern [Link]:8012 pattern [Link]:8013
! !
voice class uri 2114 sip voice class uri 3114 sip
pattern [Link]:8012 pattern [Link]:8013
! !
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
388
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
CUBE DPG voice class dpg 2012 voice class dpg 3012
Configurtion
dial-peer 2012 dial-peer 3012
! !
voice class dpg 2014 voice class dpg 3014
dial-peer 2014 dial-peer 3014
! !
CUBE COR dial-peer cor list From-Ent3102 dial-peer cor list From-Ent3103
List
member Ent3102 member Ent3103
Configurtion
member PGW-Ent3102 member PGW-Ent3103
! !
dial-peer cor list To-Ent3102 dial-peer cor list To-Ent3103
member Ent3102 member Ent3103
! !
dial-peer cor list From-PGW-Ent3102 dial-peer cor list From-PGW-Ent3103
member Ent3102 member Ent3103
! !
dial-peer cor list To-PGW-Ent3102 dial-peer cor list To-PGW-Ent3103
member PGW-Ent3102 member PGW-Ent3103
! !
Dial Peer ENT2 - Dial Peer Configuration ENT3 - Dial Peer Configuration
Configurtion
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
389
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
390
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
391
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
392
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
393
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Around the CUBE
Debug Information
Note Execute sh sip-ua calls called-number +14089135001, to check the call behaviour.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
394
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Through the CUBE
Example: Configuring Multi VRF where Media Flows Through the CUBE
The configuration in this scenario is as shown below where there is overlapping endpoint IP address across
two customers and use CUBE for inter-enterprise calls. Here the media is flowing through the CUBE for the
enterprises with Multi VRF feature and both the enterprises having same end-point IP address.
Figure 37: Multi-VRF with Media Flow Through CUBE
Set-up Information
• ENT5 and ENT6 have same endpoint IP addressing, and ENT5 act as PSTN customer.
• DC30-ENT5-CE and BGL-18-PE act as DHCP servers for ENT5 and ENT6 endpoints respectively.
• When a call is inititated from ENT5 to ENT6, the call is connected between two endpoints, and signalling
and media flows through the CUBE.
• Customer Edge (CE) router will directly communicate with CUBE-Enterprises' Public IP address.
Configuration Information
The table below details the configuration information required to configure Multi-VRF, where the media (call)
flows through the CUBE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
395
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Through the CUBE
DPG Configuration ! !
voice class dpg 5012 voice class dpg 9992
dial-peer 5012 dial-peer 1022502
! !
voice class dpg 5014 voice class dpg 9994
dial-peer 5014 dial-peer 1022504
! !
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
396
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Through the CUBE
COR List ! !
Configuration
dial-peer cor list From-Ent3105 dial-peer cor list From-BGL-Ent3105
member Ent3105 member BGL-Ent3105
member PGW-Ent3105 member RCDN-Ent3106
! !
dial-peer cor list To-Ent3105 dial-peer cor list To-BGL-Ent3105
member Ent3105 member BGL-Ent3105
! !
dial-peer cor list From-PGW-Ent3105 dial-peer cor list From-RCDN-Ent3106
member Ent3105 member BGL-Ent3105
! !
dial-peer cor list To-PGW-Ent3105 dial-peer cor list To-RCDN-Ent3106
member PGW-Ent3105 member RCDN-Ent3106
! !
Interface ! !
Configuration
interface GigabitEthernet0/0/0 interface GigabitEthernet0/0/1
ip address [Link] ip address [Link] [Link]
[Link]
negotiation auto
negotiation auto
!
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
397
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Through the CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
398
Multi-Tenancy
Example: Configuring Multi VRF where Media Flows Through the CUBE
!
dial-peer voice 1022502 voip
corlist outgoing To-BGL-Ent3105
description *** Outbound Trunk to BT-Ent304 DN
Reouting ****
destination-pattern 8115
session protocol sipv2
session target ipv4:[Link]
session transport tcp
voice-class codec 1
voice-class sip profiles 1
voice-class sip options-keepalive
voice-class sip pass-thru content sdp
voice-class sip bind control source-interface
GigabitEthernet0/0/1
voice-class sip bind media source-interface
GigabitEthernet0/0/1
!
dial-peer voice 1022503 voip
corlist incoming From-RCDN-Ent3106
description Inbound Trunk from PGW-Ent3105
session protocol sipv2
session transport tcp
destination dpg 9992
incoming uri via 102254
voice-class codec 1
voice-class sip profiles 1
voice-class sip options-keepalive
voice-class sip pass-thru content sdp
voice-class sip bind control source-interface
GigabitEthernet0/0/0.306
voice-class sip bind media source-interface
GigabitEthernet0/0/0.306
!
dial-peer voice 1022504 voip
corlist outgoing To-RCDN-Ent3106
description Outbound Trunk to PGW-Ent3105
destination-pattern 8115
session protocol sipv2
session target ipv4:[Link]:7016
session transport tcp
voice-class codec 1
voice-class sip profiles 1
voice-class sip options-keepalive
voice-class sip pass-thru content sdp
voice-class sip bind control source-interface
GigabitEthernet0/0/0.306
voice-class sip bind media source-interface
GigabitEthernet0/0/0.306
!
Debug Information
Note Execute sh sip-ua calls called-number +16089185043, to check the call behaviour.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
399
Multi-Tenancy
Troubleshooting Tips
Troubleshooting Tips
The following commands are helpful for troubleshooting:
• show voip rtp connections
The following is an example where media flow-around is configured. The output shows 0 connections
since media does not flow through CUBE.
Device#show voip rtp connnections
VoIP RTP Port Usage Information:
Max Ports Available: 19999, Ports Reserved: 101, Ports in Use: 0
Port range not configured
Min Max Ports Ports Ports
Media-Address Range Port Port Available Reserved In-use
------------------------------------------------------------------------------
Global Media Pool 8000 48198 19999 101 0
------------------------------------------------------------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
400
Multi-Tenancy
Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
401
Multi-Tenancy
Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
402
CHAPTER 28
Configuring Multi-Tenants on SIP Trunks
This feature allows specific global configurations for multiple tenants on SIP trunks that allow differentiated
services for tenants. Configuring Multi-Tenants on SIP Trunks allows each tenant to have their own individual
configurations. The configurations include timers, credentials, bind requests, and other parameters which are
available under sip-ua and voice service voip/sip configurations. Multi-tenant functionality helps to create
multiple configurations with ease and provides support for scalable and flexible mix of typical enterprise
services.
• Feature Information for Configuring Multi-Tenants on SIP Trunks, on page 403
• Information About Configuring Multi-tenants on SIP Trunks, on page 403
• How to Configure Multi-Tenants on SIP Trunks, on page 407
• Example: SIP Trunk Registration in Multi-Tenant Configuration, on page 409
Support for Cisco IOS 15.6(2)T This feature allows the provision to
Configuring Multi configure specific global configurations for
Cisco IOS XE Denali 16.3.1
Tenants on SIP multiple tenants on SIP trunks.
Trunks
The following commands were introduced:
voice class tenant <tag> and voice-class
sip tenant<tag>.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
403
Multi-Tenancy
Information About Configuring Multi-tenants on SIP Trunks
The voice class tenant <tag> command allows sip-specific attributes to be configured at per tenant basis.
The command voice class tenant <tag> can be then applied to individual dial-peers, thereby associating them
to a particular tenant. See the following table "Multi-tenant Configuration List" for information on the complete
list of configurations present under the voice class tenant <tag>.
If tenants are configured under dial-peer, then configurations are applied in the following order of preference.
• Dial-peer configuration
• Tenant configuration
• Global configuration
That is, if the value of the attribute under dial-peer configuration is system, then the value is taken from the
tenant configuration. And, if the value under the tenant configuration is also system, then the global
configuration is used.
If there are no tenants configured under dial-peer, then the configurations are applied using the default behavior
in the following order:
• Dial-peer configuration
• Global configuration
The following table lists the various configurations present under voice class tenant <tag>. For more
information on specific configurations, see the Voice and Video command reference guide lists.
Note Attributes that are not available under voice class tenant <tag> use the default behavior—With preference
of dial-peer followed by the global configuration.
Command Description
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
404
Multi-Tenancy
Information About Configuring Multi-tenants on SIP Trunks
Command Description
dns -a-override Skip DNS A/AAAA query when SRV query timesout
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
405
Multi-Tenancy
Information About Configuring Multi-tenants on SIP Trunks
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
406
Multi-Tenancy
How to Configure Multi-Tenants on SIP Trunks
tel-config Tel format cfg for headers other than req -line in
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
407
Multi-Tenancy
Configuring Multi-Tenants on SIP Trunks
Device> enable
Step 3 Use the following commands to configure multi-tenants: Use the voice-class sip tenant <tag> command in the global
configuration mode to configure a tenant with sip-specific
• voice class tenant <tag> in the global configuration
attributes. This command tag can then be applied to one or
mode
more dial-peers using the voice-class sip tenant <tag>
Once you configure the voice class tenant <tag> command under the dial-peers.
command in the global mode, the configuration will
move to the voice class tenant <tag> submode. You
can configure all the sip-specific attributes in this
submode.
• voice-class sip tenant <tag> in the dial-peer
configuration mode
Example:
In global configuration mode
! Configuring tenant 1
Device(config)# voice class tenant 1
Device (config-class)# ?
aaa – sip-ua AAA related configuration
anat – Allow alternative network address types IPV4
and IPV6
asserted-id – Configure SIP-UA privacy identity
settings
……
……
……
Video – video related function
Warn-header – SIP related config for SIP. SIP
warning-header global config.
Device (config-voi-tenant)# end
--------
! Configuring tenant 2
Device(config)# voice class tenant 2
Device (config-class)# ?
aaa – sip-ua AAA related configuration
anat – Allow alternative network address types IPV4
and IPV6
asserted-id – Configure SIP-UA privacy identity
settings
……
……
outbound-proxy - Configure an Outbound Proxy Server
pass-thru - SIP pass-through global config
……
……
srtp - Allow SIP related SRTP options
Warn-header – SIP related config for SIP. SIP
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
408
Multi-Tenancy
Example: SIP Trunk Registration in Multi-Tenant Configuration
Example:
In dial-peer configuration mode
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
409
Multi-Tenancy
Example: SIP Trunk Registration in Multi-Tenant Configuration
outbound-proxy ipv4:[Link]:9040
bind control source-interface GigabitEthernet0/1
For multi-tenancy support on Cisco Unified Border Element, you can configure voice class tenants with
different credentials, but having the same registrar. In that scenario, it is recommended that you configure the
CLI commands sip-server and registrar under voice class tenant configuration. The following is a sample
configuration:
voice class tenant 1
credentials number 1111 username test password 7 071B245B5D1D realm [Link]
authentication username test password 7 06120A3258
registrar ipv4:[Link] expires 120
sip-server ipv4:[Link]
!
voice class tenant 2
credentials number 2222 username test password 7 09584B1E0A11 realm [Link]
authentication username test2 password 7 071B245F5A
registrar ipv4:[Link] expires 120
sip-server ipv4:[Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
410
PA R T IV
Codecs
• Codec Support and Restrictions, on page 413
• Codec Preference Lists, on page 419
CHAPTER 29
Codec Support and Restrictions
This chapter provides advanced information about the support of and restrictions for using certain codecs
with CUBE. For basic information on how to configure codecs, refer to the Introduction to Codecs section.
• Feature Information for Codec Support on CUBE, on page 413
• OPUS Codec Support on CUBE, on page 414
• ISAC Codec Support on CUBE, on page 416
• AAC-LD MP4A-LATM Codec Support on Cisco UBE, on page 416
Opus Codec Cisco IOS XE Opus audio codec support on CUBE was introduced.
Support Amsterdam 17.3.1a
The following commands were introduced or modified as part of
Opus codec feature:
• codec opus [profile tag]
• codec profile tag profile
• codec preference value codec-type [profile profile-tag]
• rtp payload-type opus payload-type-number
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
413
Codecs
OPUS Codec Support on CUBE
ISAC Codec 15.1(1)T The ISAC Codec Support on CUBE was introduced.
Support
The following commands were introduced by this feature: codec
isac, codec preference tag isac.
Note Opus codec is only supported for SIP-SIP call scenarios. It is not supported for TDM-SIP or Analog-SIP
flows.
• codec profile tag profile—The CLI command configured under global configuration mode is enhanced
to configure opus as a supported codec:
router(config)#codec profile 2 opus
router(conf-codec-profile)#fmtp "fmtp:114 maxplaybackrate=16000;
sprop-maxcapturerate=16000; maxaveragebitrate=20000; stereo=1; sprop-stereo=0;
useinbandfec=0; usedtx=0"
router(conf-codec-profile)#exit
• codec preference value codec-type [ profileprofile tag]—The CLI command configured under voice
class configuration mode is enhanced to configure opus as a preferred codec on the dial-peer:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
414
Codecs
Restrictions for Opus Codec Support on CUBE
• rtp payload-type [opus number]—The CLI command configured under dial-peer configuration mode
is enhanced to configure opus as a supported payload type:
router(config)#dial-peer voice 604 voip
router(config-dial-peer)#rtp payload-type opus 126
• It is not mandatory that you configure a codec profile for Opus. For delayed offer to early offer flows,
a codec profile must be used to configure an fmtp value for the initial invite.
• The CLI command show call active voice [brief | compact] is modified to include details on Opus codec
in the command output.
• The CLI command show sip-ua calls is modified to include details on Opus codec in the command
output.
• Calls that require Opus codec transcoding as part of the Offer-Answer exchange are disconnected.
• Opus Codec is supported for both secure and non-secure calls (RTP-to-RTP, SRTP-to-SRTP,
SRTP-to-RTP, and RTP-to-SRTP).
• Opus supports several clock rates. Only the highest clock rate of 48000 is advertised in the SDP. The
following is a sample configuration of SDP for Opus codec:
m=audio 16000 RTP/AVP 114 a=rtpmap:114 opus/48000/2
• Opus codec defines the optional media format (fmtp) parameters in a call. CUBE passes through the
optional fmtp parameters from one side to other if Opus codec is configured on both sides of the call.
• The following are the fmtp parameters defined by Opus codec:
• maxaveragebitrate
• maxplaybackrate
• stereo
• useinbandfec
• usedtx
• sprop-maxcapturerate
• sprop-stereo
• Dynamic payload interworking is enabled by default on CUBE. Configure asymmetric payload [full]
if CUBE is not required to handle payload interworking. In this scenario, interworking is handled at the
endpoints handling the media.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
415
Codecs
ISAC Codec Support on CUBE
• CUBE does not support processing of multiple fmtp lines. If the received SDP has multiple fmtp lines,
then only the first fmtp line is passed in the outbound INVITE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
416
Codecs
Restrictions for AAC-LD MP4A-LATM Codec Support on Cisco UBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
417
Codecs
Restrictions for AAC-LD MP4A-LATM Codec Support on Cisco UBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
418
CHAPTER 30
Codec Preference Lists
This chapter describes how to negotiate an audio codec from a list of codec associated with a preference. This
chapter also describes how to disable codec filtering by configuring CUBE to send an outgoing offer with all
configured audio codecs in the list assuming that the dspfarm supports all these codecs.
• Feature Information for Negotiation of an Audio Codec from a List of Codecs, on page 419
• Codecs Configured Using Preference Lists, on page 420
• Prerequisites for Codec Preference Lists, on page 420
• Restrictions for Codecs Preference Lists, on page 421
• How to Configure Codec Preference Lists, on page 421
• Troubleshooting Negotiation of an Audio Codec from a List of Codecs, on page 424
• Verifying Negotiation of an Audio Codec from a List of Codecs, on page 425
Table 50: Feature Information for Negotiation of an Audio Codec from a List of Codecs on Each Leg of a SIP-to-SIP Call on the Cisco
Unified Border Element
Negotiation of an Audio Codec from 15.1(2)T The Negotiation of an Audio Codec from a List of
a List of Codecs on Each Leg of a Codecs on Each Leg of a SIP-to-SIP Call on the Cisco
SIP-to-SIP Call on the Cisco Unified Unified Border Element feature supports negotiation of
Border Element an audio codec using the Voice Class Codec and Codec
Transparent infrastructure on the Cisco UBE.
The following command was introduced or modified:
voice-class codec (dial peer).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
419
Codecs
Codecs Configured Using Preference Lists
Negotiation of an Audio Codec from Cisco IOS The Negotiation of an Audio Codec from a List of
a List of Codecs on Each Leg of a XE Release Codecs on Each Leg of a SIP-to-SIP Call on the Cisco
SIP-to-SIP Call on the Cisco Unified 3.8S Unified Border Element feature supports negotiation of
Border Element an audio codec using the Voice Class Codec and Codec
Transparent infrastructure on the Cisco UBE.
The following command was introduced or modified:
voice-class codec (dial peer).
Negotiation of an Audio Codec from 15.3(2)T This feature provides high availability support for
a List of Codecs on Each Leg of a negotiation of an audio codec from a list of codecs on
SIP-to-SIP Call on the Cisco Unified each leg of a SIP-to-SIP call on the Cisco Unified Border
Border Element. Element under the Voice Class Codec.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
420
Codecs
Restrictions for Codecs Preference Lists
Note Codec preference in the voice class codec on the outgoing call leg is not followed when the same codecs are
available in the respective incoming invite with SDP with different codec preference. Cube prioritizes and
follows the incoming invite with SDP codec preference when compared to the voice class codec preference
on the outgoing dial-peer leg.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
421
Codecs
Configuring Audio Codecs Using a Codec Voice Class and Preference Lists
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class codec tag
4. Do the following for each audio codec you want to configure in the voice class:
• codec preference value codec-type[profile profile-tag ]
• codec preference value codec-type[bytes payload-size fixed-bytes ]
• codec preference value isac [mode {adaptive | independent} [bit-rate value framesize { 30 | 60
} [fixed] ]
• codec preference value ilbc [mode frame-size [bytes payload-size]]
• codec preference value mp4-latm [profile tag]
5. exit
6. dial-peer voice number voip
7. voice-class codec tag offer-all
8. end
DETAILED STEPS
Procedure
Step 3 voice class codec tag Enters voice-class configuration mode for the specified
codec voice class.
Example:
Device(config)# voice class codec 10
Step 4 Do the following for each audio codec you want to Configure a codec within the voice class and specifies a
configure in the voice class: preference for the codec. This becomes part of a preference
list
• codec preference value codec-type[profile profile-tag
]
• codec preference value codec-type[bytes payload-size
fixed-bytes ]
• codec preference value isac [mode {adaptive |
independent} [bit-rate value framesize { 30 | 60 }
[fixed] ]
• codec preference value ilbc [mode frame-size [bytes
payload-size]]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
422
Codecs
Disabling Codec Filtering
Step 6 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Step 7 voice-class codec tag offer-all Applies the previously configured voice class and associated
codecs to a dial peer.
Example:
Device(config-dial-peer)# voice-class codec 10 • The offer-all keyword allows the device to offer all
codecs configured in a codec voice class.
Note This configuration is applicable only for early offer calls from the Cisco UBE. For delayed offer calls, by
default all codecs are offered irrespective of this configuration.
Perform this task to disable codec filtering and allow all the codecs configured on an outbound leg.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. voice-class codec tag offer-all
5. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
423
Codecs
Troubleshooting Negotiation of an Audio Codec from a List of Codecs
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 4 voice-class codec tag offer-all Adds all the configured voice class codec to the outgoing
offer from the Cisco UBE.
Example:
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
424
Codecs
Verifying Negotiation of an Audio Codec from a List of Codecs
SUMMARY STEPS
1. enable
2. show call active voice brief
3. show voip rtp connections
4. show sccp connections
5. show dspfarm dsp active
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
425
Codecs
Verifying Negotiation of an Audio Codec from a List of Codecs
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 2
Multicast call-legs: 0
Total call-legs: 4
1243 : 11 971490ms.1 +-1 pid:1 Answer 1230000 connecting
dur 00:00:00 tx:415/66400 rx:17/2561
IP [Link]:19304 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
1243 : 12 971500ms.1 +-1 pid:2 Originate 3210000 connected
dur 00:00:00 tx:5/10 rx:4/8
IP [Link]:16512 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729br8 TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
0 : 13 971560ms.1 +0 pid:0 Originate connecting
dur 00:00:08 tx:415/66400 rx:17/2561
IP [Link]:2000 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
0 : 15 971570ms.1 +0 pid:0 Originate connecting
dur 00:00:08 tx:5/10 rx:3/6
IP [Link]:2000 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g729br8 TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 2
Multicast call-legs: 0
Total call-legs: 4
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
426
Codecs
Verifying Negotiation of an Audio Codec from a List of Codecs
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
427
Codecs
Verifying Negotiation of an Audio Codec from a List of Codecs
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
428
PA R T V
DSP Services
• Transcoding, on page 431
• Transrating, on page 449
• Call Progress Analysis Over IP-to-IP Media Session, on page 451
• Voice Packetization, on page 459
• Fax Detection for SIP Call and Transfer, on page 461
CHAPTER 31
Transcoding
Transcoding is a process of converting one voice codec to another. For example, transcoding between iLBC
and G.711 or iLBC and G.729.
• With LTI transcoding, higher performance is achieved since there is no need for extra SCCP legs and
associated RTP streams. The performance is in line high-density mode that is offered with SCCP-based
transcoding.
• crypto pki trustpoint configuration is not required for Secure Real-Time Transport Protocol (SRTP)
to Real-Time Transport Protocol (RTP) calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
431
DSP Services
Configure LTI-Based Transcoding
• High density transcoding needs to be enabled for higher performance. High density transcoding will
flow-around through the transcoder.
• Secure Real-time Transport Protocol (SRTP) to Real-time Transport Protocol (RTP) using transcoder
requires crypto pki trustpoint configuration to establish the Transport Layer Security (TLS) connection
with SCCP server.
Note Integrated Services Routers Generation 1 series and Integrated Services Routers Generation 2 Series devices
support SCCP-based Transcoding only.
Note We recommend that you configure LTI-based Transcoding for Cisco Aggregated Services Routers (ASR),
Cisco Integrated Services Generation 2 Routers (ISR G2), Cisco 4000 Series Integrated Services Routers (ISR
G3), Cisco 8200 Catalyst Edge Series, and Cisco 8300 Catalyst Edge Series.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice-card voice-interface-slot-number
4. dsp services dspfarm
5. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
432
DSP Services
Configure LTI-Based Transcoding
DETAILED STEPS
Procedure
Step 3 voice-card voice-interface-slot-number Configures a voice card and enters voice-card configuration
mode.
Example:
Device(config)# voice-card 0/2
Step 4 dsp services dspfarm Enable voice-only DSP services on the Voice Card.
Step 6 dspfarm profile profile-identifier transcode Enters configuration mode for a DSP farm profile and
defines a profile for DSP farm services.
Example:
Device(config)# dspfarm profile 2 transcode • profile-identifier- Number that uniquely identifies a
profile. Range: 1–65535.
• transcode- Enables profile for transcoding.
Step 7 codec codec Add a list of codecs that you wish to transcode.
Example:
Device(config-dspfarm-profile)# codec opus
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
433
DSP Services
Configuration Examples for LTI Based Transcoding
Secure-CUBE(cs-server)#no shut
%Some server settings cannot be changed after CA certificate generation.
% Please enter a passphrase to protect the private key
% or type Return to exit
Password:
Re-enter password:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
434
DSP Services
Configuration Examples for LTI Based Transcoding
Password:
Re-enter password:
!Assign trustpoint for sip-ua, this trustpoint is used for all SIP signaling between CUBE
and CUCM.
sip-ua
crypto signaling remote-addr <cucm pub ip address> [Link] trustpoint CUBE-TLS
crypto signaling remote-addr <cucm sub ip address> [Link] trustpoint CUBE-TLS
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
435
DSP Services
Configuring SCCP-based Transcoding (ISR-G2 devices only)
!or or default trustpoint can be configured for all SIP signaling from CUBE.
sip-ua
crypto signaling default trustpoint CUBE-TLS
!Enable SRTP.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
436
DSP Services
Configuring SCCP-based Transcoding (ISR-G2 devices only)
DETAILED STEPS
Procedure
Step 3 voice-card voice-interface-slot-number Configures a voice card and enters voice-card configuration
mode.
Example:
Device(config)# voice-card 1
Step 5 dsp service dspfarm Enable voice-only dspfarm services on the Voice Card.
Step 9 sdspfarm transcode sessions units Define maximum number of dspfarm transcode session.
Step 10 sdspfarm tag value Device-Name Configures a name for the transcoder.
Example:
Device(config-telephony)# sdspfarm tag 1
CUBE-XCODE
Step 11 max-ephones max-phones-to-be-supported Configures the maximum number of phones that are to be
supported.
Step 13 ip source-address CUBE-internal-ipv4-address [port Defines an IP address and port number for the telephony
port-number] service.
Example:
Device(config-telephony)# ip source-address
[Link] port 2000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
437
DSP Services
TLS for SCCP Connection for DSP Services
Step 16 sccp ccm CUBE-internal-ipv4-address identifier Configures call manager related parameter values.
identifier-number version version-number
Step 17 sccp Enable Skinny Client Control Protocol.
Step 18 sccp ccm group group-id Configures Call Manager Group and enters SCCP CCM
configuration mode.
Example:
Device(config)#sccp ccm group 1
Step 19 associate ccm CCM-identifier priority priority Configures Call Manager Group and enters SCCP CCM
configuration mode.
Example:
Device(config-sccp-ccm)# associate ccm 1 priority
1
Step 20 associate profile profile-identifier register Device-Name Specifies the device name that needs to register.
Example:
Device(config-sccp-ccm)# associate profile 1
register CUBE-XCODE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
438
DSP Services
Configuring Secure Transcoding
SRTP-RTP interworking is available with normal and universal transcoders. The transcoder on the Cisco
Unified Border Element is invoked using SCCP messaging between the SCCP server and the SCCP client.
SCCP messages carry the SRTP keys to the digital signal processor (DSP) farm at the SCCP client. The
transcoder can be within the same router or can be located in a separate router. TLS should be disabled only
when the transcoder is located in the same router. To disable TLS, configure the no form of the tls command
in DSPFARM profile configuration mode. Disabling TLS improves CPU performance.
SUMMARY STEPS
1. enable
2. configure terminal
3. ip http server
4. crypto pki server cs-label
5. database level complete
6. grant auto
7. no shutdown
8. exit
DETAILED STEPS
Procedure
Device> enable
Step 3 ip http server Enables the HTTP server on your IPv4 or IPv6 system,
including the Cisco web browser user interface.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
439
DSP Services
Configuring a Trustpoint for the Secure Universal Transcoder
Step 5 database level complete Controls what type of data is stored in the certificate
enrollment database.
Example:
• In the example, each issued certificate is written to the
Device(cs-server)# database level complete database.
Device(cs-server)# no shutdown
Device(cs-server)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. crypto pki trustpoint name
4. enrollment url url
5. serial-number
6. revocation-check method
7. rsakeypair key-label
8. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
440
DSP Services
Configuring a Trustpoint for the Secure Universal Transcoder
DETAILED STEPS
Procedure
Device> enable
Step 3 crypto pki trustpoint name Declares the trustpoint that the router uses and enters
ca-trustpoint configuration mode.
Example:
• In the example, the trustpoint is named secdsp.
Device(config)# crypto pki trustpoint secdsp
Device(ca-trustpoint)# serial-number
Step 7 rsakeypair key-label Specifies which key pair to associate with the certificate.
Example: • In the example, the key pair 3845-cube generated
during enrollment is associated with the certificate.
Device(ca-trustpoint)# rsakeypair 3845-cube
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
441
DSP Services
Configuring DSPFARM Services
Device(ca-trustpoint)# end
Step 10 crypto pki enroll name Obtains the certificate for the router from the CA.
Example: • Create and enter a new password if prompted.
Device(config)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. sccp local interface-type interface-number
4. sccp ccm ip-address identifier identifier-number version version-number
5. sccp
6. associate ccm identifier-number priority priority-number
7. associate profile profile-identifier register device-name
8. dspfarm profile profile-identifier transcode universal security
9. trustpoint trustpoint-label
10. codec codec-type
11. Repeat Step 10 to configure reuired codecs.
12. maximum sessions number
13. associate application sccp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
442
DSP Services
Associating SCCP to the Secure DSPFARM Profile
14. no shutdown
15. exit
DETAILED STEPS
Procedure
Device> enable
Step 3 sccp local interface-type interface-number Selects the local interface that SCCP applications
(transcoding and conferencing) use to register with Cisco
Example:
CallManager.
Device(config)# sccp local GigabitEthernet 0/0 • In the example, the following parameters are set:
• GigabitEthernet is defined as the interface type
that the SCCP application uses to register with
Cisco CallManager.
• The interface number that the SCCP application
uses to register with Cisco CallManager is
specified as 0/0.
Step 4 sccp ccm ip-address identifier identifier-number Adds a Cisco Unified Communications Manager server to
version version-number the list of available servers.
Example: • In the example, the following parameters are set:
• [Link] is configured as the IP address of the
Device(config)# sccp ccm [Link] identifier 1
version 5.0.1 Cisco Unified Communications Manager server.
• The number 1 identifies the Cisco Unified
Communications Manager server.
• The Cisco Unified Communications Manager
version is identified as 5.0.1.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
443
DSP Services
Associating SCCP to the Secure DSPFARM Profile
Step 7 associate profile profile-identifier register Associates a DSPFARM profile with a Cisco CallManager
device-name group.
Example: • In the example, the following parameters are set:
• The number 1 identifies the DSPFARM profile.
Device(config-sccp-ccm)# associate profile 1
register sxcoder • Sxcoder is configured as the user-specified
device name in Cisco Unified CallManager.
Step 8 dspfarm profile profile-identifier transcode Defines a profile for DSPFARM services and enters
universal security DSPFARM profile configuration mode.
Example: • In the example, the following parameters are set:
• Profile 1 is enabled for transcoding.
Device(config-sccp-ccm)# dspfarm profile 1
transcode universal security • Profile 1 is enabled for secure DSPFARM
services.
Step 10 codec codec-type Specifies the codecs that are supported by a DSPFARM
profile.
Example:
• In the example, the g711ulaw codec is specified.
Device(config-dspfarm-profile)# codec g711ulaw
Step 12 maximum sessions number Specifies the maximum number of sessions that are
supported by the profile.
Example:
• In the example, a maximum of 84 sessions are
Device(config-dspfarm-profile)# maximum sessions supported by the profile. The maximum number of
84 sessions depends on the number of DSPs available
for transcoding.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
444
DSP Services
Registering the Secure Universal Transcoder to the CUBE
Device(config-dspfarm-profile)# associate
application sccp
Device(config-dspfarm-profile)# no shutdown
Device(config-dspfarm-profile)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. telephony-service
4. sdspfarm transcode sessions number
5. sdspfarm tag number device-name
6. em logout time1 time2 time3
7. max-ephones max-ephones
8. max-dn max-directory-numbers
9. ip source-address ip-address
10. secure-signaling trustpoint label
11. tftp-server-credentials trustpoint label
12. create cnf-files
13. no sccp
14. sccp
15. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
445
DSP Services
Registering the Secure Universal Transcoder to the CUBE
DETAILED STEPS
Procedure
Device> enable
Device(config)# telephony-service
Step 4 sdspfarm transcode sessions number Specifies the maximum number of transcoding sessions
allowed per Cisco CallManager Express router.
Example:
• In the example, a maximum of 84 DSPFARM
Device(config-telephony)# sdspfarm transcode sessions are specified.
sessions 84
Step 5 sdspfarm tag number device-name Permits a DSPFARM to be to registered to Cisco Unified
CallManager Express and associates it with an SCCP client
Example:
interface's MAC address.
Device(config-telephony)# sdspfarm tag 1 sxcoder • In the example, DSPFARM 1 is associated with the
sxcoder device.
Step 6 em logout time1 time2 time3 Configures three time-of-day-based timers for
automatically logging out all Extension Mobility feature
Example:
users.
Device(config-telephony)# em logout 0:0 0:0 0:0 • In the example, all users are logged out from
Extension Mobility after 00:00.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
446
DSP Services
Registering the Secure Universal Transcoder to the CUBE
Step 9 ip source-address ip-address Identifies the IP address and port through which IP phones
communicate with a Cisco Unified CallManager Express
Example:
router.
Device(config-telephony)# ip source-address • In the example, [Link] is configured as the router
[Link] IP address.
Step 10 secure-signaling trustpoint label Specifies the name of the Public Key Infrastructure (PKI)
trustpoint with the certificate to be used for TLS
Example:
handshakes with IP phones on TCP port 2443.
Device(config-telephony)# secure-signaling • In the example, PKI trustpoint secdsp is configured.
trustpoint secdsp
Step 11 tftp-server-credentials trustpoint label Specifies the PKI trustpoint that signs the phone
configuration files.
Example:
• In the example, PKI trustpoint scme is configured.
Device(config-telephony)# tftp-server-credentials
trustpoint scme
Step 12 create cnf-files Builds the XML configuration files that are required for
IP phones in Cisco Unified CallManager Express.
Example:
Device(config)# sccp
Device(config)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
447
DSP Services
Configuration Examples for SCCP Based Transcoding
Device(config-voicecard)# dspfarm
Device(config-voicecard)# dsp services dspfarm
Device(config-voicecard)# exit
! Configuring SCCP
Device(config)# no sccp
Device(config)# sccp local GigabitEthernet0/0
Device(config)# sccp ccm [Link] identifier 1 version 4.0
Device(config)# sccp
Device(config)# sccp ccm group 1
Device(config-sccp-ccm)# associate ccm 1 priority 1
Device(config-sccp-ccm)# associate profile 1 register CUBE-XCODE
Device(config-sccp-ccm)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
448
CHAPTER 32
Transrating
Transrating is a process of configuring a different packetization for a voice codec. For example, transrating
G.729 20ms to G.729 30ms.
• Configuring Transrating for a Codec, on page 449
DETAILED STEPS
Procedure
Step 3 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
449
DSP Services
Configuring Transrating for a Codec
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
450
CHAPTER 33
Call Progress Analysis Over IP-to-IP Media
Session
The Call Progress Analysis Over IP-IP Media Session feature enables the detection of automated answering
systems and live human voices on outbound calls and communicates the detected information to the external
application. Typically, call progress analysis (CPA) is extensively used in contact center deployments in
conjunction with the outbound Session Initiation Protocol (SIP) dialer, where CPA is enabled on the Cisco
Unified Border Element (Cisco UBE), and digital signal processors (DSP) perform the CPA functionality.
• Feature Information for Call Progress Analysis Over IP-IP Media Session, on page 451
• Restrictions for Call Progress Analysis Over IP-to-IP Media Session, on page 452
• Information About Call Progress Analysis Over IP-IP Media Session, on page 453
• How to Configure Call Progress Analysis Over IP-to-IP Media Session, on page 454
• Configuration Examples for the Call Progress Analysis Over IP-to-IP Media Session, on page 457
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
451
DSP Services
Restrictions for Call Progress Analysis Over IP-to-IP Media Session
Table 51: Feature Information for Call Progress Analysis Over IP-IP Media Session
Call Progress Analysis Over 15.3(2)T The Call Progress Analysis Over IP-to-IP
IP-to-IP Media Session Media Session feature enables detection of
automated answering systems and live
human voices on outbound calls and
communicates the detected information to
an external application.
The following command was introduced:
call-progress-analysis.
Call Progress Analysis Over Cisco IOS XE Release The Call Progress Analysis Over IP-to-IP
IP-to-IP Media Session 3.9S Media Session feature enables detection of
automated answering systems and live
human voices on outbound calls and
communicates the detected information to
an external application.
The following command was introduced:
call-progress-analysis.
Support for additional call flows 15.5(2)T Call Progress Analysis feature is enhanced
to support the following call-flows:
Cisco IOS XE Release
3.15S • 180 SIP response received without SDP
• Direct call connect (without 18x from
Service Provider)
• Multiple 18x response to INVITE
• Early dialog UPDATE
• Dialer-CUBE CPA call record
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
452
DSP Services
Information About Call Progress Analysis Over IP-IP Media Session
• With VCC codec configured on the dial-peer, the list of codecs in the VCC should match with the list
of codec provisioned in DSP transcoder profile when CPA is enabled.
18x or 200 Cisco IOS to dialer Cisco UBE informs the dialer if
CPA is enabled for a call or not.
New INVITE Dialer to Cisco IOS Dialer requests Cisco IOS or the
Cisco UBE to activate the CPA
algorithm for this session.
CPA Events
Table 53: CPA Event Detection List
FT Fax/Modem tone
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
453
DSP Services
How to Configure Call Progress Analysis Over IP-to-IP Media Session
SUMMARY STEPS
1. enable
2. configure terminal
3. dspfarm profile profile-identifier transcode
4. call-progress-analysis
5. exit
6. voice service voip
7. cpa timing live-person max-duration
8. cpa timing term-tone max-duration
9. cpa threshold active-signal signal-threshold
10. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
454
DSP Services
Enabling CPA and Setting the CPA Parameters
Step 3 dspfarm profile profile-identifier transcode Enters DSP farm profile configuration mode, defines a
profile for DSP farm services, and enables the profile for
Example:
transcoding.
Device(config)# dspfarm profile 15 transcode
Step 5 exit Exits DSP farm profile configuration mode and enters
global configuration mode.
Example:
Device(config-dspfarm-profile)# exit
Step 7 cpa timing live-person max-duration (Optional) Sets the maximum waiting time (in
milliseconds) that the CPA algorithm uses to determine if
Example:
a call is answered by a live human.
Device(conf-voi-serv)# cpa timing live-person 2501
Step 8 cpa timing term-tone max-duration (Optional) Sets the maximum waiting time (in
milliseconds) that the CPA algorithm uses to wait for the
Example:
answering machine termination tone after the answering
Device(conf-voi-serv)# cpa timing term-tone 15500 machine is detected.
Step 9 cpa threshold active-signal signal-threshold (Optional) Sets the threshold (in decibels) of an active
signal that is related to the measured noise floor level.
Example:
Device(conf-voi-serv)# cpa threshold active-signal • If a signal threshold configured by this command is
18db greater than the measured noise floor level, then the
signal is considered as active. The active signal
thresholds that you can configure are 9, 12, 15, 18,
and 21 decibels.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
455
DSP Services
Verifying the Call Progress Analysis Over IP-to-IP Media Session
SUMMARY STEPS
1. enable
2. show dspfarm profile profile-identifier
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
456
DSP Services
Troubleshooting Tips
Troubleshooting Tips
Use the following commands to troubleshoot the call progress analysis for SIP-to-SIP calls:
• debug ccsip all
• debug voip ccapi inout
• debug voip hpi all
• debug voip ipipgw
• debug voip media resource provisioning all
Device> enable
Device# configure terminal
Device(config)# dspfarm profile 15 transcode
Device(config-dspfarm-profile)# call-progress-analysis
Device(config-dspfarm-profile)# exit
Device(config)# voice service voip
Device(conf-voi-serv)# cpa timing live-person 2501
Device(conf-voi-serv)# cpa timing term-tone 15500
Device(conf-voi-serv)# cpa threshold active-signal 18db
Device(conf-voi-serv)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
457
DSP Services
Example: Enabling CPA and Setting the CPA Parameters
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
458
CHAPTER 34
Voice Packetization
After the voice wavelength is digitized, the DSP collects the digitized data for an amount of time until there
is enough data to fill the payload of a single packet.
With G.711, either 20 ms or 30 ms worth of voice is transmitted in a single packet. 20 ms worth of voice
corresponds to 160 samples per packet. With 20 ms worth of voice per packet, 50 packets are created per
second: 1 sec / 20 ms = 50.
The packetization rate has a direct effect on the total amount of bandwidth needed. More packets require more
headers, and each header adds 40 bytes to the packet. The Table 14: Codec and Bandwidth Information, on
page 54 table shows the effect of packetization rates on bandwidth utilization.
Codecs such as G.729 also compress the digitized output. G.729 creates a codeword for every 10 ms of voice.
This “codeword” is a predefined representation of a 10-ms sample of human voice. Two codewords are
contained in each packet at 50 packets per second or three codewords at 33.3 packets per second. Because
the codewords need fewer bits, the overall bandwidth required is reduced.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
459
DSP Services
Configuring Transrating for a Codec
DETAILED STEPS
Procedure
Step 3 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Step 4 codec codec-name bytes voice-payload-size [fixed-bytes] Configures a different packetizations for a voice codec.
Example:
Device(config-dial-peer)# codec g729r8 bytes 30
fixed-byte
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
460
CHAPTER 35
Fax Detection for SIP Call and Transfer
The fax detection feature detects whether an inbound call is from a fax machine. If the inbound call is from
a fax machine, the call is rerouted appropriately.
• Restrictions for Fax Detection for SIP Call and Transfer On Cisco IOS XE, on page 461
• Information About Fax Detection for SIP Call and Transfer, on page 461
• Fax Detection with Cisco IOS XE High Availability, on page 464
• How to Configure Fax Detection for SIP Calls, on page 464
• Configuration Examples for Fax Detection for SIP Calls, on page 468
• Feature Information for Fax Detection for SIP Call and Transfer, on page 469
Restrictions for Fax Detection for SIP Call and Transfer On Cisco
IOS XE
• The Fax Detect feature is only supported with routers fitted with DSP modules.
• Only the g711ulaw and g711alaw codecs can be used for detecting fax CNG tone.
• Each destination number can be of a maximum length of 32 characters.
• Fax Detection is only supported with LTI-based transcoding.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
461
DSP Services
Local Redirect Mode
Note Fax detection on CUBE is also supported through a TCL script. The script answers an incoming call, plays a
prompt and makes an outgoing voice or fax call. You can download the TCL script from the CiscoDevNet
Github.
An initial connection is made as a voice call through CUBE to the IVR. On detection of fax tones in the media
path, CUBE closes the connection to the IVR, then hunts through a list of numbers to establish a connection
to a fax machine or fax server, allowing the originating fax machine to complete its transmission. In a scenario
where T.38 is not supported by CUBE, it will fallback to passthrough.
For each call, a digital signal processor (DSP) channel is allocated to detect the fax CNG tone. This DSP
remains allocated until the original call leg clears at the end of the call. In the call flow example above, the
first fax machine is busy, so the CUBE establishes the call with the second fax machine.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
462
DSP Services
Refer Redirect Mode
Note For Local Redirect, new calls legs are negotiated as voice, not as fax session.
An initial connection is made as a voice call through CUBE to the IVR. On detection of fax tones in the media
path, CUBE closes the connection to the IVR. To transfer the call, CUBE first sends a re-invite to put the
original call leg on hold, then sends a SIP REFER with details of the remote fax server. From this point, CUBE
is no longer involved in the call flow as the originating fax communicates directly with the destination server.
For each call, a DSP channel or resource is allocated to detect the CNG tone. This resource is released once
the call transfer has been initiated.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
463
DSP Services
Fax Detection with Cisco IOS XE High Availability
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
464
DSP Services
Dial-peer Configuration to Redirect Fax Call
Step 3 dspfarm profile tag transcode universal Enters DSP farm profile configuration mode and enables
the profile for transcoding.
Example:
Device(config-dspfarm-profile)# cng-fax-detect
Step 6 asociate application CUBE Configures an application to the profile for LTI-based
transcoding.
Example:
Device(config-dspfarm-profile)# associate
application CUBE
Device(config-dspfarm-profile)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
465
DSP Services
Dial-peer Configuration to Redirect Fax Call
10. end
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Step 4 description tag Provides a description for the incoming dial-peer for Fax.
Example:
Step 5 session protocol sipv2 Configures SIP as the session protocol type.
Example:
Step 7 voice-class codec tag Applies the previously configured voice class and
associated codecs to a dial peer. The voice class codec can
Example:
only include g711ulaw and g711alaw.
Device(config-dial-peer)# voice-class codec 111
Step 8 no vad Disables voice activity detection (VAD) for the calls using
the dial peer being configured.
Example:
Device(config-dial-peer)# no vad
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
466
DSP Services
Verifying Fax Detection for SIP Calls
Device(config-dial-peer)# end
DETAILED STEPS
Procedure
Step 1 enable
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
467
DSP Services
Troubleshooting Fax Detection for SIP Calls
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
468
DSP Services
Example: Configuring Refer Redirect
Feature Information for Fax Detection for SIP Call and Transfer
The following table provides release information about the feature or features described in this module. This
table lists only the software release that introduced support for a given feature in a given software release
train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
469
DSP Services
Feature Information for Fax Detection for SIP Call and Transfer
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Table 55: Feature Information for Fax Detection for SIP Call and Transfer
Fax Detection for SIP Call and Cisco IOS 15.4(2)T Fax detection is the capability to detect
Transfer automatically whether an incoming call is
voice or fax. For calls coming from an IP
trunk to CUBE, the Fax Detection for SIP
Call and Transfer feature is used to detect
CNG tones (calling tones) so that the fax
server can handle the actual fax transmission
or redirect the fax call to a configured fax
number.
The following commands were introduced:
cng-fax-detect and detect-fax mode.
Fax Detection for SIP Call and Cisco IOS XE Support was introduced for SIP call and
Transfer on Cisco IOS XE Amsterdam 17.2.1r transfer for IP-to-IP calls on Cisco IOS XE
Platforms platforms for Cisco Unified Border Element.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
470
PA R T VI
Video
• Video Suppression, on page 473
CHAPTER 36
Video Suppression
The video suppression feature allows pass-through of only audio and image (for T.38 Fax) media types in
SDP and drops all other media capabilities.
• Feature Information for Video Suppression, on page 473
• Restrictions, on page 473
• Information About Video Suppression, on page 474
• Configuring Video Suppression, on page 474
• Troubleshooting Tips, on page 475
Restrictions
• Supports only SIP-SIP calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
473
Video
Information About Video Suppression
Feature Behavior
• If video suppression is enabled on any of the dial-peers (inbound or outbound), video capabilities are
not offered for that particular call.
• Configuring voice-class sip audio forced [system] command at a dial-peer level makes use of global
configuration level settings for allowing only audio and image media.
• Video suppression feature will work as expected even when codec transparent feature is configured.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
474
Video
Troubleshooting Tips
DETAILED STEPS
Procedure
Step 3 Enter one of the following commands: Enables pass-through of only audio and image media types
in SDP.
• In the dial-peer configuration mode
voice-class sip audio forced
• In the global VoIP SIP configuration mode
audio forced
Example:
In dial-peer configuration mode
Example:
In global VoIP SIP configuration mode
Troubleshooting Tips
The following commands are useful for debugging:
• show voip rtp connections
• show call active voice brief
• show call active video brief
• debug voip dialpeer
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
475
Video
Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
476
PA R T VII
Media Services
• Configuring RTCP Report Generation, on page 479
CHAPTER 37
Configuring RTCP Report Generation
The assisted Real-time Transport Control Protocol (RTCP) feature adds the ability for Cisco Unified Border
Element (Cisco UBE) to generate standard RTCP keepalive reports on behalf of endpoints. RTCP reports
determine the liveliness of a media session during prolonged periods of silence, such as call hold or mute.
Therefore, it is important for the Cisco UBE to generate RTCP reports irrespective of whether the endpoints
send or receive media.
Cisco UBE generates RTCP report only when inbound and outbound call legs are SIP, or SIP to H.323, or
H.323 to SIP.
• Prerequisites, on page 479
• Restrictions, on page 479
• Configuring RTCP Report Generation on Cisco UBE, on page 480
• Troubleshooting Tips, on page 481
• Feature Information for Configuring RTCP Report Generation, on page 482
Prerequisites
Cisco Unified Border Element
• Cisco IOS Release 15.1(2)T or a later release must be installed and running on your Cisco Unified Border
Element.
Restrictions
• RTCP report generation over IPv6 is not supported.
• RTCP report generation is not supported for Secure Real-time Transport Protocol (SRTP) or SRT Control
Protocol (SRTCP) pass-through as Cisco UBE is not aware of the media encryption or decryption keys.
• RTCP report generation is not supported for loopback calls, T.38 fax, and modem relay calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
479
Media Services
Configuring RTCP Report Generation on Cisco UBE
• RTCP or SRTCP report generation is not supported when Cisco UBE inserts a Digital Signal Processor
(DSP) for RTP-SRTP interworking on RTP and SRTP call legs.
• RTCP report generation is not supported when there is a call hold with an invalid media address such as
[Link] in Session Description Protocol (SDP) or Open Logical Channel (OLC).
• RTCP report generation is not supported for RTCP multiplexed with RTP on the same address and port.
• RTCP report generation is not supported on enterprise aggregation services routers (ASRs) and 4000
series integrated services routers (ISRs) when Media Termination Points are collocated with the Cisco
Unified Border Element. It affects RFC2833 and RFC4733 DTMF generation when MTP is used for
DTMF conversion from Out-of-Band (OOB) to RFC2833 or RFC4733.
• RTCP packet generation is not supported on the SIP leg when the H.323 leg puts the SIP leg on hold in
a Slow Start to Delayed-Offer call.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. allow-connections from-type to to-type
5. rtcp keepalive
6. end
DETAILED STEPS
Procedure
Router> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
480
Media Services
Troubleshooting Tips
Step 4 allow-connections from-type to to-type Allows connections between SIP endpoints in a VoIP
network.
Example:
Router(conf-voi-serv)# end
Troubleshooting Tips
Use the following debug commands for debugging related to RTCP keepalive packets:
• debug voip rtcp packet --Shows details related to RTCP keepalive packets such as RTCP sending and
receiving paths, Call ID, Globally Unique Identifier (GUID), packet header, and so on.
Caution Under moderate traffic loads, the debug voip rtp packet command produces a high volume of output and
the command should be enabled only when the call volume is very low.
• debug voip rtp packet --Shows details about VoIP RTP packet debugging trace.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
481
Media Services
Feature Information for Configuring RTCP Report Generation
• debug voip rtp session --Shows all RTP session debug information.
• debug voip rtp error --Shows details about debugging trace for RTP packet error cases.
• debug ip rtp protocol --Shows details about RTP protocol debugging trace.
• debug voip rtcp session --Shows all RTCP session debug information.
• debug voip rtcp error -- Shows details about debugging trace for RTCP packet error cases.
Assisted RTCP 15.1(2)T This feature adds the ability for Cisco UBE to generate standard RTCP keepalive
reports on behalf of endpoints and ensures the liveliness of a media session during
prolonged periods of silence, such as call hold.
The following commands were introduced or modified in this release: rtcp
keepalive, debug voip rtcp, debug voip rtp, debug ip rtp protocol, and ip
rtcp report interval.
Feature History Table entry for the Cisco Unified Border Element (Enterprise) .
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
482
Media Services
Feature Information for Configuring RTCP Report Generation
Assisted RTCP IOS XE Release This feature adds the ability for Cisco UBE to generate standard RTCP
3.17S keepalive reports on behalf of endpoints and ensures the liveliness of
a media session during prolonged periods of silence, such as call hold.
The following commands were introduced or modified in this release:
rtcp keepalive, debug voip rtcp, debug voip rtp, debug ip rtp
protocol, and ip rtcp report interval.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
483
Media Services
Feature Information for Configuring RTCP Report Generation
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
484
PA R T VIII
Media Recording
• Network-Based Recording, on page 487
• SIPREC (SIP Recording), on page 515
• Video Recording - Additional Configurations, on page 547
• Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording, on page 553
• Cisco Unified Communications Gateway Services--Extended Media Forking, on page 561
CHAPTER 38
Network-Based Recording
The Network-Based Recording feature supports software-based forking for Real-time Transport Protocol
(RTP) streams. Media forking provides the ability to create midcall multiple streams (or branches) of audio
and video associated with a single call and then send the streams of data to different destinations. To enable
network-based recording using Cisco Unified Border Element (CUBE), you can configure specific commands
or use a call agent. CUBE acts as a recording client and MediaSense Session Initiation Protocol (SIP) recorder
acts a recording server.
• Feature Information for Network-Based Recording, on page 487
• Restrictions for Network-Based Recording, on page 488
• Information About Network-Based Recording Using CUBE, on page 489
• How to Configure Network-Based Recording, on page 493
• Additional References for Network-Based Recording, on page 513
Security Readiness Criteria Cisco IOS XE Gibraltar Command show sip-ua calls is modified to display
(SRC)—Modified the Release 16.11.1a local crypto key and remote cryto key.
command show sip-ua calls.
Audio-only Stream Forking Cisco IOS 15.4(3)M The Audio-only Stream Forking of Video Call
of Video Call feature supports CUBE-based forking and recording
Cisco IOS XE 3.13S
of only audio calls in a call that includes both audio
and video. The following commands were
introduced: media-type audio.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
487
Media Recording
Restrictions for Network-Based Recording
Network-Based Recording of Cisco IOS 15.3(3)M The Network-Based Recording of Video Calls using
Video Calls Using CUBE CUBE feature supports forking and recording of
Cisco IOS XE 3.10S
video calls.
Network-Based Recording of Cisco IOS 15.2(1)T The Network-Based Recording of Audio Calls using
Audio Calls Using CUBE CUBE feature supports forking for RTP streams.
Cisco IOS XE 3.8S
The following commands were introduced or
modified: media class, media profile recorder,
media-recording, recorder parameter, recorder
profile, show voip recmsp session.
Note Mid-call gateway recording session stops when the call is on hold. For the use
case demonstrating the Hold function on the IP phone, see Call Recording
Examples for Network-Based and Phone-Based Recording.
• Any media service parameter change via Re-INVITE or UPDATE from Recording server is not supported
Midcall renegotiation and supplementary services can be done through the primary call only.
• Media service parameter change via Re-INVITE or UPDATE message from the recording server is not
supported
• Recording is not supported if CUBE is running a TCL IVR application with the exception of
[Link], which is supported with network based recording.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
488
Media Recording
Information About Network-Based Recording Using CUBE
Note CUBE simply forwards the RTP streams it receives to the SIP recorder. It does not support omitting any
pre-agent VRU activity from the recording.
If you want to omit the VRU segment from a recording, you must use the Unified CVP to route the agent
segment of the call back through CUBE. To do this, you need to separate ingress and media forking function
from one another, which means you must either route the call through the ingress router a second time, or
route it through a second router.
Given below is a typical deployment scenario of a CUBE-based recording solution. The information flow is
described below:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
489
Media Recording
Open Recording Architecture
The metadata carried in the SIP session between the recording client and the recording server is to:
• Carry the communication session data that describes the call.
• Send the metadata to the recording server. The recording server uses the metadata to associate
communication sessions involving two or more participants with media streams.
The call leg that is created between the recording client and the recording server is known as the recording
session.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
490
Media Recording
Network Layer
Network Layer
The ORA network layer is comprises call control systems, media sources, and IP foundation components,
such as routers and switches.
Application Layer
The ORA application layer supports in-call and post-call applications through open programming interfaces.
In-call applications include applications that make real-time business decisions (for example, whether to
record a particular call or not), control pause and resume from Interactive Voice Response (IVR) or agent
desktop systems, and perform metadata tagging and encryption key exchange at the call setup.
Post-call applications include the following:
• Traditional compliance search, replay, and quality monitoring.
• Advanced capabilities, such as speech analytics, transcription, and phonetic search.
• Custom enterprise integration.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
491
Media Recording
Media Forking Topologies
Metadata
Metadata is the information that is passed by the recording client to the recording server in a SIP session.
Metadata describes the communication session and its media streams.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
492
Media Recording
How to Configure Network-Based Recording
The recording server uses the metadata information along with other SIP message information, such as dialog
ID and time and date header, to derive a unique key. The recording server uses this key to store media streams
and associate the participant information with the media streams.
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
493
Media Recording
Configuring Network-Based Recording (with Media Profile Recorder)
Step 3 media profile recorder profile-tag Configures the media profile recorder and enters media
profile configuration mode.
Example:
Step 4 (Optional) media-type audio Configures recording of audio only in a call with both
audio and video. If this configuration is not done, both
Example:
audio and video are recorded.
Device(cfg-mediaprofile)# media-type audio
Device(cfg-mediaprofile)# exit
Step 7 media class tag Configures a media class and enters media class
configuration mode.
Example:
Device(cfg-mediaclass)# exit
Step 10 dial-peer voice dummy-recorder-dial-peer-tag voip Configures a recorder dial peer and enters dial peer voice
configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
494
Media Recording
Configuring Network-Based Recording (with Media Profile Recorder)
Step 12 destination-pattern [+] string [T] Specifies either the prefix or the full E.164 telephone
number (depending on your dial plan) to be used for a dial
Example:
peer.
Device(config-dial-peer)# destination-pattern Note
595959 The predefined valid entries for string are the digits 0 to
9, the letters A to F and, the following special characters:
• The asterisk (*) and pound sign (#) that appear on
standard touch-tone dial pads.
• Plus sign (+), which indicates that the preceding digit
occurred one or more times.
• Backslash symbol (\), which is followed by a single
character, and matches that character.
Step 13 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 15 session transport tcp Configures a VoIP dial peer to use Transmission Control
Protocol (TCP).
Example:
Device(config-dial-peer)# session transport tcp
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
495
Media Recording
Configuring Network-Based Recording (without Media Profile Recorder)
DETAILED STEPS
Procedure
Device> enable
Step 3 media class tag Configures the media class and enters media class
configuration mode.
Example:
Step 4 recorder parameter Enters media class recorder parameter configuration mode
to enable you to configure recorder-specific parameters.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
496
Media Recording
Configuring Network-Based Recording (without Media Profile Recorder)
Device(cfg-mediaclass-recorder)# exit
Device(cfg-mediaclass)# exit
Step 9 dial-peer voice dummy-recorder-dial-peer-tag voip Configures a recorder dial peer and enters dial peer voice
configuration mode.
Example:
Step 11 destination-pattern [+] string [T] Specifies either the prefix or the full E.164 telephone
number (depending on your dial plan) to be used for a dial
Example:
peer.
Device(config-dial-peer)# destination-pattern Note
595959 The predefined valid entries for string are the digits 0 to
9, the letters A to F and, the following special characters:
• The asterisk (*) and pound sign (#) that appear on
standard touch-tone dial pads.
• Plus sign (+), which indicates that the preceding digit
occurred one or more times.
• Backslash symbol (\), which is followed by a single
character, and matches that character.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
497
Media Recording
Verifying the Network-Based Recording Using CUBE
Step 12 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 14 session transport tcp Configures a VoIP dial peer to use Transmission Control
Protocol (TCP).
Example:
Device(config-dial-peer)# session transport tcp
Device(config-dial-peer)# end
SUMMARY STEPS
1. enable
2. show voip rtp connections
3. show voip recmsp session
4. show voip recmsp session detail call-id call-id
5. show voip rtp forking
6. show call active voice compact
7. show call active video compact
8. show sip-ua calls
9. show call active video brief
10. debug ccsip messages (for audio calls)
11. debug ccsip messages (for video calls)
12. debug ccsip messages (for audio-only recording in a call with both audio and video)
13. Enter one of the following:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
498
Media Recording
Verifying the Network-Based Recording Using CUBE
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
499
Media Recording
Verifying the Network-Based Recording Using CUBE
Example:
AnchorLeg Details:
Call ID: 141
Forking Stream type: voice-nearend
Participant: 708090
AnchorLeg Details:
Call ID: 1
Forking Stream type: voice-nearend
Forking Stream type: video-nearend
Participant: 1777
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
500
Media Recording
Verifying the Network-Based Recording Using CUBE
Stream State Displays the state of the call. This can be ACTIVE or HOLD.
Msp Call-Id Displays an internal Media service provider call ID and forking related statistics for an active
forked call.
Anchor Leg Call-id Displays an internal anchor leg ID, which is the dial peer where forking enabled. The output
displays the participant number and stream type. Stream type voice-near end indicates the called
party side.
Non-Anchor Call-id Displays an internal non-anchor leg ID, which is the dial peer where forking is not enabled. The
output displays the participant number and stream type. Stream type voice-near end indicates
the called party side.
Forked Call-id This forking leg call-id will show near-end and far-end stream call-id details with state of the
Stream .
Displays an internal foked leg ID. The output displays near-end and far-end details of a stream.
remote ip [Link], remote port 38526, local Recording server IP, recording server port, and local CUBE device
port 18648 port where data for stream 1 was first sent from.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
501
Media Recording
Verifying the Network-Based Recording Using CUBE
remote ip [Link], remote port 50482, local Recording server IP, recording server port, and local CUBE device
port 17780 port where data for stream 2 was first sent from.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
502
Media Recording
Verifying the Network-Based Recording Using CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
503
Media Recording
Verifying the Network-Based Recording Using CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
504
Media Recording
Verifying the Network-Based Recording Using CUBE
Example:
Device# show call active video brief
Telephony call-legs: 0
SIP call-legs: 3
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 3
0 : 1 87424920ms.1 (*12:23:53.573 IST Wed Jul 17 2013) +1050 pid:1 Answer 1777 active
dur 00:00:46 tx:5250/1857831 rx:5293/1930598 dscp:0 media:0 audio tos:0xB8 video tos:0x88
IP [Link]:20036 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms H264 TextRelay: off
Transcoded: No
…
0 : 2 87424930ms.1 (*12:23:53.583 IST Wed Jul 17 2013) +1040 pid:2 Originate 1888 active
dur 00:00:46 tx:5293/1930598 rx:5250/1857831 dscp:0 media:0 audio tos:0xB8 video tos:0x88
IP [Link]:29652 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms H264 TextRelay: off
Transcoded: No
…
0 : 6 87425990ms.1 (*12:23:54.643 IST Wed Jul 17 2013) +680 pid:1234 Originate 1234 active
dur 00:00:46 tx:10398/3732871 rx:0/0 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:39318 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms H264 TextRelay: off
Transcoded: No
…
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
505
Media Recording
Verifying the Network-Based Recording Using CUBE
a=ptime:20
a=sendonly
m=audio 31166 RTP/AVP 0 101 19
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
a=ptime:20
a=sendonly
Received:
SIP/2.0 200 Ok
Via: SIP/2.0/TCP [Link]:5060;branch=z9hG4bK13262B
To: <sip:23232323@[Link]>;tag=ds457251f
From: <sip:[Link]>;tag=110B66-1CBC
Call-ID: 7142FB-9A5011E0-801EF71A-59B4D258@[Link]
CSeq: 101 INVITE
Content-Length: 206
Contact: <sip:23232323@[Link]:5060;transport=tcp>
Content-Type: application/sdp
Allow: INVITE, BYE, CANCEL, ACK, NOTIFY, INFO, UPDATE
Server: Cisco-ORA/8.5
v=0
o=CiscoORA 2187 1 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 54100 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=recvonly
m=audio 39674 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=recvonly
Sent:
ACK sip:23232323@[Link]:5060;transport=tcp SIP/2.0
Via: SIP/2.0/TCP [Link]:5060;branch=z9hG4bK141B87
From: <sip:[Link]>;tag=110B66-1CBC
To: <sip:23232323@[Link]>;tag=ds457251f
Date: Mon, 20 Jun 2011 08:42:01 GMT
Call-ID: 7142FB-9A5011E0-801EF71A-59B4D258@[Link]
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
506
Media Recording
Verifying the Network-Based Recording Using CUBE
.
.
Via: SIP/2.0/UDP [Link]:5060;branch=z9hG4bK2CC2408
X-Cisco-Recording-Participant: sip:1777@[Link];media-
index="0 2“
X-Cisco-Recording-Participant: sip:1888@[Link];media- index="1 3“
.
.
Cisco-Guid: 0884935168-0000065536-0000000401-3475859466
.
.
v=0
.
.
.
m=audio 17232 RTP/AVP 0 19
.
.
a=sendonly
m=audio 17234 RTP/AVP 0 19
.
.
a=sendonly
a=fmtp:126 profile-level-id=42801E;packetization-mode=1
a=sendonly
m=video 17238 RTP/AVP 126
.
.
.
a=fmtp:126 profile-level-id=42801E;packetization-mode=1
a=sendonly
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
507
Media Recording
Verifying the Network-Based Recording Using CUBE
Sent: INVITE sip:575757@[Link]:7686 SIP/2.0 22222 is the destination pattern or the number of recording server
and is configured under the recorder dial peer.
m=audio 17232 RTP/AVP 0 19 First m-line of participant with payload type and audio codec.
m=audio 17234 RTP/AVP 0 19 Second m-line of another participant with payload type and audio
codec.
m=video 17236 RTP/AVP 126 Third m-line of participant with video payload type and codec
info .
m=video 17238 RTP/AVP 126 Fourth m-line of another participant with video payload type and
codec info .
Receive:
SIP/2.0 200 OK
.
.
.
v=0
.
.
m=audio 1592 RTP/AVP 0
.
.
a=recvonly
m=audio 1594 RTP/AVP 0
.
.
a=recvonly
m=video 1596 RTP/AVP 126
.
.
a=fmtp:97 profile-level-id=420015
a=recvonly
m=video 1598 RTP/AVP 126
.
.
a=fmtp:126 profile-level-id=420015
a=recvonly
Sent:
ACK sip:[Link]:7686;transport=UDP SIP/2.0
From: <sip:[Link]>;tag=1ECFD128-24DF
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
508
Media Recording
Verifying the Network-Based Recording Using CUBE
To: <sip:575757@[Link]>;tag=16104SIPpTag011
Call-ID: FFFFFFFF91E00FE6-FFFFFFFF8FC011E2-FFFFFFFF824DF469-FFFFFFFFB6661C06@[Link]
Max-Forwards: 70
Allow-Events: telephone-event
Content-Length: 0
m=audio 1592 RTP/AVP 0 First m-line of recording server after it started listening.
m=audio 1594 RTP/AVP 0 Second m-line of recording server after it started listening.
m=video 1596 RTP/AVP 126 Third m-line of recording server after it started listening.
m=video 1598 RTP/AVP 126 Fourth m-line of recording server after it started listening.
Step 12 debug ccsip messages (for audio-only recording in a call with both audio and video)
Displays offer sent to MediaSense having only audio m-lines, when the media-type audio command is configured.
Sent:
INVITE sip:54321@[Link]:36212 SIP/2.0
Via: SIP/2.0/UDP [Link]:5060;branch=z9hG4bK2216B
X-Cisco-Recording-Participant: sip:4321@[Link];media-index="0"
X-Cisco-Recording-Participant: sip:1111000010@[Link];media-index="1"
From: <sip:[Link]>;tag=A2C74-5D9
To: <sip:54321@[Link]>……
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 337
v=0
o=CiscoSystemsSIP-GW-UserAgent 9849 5909 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16392 RTP/AVP 0 19
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20
a=sendonly
m=audio 16394 RTP/AVP 0 19
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20
a=sendonly
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
509
Media Recording
Verifying the Network-Based Recording Using CUBE
Received:
SIP/2.0 200 OK
Via: SIP/2.0/UDP [Link]:5060;branch=z9hG4bK2216B
…..
v=0
…
m=audio 36600 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
a=recvonly
m=audio 36602 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
a=recvonly
m=video 0 RTP/AVP 98
c=IN IP4 [Link]
b=TIAS:1500000
a=rtpmap:98 H264/90000
a=fmtp:98 profile-level-id=420015
a=inactive
m=video 0 RTP/AVP 98
c=IN IP4 [Link]
b=TIAS:1500000
a=rtpmap:98 H264/90000
a=fmtp:98 profile-level-id=420015
a=inactive
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
510
Media Recording
Verifying the Network-Based Recording Using CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
511
Media Recording
Verifying the Network-Based Recording Using CUBE
For Video:
Media Forking Initialized:
*Mar 19 16:40:01.784 IST: //522/34BF0A000000/SIP/Info/notify/32768/ccsip_trigger_media_forking: MF:
Recv Ack & it's Anchor leg. Start MF.
*Mar 19 16:40:01.784 IST:
//522/34BF0A000000/SIP/Info/info/32768/ccsip_ipip_media_forking_preprocess_event: MF: initial-call.
State = 1 & posting the event E_IPIP_MEDIA_FORKING_CALLSETUP_IND
Video forking:
*Mar 19 16:40:01.789 IST: //522/34BF0A000000/SIP/Function/sipSPIGetVideoStream:
*Mar 19 16:40:01.789 IST:
//522/34BF0A000000/SIP/Info/verbose/32772/ccsip_ipip_media_forking_BuildMediaRecStream: MF:
video_codec present,Continue with Video Forking..
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
512
Media Recording
Additional References for Network-Based Recording
For Video
RFCs Title
RFC 5104 Codec Control Messages in the RTP Audio-Visual Profile with Feedback (AVPF)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
513
Media Recording
Additional References for Network-Based Recording
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
514
CHAPTER 39
SIPREC (SIP Recording)
The SIPREC (SIP Recording) feature supports media recording for Real-time Transport Protocol (RTP)
streams in compliance with section 3.1.1. of RFC 7245, with CUBE acting as the Session Recording Client.
SIP is used as a protocol between CUBE and the recording server. Recording of a media session is done by
sending a copy of a media stream to the recording server. Metadata is the information that is passed by the
recording client to the recording server in a SIP session. The recording metadata describes the communication
session and its media streams, and also identifies the participants of the call. CUBE acts as the recording client
and any third party recorder acts as the recording server.
• Feature Information for SIPREC-based Recording, on page 515
• Prerequisites for SIPREC Recording, on page 516
• Restrictions for SIPREC Recording, on page 516
• Information About SIPREC Recording Using CUBE, on page 517
• How to Configure SIPREC-Based Recording, on page 518
• Configuration Examples for SIPREC-based Recording, on page 524
• Configuration Example for Metadata Variations with Different Mid-call Flows, on page 530
• Configuration Example for Metadata Variations with Different Transfer Flows, on page 542
• Configuaration Examples for Metadata Variations with Caller-ID UPDATE Flow, on page 543
• Configuration Example for Metadata Variations with Call Disconnect, on page 544
SIPREC (SIP Cisco IOS 15.6(1)T The SIPREC Recording feature supports
Recording) recording of audio and video calls. Only
Cisco IOS XE 3.17S
audio and video media lines are forked.
The following commands were modified:
recorder parameter and recorder profile.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
515
Media Recording
Prerequisites for SIPREC Recording
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
516
Media Recording
Information About SIPREC Recording Using CUBE
• Forking a single call on a CUBE using both dial-peer based recording and SIPREC is not supported.
The following figure illustrates a third party recorder deployment with CUBE.
Figure 42: Deployment Scenario for SIPREC Recording Solution
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
517
Media Recording
SIPREC High Availability Support
In the preceding illustration, the Real Time Protocol (RTP) carries voice data and media streams between the
user agents and CUBE. The RTP unidirectional stream represent the communication session forked from
CUBE to the recording server to indicate forked media. The Session Initiation protocol (SIP) carries call
signaling information along with the metadata information. Media streams from CUBE to recording server
are unidirectional because only CUBE sends recorded data to recording server; the recording server does not
send any media to CUBE.
Metadata has the following functions:
• Carry the communication session data (audio and video calls) that describes the call to the recording
server.
• Identifies the participants list.
• Identifies the session and media association time.
If there are any changes in the call sessions, for example, hold-resume, transfer and so on, these sessions are
notified to the recording server through metadata.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
518
Media Recording
Configuring SIPREC-Based Recording (with Media Profile Recorder)
DETAILED STEPS
Procedure
Device> enable
Step 3 media profile recorder profile-tag Configures the media profile recorder and enters media
profile configuration mode.
Example:
Step 4 (Optional) media-type audio Configures recording of audio only in a call with both
audio and video. If this configuration is not done, both
Example:
audio and video are recorded.
Device(cfg-mediaprofile)# media-type audio
Device(cfg-mediaprofile)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
519
Media Recording
Configuring SIPREC-Based Recording (with Media Profile Recorder)
Step 8 recorder profile profile-tag siprec Configures the media profile SIPREC recorder.
Example:
Device(cfg-mediaclass)# exit
Step 10 dial-peer voice dp-tag voip Dial peer that needs to be forked.
Example:
Step 11 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 13 dial-peer voice dial-peer-tag voip Configures a recorder dial peer and enters dial peer voice
configuration mode.
Example:
Step 14 destination-pattern [+] string [T] Specifies either the prefix or the full E.164 telephone
number (depending on your dial plan) to be used for a dial
Example:
peer.
Device(config-dial-peer)# destination-pattern
595959
Step 15 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
520
Media Recording
Configuring SIPREC-Based Recording (without Media Profile Recorder)
Step 17 session transport tcp Configures a VoIP dial peer to use Transmission Control
Protocol (TCP).
Example:
Device(config-dial-peer)# session transport tcp
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
521
Media Recording
Configuring SIPREC-Based Recording (without Media Profile Recorder)
DETAILED STEPS
Procedure
Device> enable
Step 3 media class tag Configures the media class and enters media class
configuration mode.
Example:
Step 5 (Optional) media-type audio Configures recording of audio only in a call with both
audio and video.
Example:
Note
Device(cfg-mediaprofile)# media-type audio If this configuration is not done, both audio and video are
recorded.
Device(cfg-mediaclass-recorder)# exit
Device(cfg-mediaclass)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
522
Media Recording
Configuring SIPREC-Based Recording (without Media Profile Recorder)
Step 10 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 12 dial-peer voice dial-peer-tag voip Configures a recorder dial peer and enters dial peer voice
configuration mode.
Example:
Step 13 destination-pattern [+] string [T] Specifies either the prefix or the full E.164 telephone
number (depending on your dial plan) to be used for a dial
Example:
peer.
Device(config-dial-peer)# destination-pattern
595959
Step 14 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 16 session transport tcp Configures a VoIP dial peer to use Transmission Control
Protocol (TCP).
Example:
Device(config-dial-peer)# session transport tcp
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
523
Media Recording
Configuration Examples for SIPREC-based Recording
Example:ConfiguringSIPREC-basedRecordingwithoutMediaProfileRecorder
Router> enable
Router# configure terminal
Router(config)# media class 101
Router(cfg-mediaclass)# recorder parameter siprec
Router(cfg-mediaclass-recorder)# media-recording 403
In this example, the call between the 2 phones has resulted into 2 RTP streams (1 and 2). The 2 RTP streams
(3 and 4) are the recorded streams that are sent to the Recording Server ([Link] in this example). The call
Recording Server receives a duplicated RTP stream that represents the recorded call. Use the command show
voip recmsp session to verify:
CUBE#sh voip recmsp session
RECMSP active sessions:
MSP Call-ID AnchorLeg Call-ID ForkedLeg Call-ID
143 141 145
Found 1 active sessions
To get more details of the streams run the command show voip recmsp session detail call-id <the value
specified in the above op>:
CUBE#show voip recmsp session detail call-id <the value specified in the above o/p>
CUBE#show voip recmsp session detail call-id 143
RECMSP active sessions:
Detailed Information
=========================
Recording MSP Leg Details:
Call ID: 143
GUID : 7C5946D38ECD
AnchorLeg Details:
Call ID: 141
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
524
Media Recording
Troubleshoot
Where:
• Stream State: This state shows the state of the call – can be either in ACTIVE or HOLD state.
• Anchor Leg Call-id: This ID is the call-id of the anchor leg (Dial-peer where forking is enabled) which
in also internal to the system. The output in brief describes the participant number and stream type as
voice near-end, which is called party side.
• Non-Anchor Call-id: This ID is the call-id of nonanchor leg (Dial-peer where forking is not enabled).
• Forked Call-id: This forking leg call-id shows near-end and far-end stream call-id details with state of
the Stream.
If you want to know the remote IPs and ports for the near-end and far-end legs, use the show voip rtp forking
command:
CUBE#show voip rtp forking
VoIP RTP active forks:
Fork 1
stream type voice-only (0): count 0
stream type voice+dtmf (1): count 0
stream type dtmf-only (2): count 0
stream type voice-nearend (3): count 1
remote ip [Link], remote port 38526, local port 18648
codec g711ulaw, logical ssrc 0x53
packets sent 29687, packets received 0
stream type voice+dtmf-nearend (4): count 0
stream type voice-farend (5): count 1
remote ip [Link], remote port 50482, local port 17780
codec g711ulaw, logical ssrc 0x55
packets sent 29686, packets received 0
stream type voice+dtmf-farend (6): count 0
stream type video (7): count
Remote IP/ Port is the recording server ip and port address. Codec indicates which codec is negotiated to
record the call leg. Packets that are sent indicate the number of packets that are sent to Recording Server from
each stream.
Troubleshoot
The following is a sample SIPREC configuration on IOS/IOS-XE voice routers.
media class 777
recorder parameter siprec
media-recording 777
!
dial-peer voice 11 voip
description CUCM
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
525
Media Recording
Troubleshoot
Working Scenario
After the call is connected, the inbound/outbound CCS SIP info legs helps to understand that a recording call
has been initiated. In the following example, the outbound call leg 4536 posts a media forking start indication
to its peer inbound leg 4535. This inbound leg ignores this event because it is not the anchor leg (in this
example, media-class command is configured on the outgoing dial peer (Peer ID 4536)).
017895: May 13 15:32:45.273:
//4536/2FD863BAA01F/SIP/Info/info/32768/ccsip_trigger_media_forking: MF: EO leg. set the
pending
flag. wait for peer leg to indicate start
017896: May 13 15:32:45.273:
//4536/2FD863BAA01F/SIP/Info/info/32768/ccsip_trigger_media_forking: MF: posting
CC_EV_H245_MEDIA_FORKING_START_IND.
017901: May 13 15:32:45.273: //4535/2FD863BAA01F/SIP/Info/notify/32768/ccsip_event_handler:
CC_EV_H245_MEDIA_FORKING_START_IND: peer ID 4536, event = 217 type = 1
017902: May 13 15:32:45.273: //4535/2FD863BAA01F/SIP/Info/verbose/32768/ccsip_event_handler:
Ignoring the event on non-anchor leg
Similarly, the outbound call leg 4536 posts a media forking start indication to the inbound call leg 5435.
018221: May 13 15:32:45.290: //4536/2FD863BAA01F/SIP/Info/notify/32768/ccsip_event_handler:
CC_EV_H245_MEDIA_FORKING_START_IND: peer ID 4535, event = 217 type = 1
Outbound leg processes the event and triggers the recording session.
018222: May 13 15:32:45.290: //4536/2FD863BAA01F/SIP/Info/verbose/32768/ccsip_event_handler:
Peer leg has indicated start. Trigger Media Forking.
018229: May 13 15:32:45.290: //-1/xxxxxxxxxxxx/Event/recmsp_api_create_session: Event:
E_REC_CREATE_SESSION anchor call ID:4536, msp call ID:4537
018230: May 13 15:32:45.290: //-1/xxxxxxxxxxxx/Inout/recmsp_api_create_session: Exit with
Success
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
526
Media Recording
Troubleshoot
onID>
<start-time>2019-05-13T15:32:45.293Z</start-time>
</session>
<participant participant_id="MIhBMXTLEemWFqQi1vyb4Q==">
<nameID aor="sip:1234@[Link]">
</nameID>
</participant>
<participantses**MSG 00003 TRUNCATED**
**MSG 00003 CONTINUATION #01**sionassoc participant_id="MIhBMXTLEemWFqQi1vyb4Q=="
session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<associate-time>2019-05-13T15:32:45.293Z</associate-time>
</participantsessionassoc>
<stream stream_id="MIlSKnTLEemWG6Qi1vyb4Q==" session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<label>1</label>
</stream>
<participant participant_id="MIhBMXTLEemWF6Qi1vyb4Q==">
<nameID aor="sip:911@[Link]">
<name xml:lang="en">Emergency</name>
</nameID>
</participant>
<participantsessionassoc participant_id="MIhBMXTLEemWF6Qi1vyb4Q=="
session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<asso**MSG 00003 TRUNCATED**
**MSG 00003 CONTINUATION #02**ciate-time>2019-05-13T15:32:45.293Z</associate-time>
</participantsessionassoc>
<stream stream_id="MIlSKnTLEemWHKQi1vyb4Q==" session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<label>2</label>
</stream>
<participantstreamassoc participant_id="MIhBMXTLEemWFqQi1vyb4Q==">
<send>MIlSKnTLEemWG6Qi1vyb4Q==</send>
<recv>MIlSKnTLEemWHKQi1vyb4Q==</recv>
</participantstreamassoc>
<participantstreamassoc participant_id="MIhBMXTLEemWF6Qi1vyb4Q==">
<send>MIlSKnTLEemWHKQi1vyb4Q==</send>
<recv>MIlSKnTLEemWG6Qi1vyb4Q==</recv>
</participantstreamassoc>
</recording>
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
527
Media Recording
Troubleshoot
Require: siprec
Min-SE: 1800
Cisco-Guid: 0802710458-1959465449-2686421522-1015028268
User-Agent: Cisco-SIPGateway/IOS-16.10.2
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO,
REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1557761565
Contact: <sip:y.y.y.y:5060>;+[Link]
Expires: 180
Allow-Events: telephone-event
Session-ID: a62dd6d8be0059c38d142bae9b46880b;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Type: multipart/mixed;boundary=uniqueBoundary
Mime-Version: 1.0
Content-Length: 2470
--uniqueBoundary
Content-Type: application/sdp
Content-Disposition: session;handling=required
v=0
o=CiscoSystemsSIP-GW-UserAgent 5511 2889 IN IP4 y.y.y.y
s=SIP Call
c=IN IP4 y.y.y.y
t=0 0
m=audio 8086 RTP/AVP 0 101 19
c=IN IP4 y.y.y.y
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
a=ptime:20
a=sendonly
a=label:1
m=audio 8088 RTP/AVP 0 101 19
c=IN IP4 y.y.y.y
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
a=ptime:20
a=sendonly
a=label:2
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
<?xml version="1.0" encoding="UTF-8"?>
<recording xmlns="urn:ietf:params:xml:ns:recording:1">
<datamode>complete</datamode>
<session session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<sipSessionID>a0b9b2a1e4db51f082e777c0df9015e5;remote=6bea155500105000a0002c31246a214b</sipSessi
onID>
<start-time>2019-05-13T15:32:45.293Z</start-time> </session>
<participant participant_id="MIhBMXTLEemWFqQi1vyb4Q==">
<nameID aor="sip:1234@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="MIhBMXTLEemWFqQi1vyb4Q=="
session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<associate-time>2019-05-13T15:32:45.293Z</associate-time>
</participantsessionassoc>
<stream stream_id="MIlSKnTLEemWG6Qi1vyb4Q==" session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
528
Media Recording
Troubleshoot
<label>1</label>
</stream>
<participant participant_id="MIhBMXTLEemWF6Qi1vyb4Q==">
<nameID aor="sip:911@[Link]">
<name xml:lang="en">Emergency</name>
</nameID>
</participant>
<participantsessionassoc participant_id="MIhBMXTLEemWF6Qi1vyb4Q=="
session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<associate-time>2019-05-13T15:32:45.293Z</associate-time>
</participantsessionassoc>
<stream stream_id="MIlSKnTLEemWHKQi1vyb4Q==" session_id="MIgZ2nTLEemWFaQi1vyb4Q==">
<label>2</label>
</stream>
<participantstreamassoc participant_id="MIhBMXTLEemWFqQi1vyb4Q==">
<send>MIlSKnTLEemWG6Qi1vyb4Q==</send>
<recv>MIlSKnTLEemWHKQi1vyb4Q==</recv>
</participantstreamassoc>
<participantstreamassoc participant_id="MIhBMXTLEemWF6Qi1vyb4Q==">
<send>MIlSKnTLEemWHKQi1vyb4Q==</send>
<recv>MIlSKnTLEemWG6Qi1vyb4Q==</recv>
</participantstreamassoc>
</recording>
--uniqueBoundary--
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
529
Media Recording
Configuration Example for Metadata Variations with Different Mid-call Flows
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
530
Media Recording
Example: Complete SIP Recording Metadata Information Sent in INVITE or Re-INVITE
</session>
<participant participant_id="JaPQeP1CEeSA76sYHx7YVg==">
<nameID aor="sip:808808@[Link]">
<name xml:lang="en">808808</name>
</nameID>
</participant>
<participantsessionassoc participant_id="JaPQeP1CEeSA76sYHx7YVg=="
session_id="JaPQeP1CEeSA66sYHx7YVg==">
<associate-time>2015-05-19T09:42:06.911Z</associate-time>
</participantsessionassoc>
<stream stream_id="JaPQeP1CEeSA8KsYHx7YVg==" session_id="JaPQeP1CEeSA66sYHx7YVg==">
<label>1</label>
</stream>
<stream stream_id="JaPQeP1CEeSA8asYHx7YVg==" session_id="JaPQeP1CEeSA66sYHx7YVg==">
<label>3</label>
</stream>
<participant participant_id="JaPQeP1CEeSA8qsYHx7YVg==">
<nameID aor="sip:909909@[Link]">
<name xml:lang="en">909909</name>
</nameID>
</participant>
<participantsessionassoc participant_id="JaPQeP1CEeSA8qsYHx7YVg=="
session_id="JaPQeP1CEeSA66sYHx7YVg==">
<associate-time>2015-05-19T09:42:06.911Z</associate-time>
</participantsessionassoc>
<stream stream_id="JaPQeP1CEeSA86sYHx7YVg==" session_id="JaPQeP1CEeSA66sYHx7YVg==">
<label>2</label>
</stream>
<stream stream_id="JaPQeP1CEeSA9KsYHx7YVg==" session_id="JaPQeP1CEeSA66sYHx7YVg==">
<label>4</label>
</stream>
<participantstreamassoc participant_id="JaPQeP1CEeSA76sYHx7YVg==">
<send>JaPQeP1CEeSA8KsYHx7YVg==</send>
<recv>JaPQeP1CEeSA86sYHx7YVg==</recv>
<send>JaPQeP1CEeSA8asYHx7YVg==</send>
<recv>JaPQeP1CEeSA9KsYHx7YVg==</recv>
</participantstreamassoc>
<participantstreamassoc participant_id="JaPQeP1CEeSA8qsYHx7YVg==">
<send>JaPQeP1CEeSA86sYHx7YVg==</send>
<recv>JaPQeP1CEeSA8KsYHx7YVg==</recv>
<send>JaPQeP1CEeSA9KsYHx7YVg==</send>
<recv>JaPQeP1CEeSA8asYHx7YVg==</recv>
</participantstreamassoc>
</recording>
—uniqueBoundary—
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
531
Media Recording
Example: Complete SIP Recording Metadata Information Sent in INVITE or Re-INVITE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
532
Media Recording
Example: Hold with Send-only / Recv-only Attribute in SDP
v=0
o=CiscoSystemsSIP-GW-UserAgent 2973 4879 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16464 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:1
m=audio 16466 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:2
m=video 16468 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:3
m=video 16470 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
533
Media Recording
Example: Hold with Send-only / Recv-only Attribute in SDP
a=label:4
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
--uniqueBoundary--
In this scenario, the second participant puts the call on hold using sendonly and the first participant will respond
using recvonly. You can see from the participantStream association element that the second
participant only sends audio and video streams and the first participant just receives the media streams.
The output after the second participant puts the call on hold with sendonly attribute:
--uniqueBoundary
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 2973 4880 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16464 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=inactive
a=label:1
m=audio 16466 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
534
Media Recording
Example: Hold with Inactive Attribute in SDP
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:2
m=video 16468 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=inactive
a=label:3
m=video 16470 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:4
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
--uniqueBoundary--
v=0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
535
Media Recording
Example: Hold with Inactive Attribute in SDP
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
536
Media Recording
Example: Hold with Inactive Attribute in SDP
<send>uV/B4f1BEeSAnKsYHx7YVg==</send>
<recv>uV/B4f1BEeSAmasYHx7YVg==</recv>
</participantstreamassoc>
</recording>
--uniqueBoundary--
When the first participant puts the call on hold with inactive SDP attribute, there will be not any active streams
in the metadata.
--uniqueBoundary
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 7476 1348 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16496 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=inactive
a=label:1
m=audio 16498 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=inactive
a=label:2
m=video 16500 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=inactive
a=label:3
m=video 16502 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=inactive
a=label:4
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
537
Media Recording
Example: Escalation
</stream>
<stream stream_id="uV/B4f1BEeSAnKsYHx7YVg==" session_id="uV/B4f1BEeSAk6sYHx7YVg==">
<label>4</label>
</stream>
<participantstreamassoc participant_id="uV/B4f1BEeSAl6sYHx7YVg==">
</participantstreamassoc>
<participantstreamassoc participant_id="uV/B4f1BEeSAmqsYHx7YVg==">
</participantstreamassoc>
</recording>
--uniqueBoundary--
Example: Escalation
During escalation, video streams will be added to the Re-INVITE meta-data sent to the recorder.
In the below example, you can see the metadata representation of an original audio call sent in the initial
INVITE to the recorder where both the participants send and receive audio streams.
--uniqueBoundary
Content-Type: application/sdp
Content-Disposition: session;handling=required
v=0
o=CiscoSystemsSIP-GW-UserAgent 6360 4788 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16628 RTP/AVP 8 101
c=IN IP4 [Link]
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:1
m=audio 16630 RTP/AVP 8 101
c=IN IP4 [Link]
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:2
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
538
Media Recording
Example: Escalation
<participantstreamassoc participant_id="evyS5/1CEeSBOasYHx7YVg==">
<send>evyS5/1CEeSBOqsYHx7YVg==</send>
<recv>evyS5/1CEeSBOKsYHx7YVg==</recv>
</participantstreamassoc>
</recording>
--uniqueBoundary--
After escalation, video streams get added into the participantStream association element in
metadata for both the participants. There will be 4 streams in total.
--uniqueBoundary
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 6360 4789 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16628 RTP/AVP 18 101
c=IN IP4 [Link]
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:1
m=audio 16630 RTP/AVP 18 101
c=IN IP4 [Link]
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:2
m=video 16636 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:3
m=video 16638 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:4
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
539
Media Recording
Example: De-escalation
…
<stream stream_id="e5Zhtv1CEeSBPasYHx7YVg==" session_id="evv2v/1CEeSBM6sYHx7YVg==">
<label>4</label>
</stream>
<participantstreamassoc participant_id="evyS5/1CEeSBN6sYHx7YVg==">
<send>evyS5/1CEeSBOKsYHx7YVg==</send>
<recv>evyS5/1CEeSBOqsYHx7YVg==</recv>
<send>e5Zhtv1CEeSBPKsYHx7YVg==</send>
<recv>e5Zhtv1CEeSBPasYHx7YVg==</recv>
</participantstreamassoc>
<participantstreamassoc participant_id="evyS5/1CEeSBOasYHx7YVg==">
<send>evyS5/1CEeSBOqsYHx7YVg==</send>
<recv>evyS5/1CEeSBOKsYHx7YVg==</recv>
<send>e5Zhtv1CEeSBPasYHx7YVg==</send>
<recv>e5Zhtv1CEeSBPKsYHx7YVg==</recv>
</participantstreamassoc>
</recording>
--uniqueBoundary--
Example: De-escalation
During de-escalation, video streams will be truncated in the Re-INVITE metadata sent to the recorder.
In the below example, you can see two streams each for the audio and video calls in the metadata.
--uniqueBoundary
Content-Type: application/sdp
Content-Disposition: session;handling=required
v=0
o=CiscoSystemsSIP-GW-UserAgent 7616 8308 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16648 RTP/AVP 116 101
c=IN IP4 [Link]
a=rtpmap:116 iLBC/8000
a=fmtp:116 mode=20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendonly
a=label:1
m=audio 16650 RTP/AVP 116 101
c=IN IP4 [Link]
a=rtpmap:116 iLBC/8000
a=fmtp:116 mode=20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendonly
a=label:2
m=video 16652 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:3
m=video 16654 RTP/AVP 97
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
540
Media Recording
Example: De-escalation
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
--uniqueBoundary--
After de-escalation, video streams are removed from the metadata and only audio calls will be present in the
participantStream association element.
--uniqueBoundary
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 7616 8309 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 16648 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:1
m=audio 16650 RTP/AVP 0 101
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
541
Media Recording
Configuration Example for Metadata Variations with Different Transfer Flows
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendonly
a=label:2
m=video 0 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:3
m=video 0 RTP/AVP 97
c=IN IP4 [Link]
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E;packetization-mode=0
a=sendonly
a=label:4
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
--uniqueBoundary--
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
542
Media Recording
Configuaration Examples for Metadata Variations with Caller-ID UPDATE Flow
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
543
Media Recording
Configuration Example for Metadata Variations with Call Disconnect
Contact: <sip:7774442218@[Link]:5060>
Content-Length: 0
...
<participant participant_id="vm+z2xM6EeWAIN4iOrLrag==">
<nameID aor="sip:7774442214@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="vm+z2xM6EeWAIN4iOrLrag=="
session_id="vACJ+xM6EeWAF94iOrLrag==">
<associate-time>2015-06-16T08:44:32.869Z</associate-time>
</participantsessionassoc>
<participant participant_id="vm+z2xM6EeWAIN4iOrLrag==">
<nameID aor="sip:7774442218@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="vm+z2xM6EeWAIN4iOrLrag=="
session_id="vACJ+xM6EeWAF94iOrLrag==">
<associate-time>2015-06-16T08:44:32.869Z</associate-time>
</participantsessionassoc>
<participant participant_id="vACJ+xM6EeWAGN4iOrLrag==">
<nameID aor="sip:7774442212@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="vACJ+xM6EeWAGN4iOrLrag=="
session_id="vACJ+xM6EeWAGN4iOrLrag==">
<disassociate-time>2015-06-16T08:44:32.869Z</disassociate-time>
</participantsessionassoc>
<participant participant_id="vACJ+xM6EeWAGN4iOrLrag==">
<nameID aor="sip:7774442216@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="vACJ+xM6EeWAGN4iOrLrag=="
session_id="vACJ+xM6EeWAGN4iOrLrag==">
<disassociate-time>2015-06-16T08:44:32.869Z</disassociate-time>
</participantsessionassoc>
...
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
544
Media Recording
Example: Disconnect while Sending Metadata with BYE
<datamode>complete</datamode>
<session session_id="t5nW8RM6EeWACN4iOrLrag==">
<end-time>2015-06-16T08:44:36.661Z</end-time>
</session>
<participant participant_id="t5nW8RM6EeWACt4iOrLrag==">
<nameID aor="sip:7774442212@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="t5nW8RM6EeWACt4iOrLrag=="
session_id="t5nW8RM6EeWACt4iOrLrag==">
<disassociate-time>2015-06-16T08:44:36.657Z</disassociate-time>
</participantsessionassoc>
<participant participant_id="t5nW8RM6EeWACd4iOrLrag==">
<nameID aor="sip:7774442214@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="t5nW8RM6EeWACd4iOrLrag=="
session_id="t5nW8RM6EeWACd4iOrLrag==">
<disassociate-time>2015-06-16T08:44:36.657Z</disassociate-time>
</participantsessionassoc>
</recording>
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
545
Media Recording
Example: Disconnect while Sending Metadata with BYE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
546
CHAPTER 40
Video Recording - Additional Configurations
This module describes the following additional configurations that can be done for Video Recording:
• Request a Full-Intra Frame using RTCP or SIP INFO methods.
• Configure an H.264 Packetization mode.
• Monitor Intra-Frames and Reference Frames
Table 60: Feature Information for Network-Based Recording of Video Calls Using Cisco Unified Border Element
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
547
Media Recording
Information About Additional Configurations for Video Recording
• Both RTCP FIR and SIP INFO FIR (Cisco Unified Border Element can be configured to send both RTCP
FIR and SIP INFO requests at the same time).
SUMMARY STEPS
1. enable
2. configure terminal
3. media profile video media-profile-tag
4. Do one of the following:
• ref-frame-req rtcp retransmit-count retransmit-number
• ref-frame-req sip-info
5. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
548
Media Recording
Configuring H.264 Packetization Mode
DETAILED STEPS
Procedure
Step 3 media profile video media-profile-tag Configures a video media profile and enters media profile
configuration mode.
Example:
Device(config)# media profile video 1
Step 4 Do one of the following: Enables FIR using the RTCP or SIP INFO method.
• ref-frame-req rtcp retransmit-count
retransmit-number
• ref-frame-req sip-info
Example:
Device(cfg-mediaprofile)# ref-frame-req rtcp
retransmit-count 4
Example:
Device(cfg-mediaprofile)# ref-frame-req sip-info
SUMMARY STEPS
1. enable
2. configure terminal
3. media profile video media-profile-tag
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
549
Media Recording
Monitoring Reference files or Intra Frames
DETAILED STEPS
Procedure
Step 3 media profile video media-profile-tag Configures a video media profile and enters media profile
configuration mode.
Example:
Device(config)# media profile video 1
Step 4 h264-packetization-mode packetization mode Configures the H.264 packetization mode offered by a
device on the outbound call leg of a forked call when
Example:
multiple H.264 packetization modes are present in the offer
Device(cfg-mediaprofile)# h264-packetization-mode received by the device on the inbound call leg.
2
SUMMARY STEPS
1. enable
2. configure terminal
3. media profile video media-profile-tag
4. monitor-ref-frames
5. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
550
Media Recording
Verifying Additional Configurations for Video Recording
DETAILED STEPS
Procedure
Step 3 media profile video media-profile-tag Configures a video media profile and enters media profile
configuration mode.
Example:
Device(config)# media profile video 1
SUMMARY STEPS
1. enable
2. show call active video called-number number | include VideoRtcpIntraFrameRequestCount
3. show call active video called-number number | include VideoSipInfoIntraFrameRequestCount
4. show call active video | include VideoTimeOfLastReferenceFrame
5. show call active video | include VideoReferenceFrameCount
DETAILED STEPS
Procedure
Step 1 enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
551
Media Recording
Verifying Additional Configurations for Video Recording
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
552
CHAPTER 41
Third-Party GUID Capture for Correlation
Between Calls and SIP-based Recording
The Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording feature provides
support for the transmission of globally unique identifiers (GUIDs) received from a third-party private branch
exchange (PBX) to the recording server using an established Session Initiation Protocol (SIP) session, making
CUBE recording more interoperable with third-party vendors.
• Feature Information for Third-Party GUID Capture for Correlation Between Calls and SIP-based
Recording, on page 553
• Restrictions for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording, on
page 554
• Information About Third-Party GUID Capture for Correlation Between Calls and SIP-based recording,
on page 554
• How to Capture Third-Party GUID for Correlation Between Calls and SIP-based Recording, on page 554
• Verifying Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording, on page
557
• Configuration Examples for Third-Party GUID Capture for Correlation Between Calls and SIP-based
Recording, on page 558
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
553
Media Recording
Restrictions for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
Table 61: Feature Information for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
Third-Party GUID Capture Cisco IOS 15.4(3)M The Third-Party GUID Capture for Correlation Between
for Correlation Between Calls and SIP-based Recording feature provides support
Cisco IOS XE 3.13S
Calls and SIP-based for the transmission of globally unique identifiers
Recording (GUIDs) received from a third-party private branch
exchange (PBX) to the recording server via an established
SIP session, making CUBE recording more interoperable
with third-party vendors.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
554
Media Recording
How to Capture Third-Party GUID for Correlation Between Calls and SIP-based Recording
outbound call leg dial peers. A SIP profile is configured to copy this incoming header to a user-defined variable
and apply it to an outgoing header on the recording leg dial peer.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-copylist tag
4. sip-header ThirdParty-GUID-headername
5. exit
6. dial-peer voice inbound-dialpeer-tag voip
7. voice class sip-copylist tag
8. exit
9. dial-peer voice outbound-dialpeer-tag voip
10. voice class sip-copylist tag
11. exit
12. voice class sip-profiles profile-id
13. request INVITE peer-header sip GUID-header-to-copy copy header-value-to-match copy-variable
14. request INVITE sip-header header-to-add add header-value-to-add
15. request INVITE sip-header GUID-header-to-modify modify header-value-to-match
header-value-to-replace
16. exit
17. dial-peer voice recorder-dial-peer-tag voip
18. voice-class sip profiles profile-tag
19. end
DETAILED STEPS
Procedure
Step 3 voice class sip-copylist tag Configures a list of entities to be sent to a peer call leg and
enters voice class configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
555
Media Recording
How to Capture Third-Party GUID for Correlation Between Calls and SIP-based Recording
Device(config-class)# exit
Step 6 dial-peer voice inbound-dialpeer-tag voip Enters inbound dial-peer configuration mode.
Example:
Device(config)# dial-peer voice 2 voip
Step 7 voice class sip-copylist tag Applies the copy list to the dial peer.
Example:
Step 9 dial-peer voice outbound-dialpeer-tag voip Enters outbound dial-peer configuration mode.
Example:
Device(config)# dial-peer voice 3 voip
Step 10 voice class sip-copylist tag Applies the copy list to the dial peer.
Example:
Device(config-dial-peer)# exit
Step 12 voice class sip-profiles profile-id Creates a SIP profile and enters voice class configuration
mode.
Example:
Step 13 request INVITE peer-header sip GUID-header-to-copy Copies headers from the INVITE message of the incoming
copy header-value-to-match copy-variable dial peer into a copy variable.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
556
Media Recording
Verifying Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
Step 14 request INVITE sip-header header-to-add add Adds a SIP header to a SIP request.
header-value-to-add
Example:
Device(config-class)# request INVITE sip-header
Unsupported add "Unsupported: Dummy Header"
Step 15 request INVITE sip-header GUID-header-to-modify Modifies the outgoing header using the copy variable
modify header-value-to-match header-value-to-replace defined in the previous step.
Example:
Device(config-class)# request INVITE sip-header
Unsupported modify ".*" "Third-Party-GUID: \u01"
Step 17 dial-peer voice recorder-dial-peer-tag voip Enters the dial peer configuration mode for the specified
outbound recorder dial peer.
Example:
Device(config)# dial-peer voice 2 voip
Step 18 voice-class sip profiles profile-tag Applies the SIP profile to the recording dial peer.
Example:
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
557
Media Recording
Configuration Examples for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
558
Media Recording
Configuration Examples for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
! Apply copylist to inbound dial peer so that headers specified in copylist are copied
Device(config)# dialpeer voice 2 voip
Device(config-dial-peer)# voice class sip-copylist 100
Device(config-dial-peer)# exit
! SIP profile copies incoming third-party GUID to a variable from a peer header. This
variable
! is then used modify outgoing headers
Device(config)# voice class sip-profiles 10
Device(config-class)# request INVITE peer-header sip Third-Party-GUID copy "(.*)" u01
Device(config-class)# request INVITE sip-header Unsupported add "Unsupported: Dummy Header"
Device(config-class)# request INVITE sip-header Unsupported modify ".*" "Third-Party-GUID:
\u01"
Device(config-class)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
559
Media Recording
Configuration Examples for Third-Party GUID Capture for Correlation Between Calls and SIP-based Recording
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
560
CHAPTER 42
Cisco Unified Communications Gateway
Services--Extended Media Forking
The Cisco Unified Communications (UC) Services API provides a unified web service interface for the
different services in IOS gateway thereby facilitating rapid service development at application servers and
managed application service providers.
This chapter explains the Extended Media Forking (XMF) provider that allows applications to monitor calls
and trigger media forking on Real-time Transport Protocol (RTP) and Secure RTP calls.
• Feature Information for Cisco Unified Communications Gateway Services—Extended Media Forking,
on page 561
• Restrictions for Extended Media Forking, on page 562
• Information About Cisco Unified Communications Gateway Services, on page 562
• How to Configure UC Gateway Services, on page 568
• Configuration Examples for UC Gateway Services, on page 575
Cisco Unified Cisco IOS 15.3(3)M The Cisco Unified Communications (UC) Services
Communications Gateway API provides a unified web service interface for
Cisco IOS XE 3.10S
Services the different services in IOS gateway thereby
facilitating rapid service development at
application servers and managed application
service providers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
561
Media Recording
Restrictions for Extended Media Forking
Cisco UC Gateway Services Cisco IOS 15.4(3)M This feature provides support for Extended Media
API support for Secure RTP Forking (XMF) provider to monitor calls and
Cisco IOS XE 3.13S
Forking trigger media forking on RTP and SRTP calls.
Support for Cisco UC Services Cisco IOS 15.6(1)T This feature allows media forking for the calls
API Media Forking with controlled by CVP Survivability TCL script with
Cisco IOS XE 3.17S
Survivability TCL Cisco Unified Communication Services API.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
562
Media Recording
XMF Call-Based Media Forking
The XMF connection describes the relationship between an XMF call and the endpoint (or trunk) involved
in the call. A connection abstraction maintained in the gateway has the following connection states:
• IDLE: This state is the initial state for all new connections. Such connections are not actively part of a
telephone call, yet their references to the Call and Address objects are valid. Connections typically do
not stay in the IDLE state for long and quickly transition to other states. The application may choose to
be notified at this state using the event filters and if done, call/connection at the gateway provider will
use the NotifyXmfConnectionData(CREATED) message to notify the application listener that a new
connection is created.
• ADDRESS_COLLECT: In this state the initial information package is collected from the originating
party and is examined according to the “dialing plan” to determine the end of collection of addressing
information. In this state, the call in the gateway collects digits from the endpoint. No notification is
provided.
• CALL_DELIVERY: On the originating side, this state involves selecting of the route as well as sending
an indication of the desire to set up a call to the specified called party. On the terminating side, this state
involves checking the busy/idle status of the terminating access and also informing the terminating
message of an incoming call. The application may choose to be notified at this state using the event filters
and if done, the call or connection at the gateway provider will use the NotifyXmfConnectionData
(CALL_DELIVERY) message to notify the application listener.
• ALERTING: This state implies that the Address is being notified of an incoming call. The application
may choose to be notified at this state using the event filters and if done, the call or connection at the
gateway provider will use the NotifyXmfConnectionData (ALERTING) message to notify the application
listener.
• CONNECTED: This state implies that a connection and its Address is actively part of a telephone call.
In common terms, two parties talking to one another are represented by two connections in the
CONNECTED state. The application may choose to be notified at this state using the event filters and
if done, the call or connection at the gateway provider will use the NotifyXmfConnectionData
(CONNECTED) message to notify the application listener.
• DISCONNECTED: This state implies it is no longer part of the telephone call. A Connection in this state
is interpreted as once previously belonging to this telephone call. The application may choose to be
notified at this state using the event filters and if done, the call or connection at the gateway provider
will use the NotifyXmfConnectionData (DISCONNECTED) message to notify the application listener.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
563
Media Recording
XMF Connection-Based Media Forking
A NotifyXmfConnectionData message will be notified to the application for the updated media forking status:
• FORK_FAILED—Media forking is setup failure. No forked RTP connections can be established to target
RTP addresses.
• FORK_STARTED—Media forking is set up successfully. Both Tx (transmit) and Rx (receive) forked
RTP connections are established and connected to target (farEnd and nearEnd) RTP addresses.
• FORK_DONE—Media forking is completed. Both Tx and Rx forked RTP connections are released.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
564
Media Recording
Media Forking for SRTP Calls
Cisco Unified Communications Manager controlled Gateway recording utilizes XMF to trigger media forking
on CUBE or SIP based PSTN gateways in the supported call flows.
Note Media forking is allowed only for survivability TCL script supported by Cisco Unified Customer Voice Portal
(CVP). CVP survivability TCL script is not supported in High Availability mode.
There are no configuration changes required for enabling CVP survivability TCL support with Cisco UC
Gateway Services API.
Crypto Tag
For SRTP forking, the optional Crypto tag in NotifyXmfConnectionData or NotifyXmfCallData message
indicates the context of an actively forked SRTP connection.
Note The Crypto tag is only present in the notification message where FORK_STARTED tag is present.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
565
Media Recording
Example of SDP Data sent in an SRTP Call
Note The application is notified of the content in Crypto and inline SDP lines.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
566
Media Recording
Multiple XMF Applications and Recording Tone
The “recordTone” parameter can be enabled in any of the above requests and recording tone will be played
for the parties involved in the call. The “recordTone” parameter in the API request can have the following
values:
• COUNTRY_US
• COUNTRY_AUSTRALIA
• COUNTRY_GERMANY
• COUNTRY_RUSSIA
• COUNTRY_SPAIN
• COUNTRY_SWITZERLAND
There is no difference in the recording tone beep when any country value is chosen. Recording tone beep is
played at an interval of every 15 seconds. Digital signal processors and other resources are not utilized for
playing recording tone even for transcoded calls. No specific configuration is required to enable or disable
recording tone. By default, no recording tone is enabled.
If “recordTone” parameter is enabled only on the farEndAddr, then this tone is played only on the outgoing
leg. Likewise, if enabled only on the nearEndAddr, then the tone is played only on the incoming leg. When
enabled in both the far and near end, then recording tone is played on both the legs.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
567
Media Recording
Forking Preservation
The RequestXmfConnectionMediaForking API allows insertion of recording tone on a per connection basis.
There could be scenarios where one leg receives two recordTone insertion requests. When a leg receives
recordTone insertion request, the nearEnd request always takes precedence over the farEnd request.
Forking Preservation
After media forking is initiated by the web application, the forking can be preserved to continue the recording,
even if the WAN connection to the application is lost or if the application is unregistered.
Figure 45: Forking Preservation
The “preserve” parameter value can be set to TRUE or FALSE in any of the 3 forking requests
(RequestXmfConnectionMediaForking, RequestXmfCallMediaForking, or RequestXmfCallMediaSetAttributes)
from the application to Cisco UBE.
• If the “preserve” parameter received is TRUE, then forking will continue the recording, even if the WAN
connection to application is lost or application is unregistered.
• If the “preserve” parameter received is FALSE, then forking will not continue the recording.
• If the “preserve” parameter is not received in the media forking request, then forking will not continue
the recording.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
568
Media Recording
Configuring Cisco Unified Communication IOS Services on the Device
DETAILED STEPS
Procedure
Step 3 ip http server Enables the HTTP server (web server) on the system.
Example:
Device(config)# ip http server
Step 4 ip http max-connections value Sets the maximum number of concurrent connections to
the HTTP sever that will be allowed. The default value is
Example:
5.
Device(config)# ip http max-connection 100
Step 5 ip http timeout-policy idle seconds life seconds Sets the characteristics that determine how long a
requests value connection to the HTTP server should remain open. The
characteristics are:
Example:
Device(config)# ip http timeout-policy idle 600 • idle—The maximum number of seconds the
life 86400 requests 86400 connection will be kept open if no data is received or
response data can not be sent out on the connection.
Note that a new value may not take effect on any
already existing connections. If the server is too busy
or the limit on the life time or the number of requests
is reached, the connection may be closed sooner. The
default value is 180 seconds (3 minutes).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
569
Media Recording
Configuring Cisco Unified Communication IOS Services on the Device
Step 6 http client connection idle timeout seconds Sets the number of seconds that the client waits in the idle
state until it closes the connection.
Example:
Device(config)# http client connection idle
timeout 600
Step 8 message-exchange max-failures number Configures the maximum number of failed message
exchanges between the application and the provider before
Example:
the provider stops sending messages to the application.
Device(config-uc-wsapi)# message-exchange Range is 1 to 3. Default is 1.
max-failures 2
Step 9 probing max-failures number Configures the maximum number of failed probing
messages before the router unregisters the application.
Example:
Range is 1 to 5. Default is 3.
Device(config-uc-wsapi)# probing max-failures 5
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
570
Media Recording
Configuring the XMF Provider
Step 11 probing interval negative seconds Configures the interval between negative probing
messages, in seconds.
Example:
Device(config-uc-wsapi)# probing interval negative
10
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
571
Media Recording
Configuring the XMF Provider
DETAILED STEPS
Procedure
Step 7 remote-url index url Specifies the URL (IP address and port number) that the
application uses to communicate with XMF provider. The
Example:
XMF provider uses the IP address and port to authenticate
Device(config-uc-wsapi)# remote-url 1 incoming requests.
[Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
572
Media Recording
Verifying the UC Gateway Services
SUMMARY STEPS
1. enable
2. show wsapi registration all
3. show wsapi registration xmf remote-url-index
4. show call media-forking
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Provider XMF
=====================================================
registration index: 11
id: 2E7C3034:XMF:myapp:26
appUrl:[Link]
appName: myapp
provUrl: [Link]
prober state: STEADY
connEventsFilter:
CREATED|REDIRECTED|ALERTING|CONNECTED|TRANSFERRED|CALL_DELIVERY|DISCONNECTED|HANDOFF_JOIN|HANDOFF_LEAVE
mediaEventsFilter: DTMF|MEDIA_ACTIVITY|MODE_CHANGE|TONE_DIAL|TONE_OUT_OF_SERVICE|TONE_SECOND_DIAL
registration index: 1
id: 2E7C304A:XMF:myapp:27
appUrl:[Link]
appName: myapp
provUrl: [Link]
prober state: STEADY
connEventsFilter:
CREATED|REDIRECTED|ALERTING|CONNECTED|TRANSFERRED|CALL_DELIVERY|DISCONNECTED|HANDOFF_JOIN|HANDOFF_LEAVE
mediaEventsFilter: DTMF|MEDIA_ACTIVITY|MODE_CHANGE|TONE_DIAL|TONE_OUT_OF_SERVICE|TONE_SECOND_DIAL
registration index: 21
id: 2E7C6423:XMF:myapp:28
appUrl:[Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
573
Media Recording
Verifying the UC Gateway Services
appName: myapp
provUrl: [Link]
prober state: STEADY
connEventsFilter:
CREATED|REDIRECTED|ALERTING|CONNECTED|TRANSFERRED|CALL_DELIVERY|DISCONNECTED|HANDOFF_JOIN|HANDOFF_LEAVE
mediaEventsFilter: DTMF|MEDIA_ACTIVITY|MODE_CHANGE|TONE_DIAL|TONE_OUT_OF_SERVICE|TONE_SECOND_DIAL
registration index: 31
id: 2E7C69E8:XMF:myapp:29
appUrl:[Link]
appName: myapp
provUrl: [Link]
prober state: STEADY
connEventsFilter:
CREATED|REDIRECTED|ALERTING|CONNECTED|TRANSFERRED|CALL_DELIVERY|DISCONNECTED|HANDOFF_JOIN|HANDOFF_LEAVE
mediaEventsFilter: DTMF|MEDIA_ACTIVITY|MODE_CHANGE|TONE_DIAL|TONE_OUT_OF_SERVICE|TONE_SECOND_DIAL
Provider XMF
=====================================================
registration index: 1
id: 2E7C6423:XMF:myapp:28
appUrl:[Link]
appName: myapp
provUrl: [Link]
prober state: STEADY
connEventsFilter:
CREATED|REDIRECTED|ALERTING|CONNECTED|TRANSFERRED|CALL_DELIVERY|DISCONNECTED|HANDOFF_JOIN|HANDOFF_LEAVE
mediaEventsFilter: DTMF|MEDIA_ACTIVITY|MODE_CHANGE|TONE_DIAL|TONE_OUT_OF_SERVICE|TONE_SECOND_DIAL
//WSAPI/INFRA/wsapi_send_outbound_message_by_provider_info:
*Dec 21 10:31:21.016 IST: //WSAPI/INFRA/0/9/546CF8:25:tx_contextp 15898C1C tx_id 19 context1 (0 0)
context2 (9 9):
out_url [Link] 21 10:31:21.020 IST:
wsapi_send_outbound_message_by_provider_info:
<?xml version="1.0" encoding="UTF-8"?><SOAP:Envelope
xmlns:SOAP="[Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
574
Media Recording
Troubleshooting Tips
<NotifyXmfConnectionData xmlns="[Link]
546CF8:25</transactionID><registrationID>4CA5E4:XMF:myapp:4</registrationID></msgHeader><callData><callID>25</callID><state>
ACTIVE</state></callData><connData><connID>132</connID><state>ALERTING</state></connData><event><mediaForking>
<mediaForkingState>FORK_DONE</mediaForkingState></mediaForking></event></NotifyXmfConnectionData></SOAP:Body></SOAP:Envelope>
FORK_FAILED Notification
//WSAPI/INFRA/wsapi_send_outbound_message_by_provider_info:
*Dec 21 10:31:21.016 IST: //WSAPI/INFRA/0/9/546CF8:25:tx_contextp 15898C1C tx_id 19 context1 (0 0)
context2 (9 9):
out_url [Link] 21 10:31:21.020 IST:
wsapi_send_outbound_message_by_provider_info:
<?xml version="1.0" encoding="UTF-8"?><SOAP:Envelope
xmlns:SOAP="[Link]
<NotifyXmfConnectionData xmlns="[Link]
546CF8:25</transactionID><registrationID>4CA5E4:XMF:myapp:4</registrationID></msgHeader><callData><callID>25</callID><state>
ACTIVE</state></callData><connData><connID>132</connID><state>ALERTING</state></connData><event><mediaForking>
<mediaForkingState>FORK_FAILED</mediaForkingState></mediaForking></event></NotifyXmfConnectionData></SOAP:Body>
</SOAP:Envelope>
Troubleshooting Tips
Use the following debug commands to troubleshoot the UC Gateway Services configurations.
• debug wsapi infrastructure all
• debug wsapi xmf all
• debug wsapi xmf messages
• debug wsapi infrastructure detail
• debug voip application
• debug voip application media forking
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
575
Media Recording
Example: Configuring the XMF Provider
uc wsapi
message-exchange max-failures 5
response-timeout 10
source-address [Link]
probing interval negative 20
probing interval keepalive 250
!
provider xmf
remote-url 1 [Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
576
PA R T IX
CUBE Media Proxy
• CUBE Media Proxy, on page 579
CHAPTER 43
CUBE Media Proxy
CUBE Media Proxy is a solution that provides multiple forking function, and is built on CUBE architecture.
Multiple forks are required for recorder redundancy and advanced media processing needs. The CUBE Media
Proxy solution supports mandatory and optional recorders.
CUBE Media Proxy supports Unified CM Network-Based Recording (NBR) and SIP-Based Media Recording
(SIPREC), to enable forking and recording of Real-Time Transport Protocol (RTP) streams.
• Feature Information for CUBE Media Proxy, on page 579
• Supported Platforms, on page 580
• Restrictions for CUBE Media Proxy, on page 580
• CUBE Media Proxy Using Unified CM Network-Based Recording, on page 581
• SIPREC-Based CUBE Media Proxy, on page 581
• About Multiple Media Forking Using CUBE Media Proxy, on page 581
• Secure Forking of Secure and Nonsecure Calls, on page 582
• Deployment Scenarios for CUBE Media Proxy, on page 582
• Recording Metadata, on page 585
• Session Identifier, on page 587
• Recording State Notification, on page 589
• How to Configure CUBE Media Proxy, on page 592
• Verification of CUBE Media Proxy Configuration, on page 598
• Supported Features, on page 608
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
579
CUBE Media Proxy
Supported Platforms
Secure forking of nonsecure Cisco IOS XE Bengaluru CUBE Media Proxy supports both secure and
calls 17.5.1a nonsecure forking of nonsecure calls.
SIPREC-Based CUBE Cisco IOS XE Amsterdam The SIPREC-based CUBE Media Proxy solution
Media Proxy 17.3.1a supports forking to multiple recorders.
CUBE Media Proxy IOS XE Gibraltar Release The CUBE Media Proxy solution provides
16.10.1a multiple forking functions for redundancy and
advanced media processing.
Supported Platforms
CUBE Media Proxy is supported on the following Cisco router platforms running on Cisco IOS XE Software
Releases:
• Cisco 4000 Series Integrated Services Routers (ISR4321, ISR4331, ISR4351, ISR4431, ISR4451, and
ISR4461)
• Cisco Aggregated Services Routers (ASR - ASR1001-X, ASR1002-X, ASR1004 with RP2, ASR1006
with RP2, Cisco ASR1006-X Aggregated Services Routers with RP2 and ESP40, ASR 1006-X with
RP3 and ESP40/ESP100)
• Cisco Cloud Services Routers (CSR1000V series)
• Cisco Catalyst 8000V Edge Software (Catalyst 8000V) series
• Cisco 8300 Catalyst Edge Series Platforms
• Cisco 8200 Catalyst Edge Series Platform (C8200-1N-4T)
• Cisco 8200L Catalyst Edge Series Platform (C8200L-1N-4T)
Note When upgrading to C8000V software from a CSR1000V release, an existing throughput configuration will
be reset to a maximum of 250Mbps. Install an HSEC authorization code, which you can obtain from your
Smart License account, before reconfiguring your required throughput level.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
580
CUBE Media Proxy
CUBE Media Proxy Using Unified CM Network-Based Recording
• Midcall block
• Concurrent use with CUBE B2BUA SBC features.
• Server Groups in outbound dial-peers toward recorders.
• Midcall updates from the recorders such as pause or resume recording, RE-INVITE with SDP changes,
INVITE that replaces header that is sent by recorders when they switch from active to standby CUBE
Media Proxy.
The following restriction applies when using CUBE Media Proxy with Unified CM NBR:
• If the primary recorder sends a=inactive in the response SDP, the same is forwarded to Unified CM.
Forking is not triggered to any of the recorders.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
581
CUBE Media Proxy
Secure Forking of Secure and Nonsecure Calls
Note You cannot use the mandatory policy command with secure forking configurations.
For SRTP pass through to work in secure media forking, the Command Line Interface srtp pass-thru should
be configured at global or dial-peer level.
Note From Cisco IOS XE Bengaluru 17.5.1a onwards, you can deploy a combination of secure and nonsecure
destinations.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
582
CUBE Media Proxy
CUBE Media Proxy Using Unified CM Network-Based Recording
Figure 46: Deployment Scenario for CUBE Media Proxy Using Unified CM NBR for Internal Call
Figure 47: Deployment Scenario for CUBE Media Proxy Using Unified CM NBR for External Call
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
583
CUBE Media Proxy
SIPREC-Based CUBE Media Proxy
Note • If the CUBE Media Proxy receives a '486' response from the initial recorder,
CUBE Media Proxy does not fork the INVITE to other recorders. To perform
alternate routing, configure the voice hunt user-busy command in global
configuration mode.
Example: Router(config)# voice hunt user-busy
• Secure recorders: When secure recorders are configured, mandatory proxy policy configuration does
not apply. CUBE Media Proxy tries to establish a connection with the first secure recorder from the
list of configured dial-peers. Forking to the remaining recorders happens after establishing a connection
with the first secure recorder.
4. If required, Cisco Unified SIP Proxy may be used to route or load balance a media fork for a group of
recorders.
Note The CUBE Media Proxy solution supports Unified CM Release 12.5.1 and Cisco Unified SIP Proxy Release
9.1.8.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
584
CUBE Media Proxy
Recording Metadata
Note On receiving BYE from the primary secure recorder, Media Proxy disconnects all secure and nonsecure
recording sessions. BYE received from any other recorder, secure or nonsecure, will not impact other active
recording sessions.
Recording Metadata
Metadata is the information that a Recording Server (RS) receives from a Recording Client (RC) in a SIP
session. Metadata has the following functions:
• Carries the communication session data that describes the call to the Recording Server.
• Identifies the participants list.
• Identifies the session and media association time.
Note The From header, including all metadata must not exceed 583 bytes.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
585
CUBE Media Proxy
Recording Metadata
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Require: siprec
Min-SE: 1800
Cisco-Guid: 2967454021-1296568810-2195116643-3918495780
User-Agent: Cisco-SIPGateway/IOS-17.3.20200207.160928
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO,
REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1581564919
Contact: <sip:[Link]:5060>;+[Link]
Expires: 180
Allow-Events: telephone-event
Session-ID: 812eae44f57c50b38e897d75d8e12809;remote=00000000000000000000000000000000
Content-Type: multipart/mixed;boundary=uniqueBoundary
Mime-Version: 1.0
Content-Length: 2250
--uniqueBoundary
Content-Type: application/sdp
Content-Disposition: session;handling=required
v=0
o=CiscoSystemsSIP-GW-UserAgent 5146 1045 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 8278 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendonly
a=label:1
m=audio 8280 RTP/AVP 0
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendonly
a=label:2
--uniqueBoundary
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session
<sipSessionID>0e0960d88013509f86e7ad2d78da208a;remote=4d0de1325c205fa08f77d8d31c1b3a6f</sipSessionID>
<start-time>2020-02-13T03:35:19.008Z</start-time>
</session>
<participant participant_id="sPVtz01IEeqC3tJj6Y+AJA==">
<nameID aor="sip:3478@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="sPVtz01IEeqC3tJj6Y+AJA=="
session_id="sPVtz01IEeqC3dJj6Y+AJA==">
<associate-time>2020-02-13T03:35:19.008Z</associate-time>
</participantsessionassoc>
<stream stream_id="sPgFxk1IEeqC49Jj6Y+AJA==" session_id="sPVtz01IEeqC3dJj6Y+AJA==">
<label>1</label>
</stream>
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
586
CUBE Media Proxy
Session Identifier
<participant participant_id="sPVtz01IEeqC39Jj6Y+AJA==">
<nameID aor="sip:98765@[Link]">
</nameID>
</participant>
<participantsessionassoc participant_id="sPVtz01IEeqC39Jj6Y+AJA=="
session_id="sPVtz01IEeqC3dJj6Y+AJA==">
<associate-time>2020-02-13T03:35:19.008Z</associate-time>
</participantsessionassoc>
<stream stream_id="sPgFxk1IEeqC5NJj6Y+AJA==" session_id="sPVtz01IEeqC3dJj6Y+AJA==">
<label>2</label>
</stream>
<participantstreamassoc participant_id="sPVtz01IEeqC3tJj6Y+AJA==">
<send>sPgFxk1IEeqC49Jj6Y+AJA==</send>
<recv>sPgFxk1IEeqC5NJj6Y+AJA==</recv>
</participantstreamassoc>
<participantstreamassoc participant_id="sPVtz01IEeqC39Jj6Y+AJA==">
<send>sPgFxk1IEeqC5NJj6Y+AJA==</send>
<recv>sPgFxk1IEeqC49Jj6Y+AJA==</recv>
</participantstreamassoc>
</recording>
--uniqueBoundary--
For a SIPREC call, the Require header in the SIP Invite (from Cisco UBE to CUBE Media Proxy, and from
CUBE Media Proxy to the recorders) must have a "siprec" extension. The Require header must also have
metadata in the XML body, else the call is dropped. The Contact header in a SIP invite has a "+[Link]"
extension.
Session Identifier
In both NBR and SIPREC modes, CUBE Media Proxy uses the Session-ID header in request and response
messages to exchange session identifiers for tracking a recording session between peers.
The Session-ID comprises of the following two Universally Unique Identifiers (UUIDs) corresponding to the
initiator and recipient of the recording request respectively:
• Local UUID corresponds to UUID of the User Agent that sends a recording request to the participants
of a recording session.
• Remote UUID corresponds to UUID of the User Agent that recieves the recording request in a recording
session.
Session-ID Handling
CUBE Media Proxy generates a unique UUID locally, and this UUID is passed as local UUID value in the
Session-ID header of the following SIP request and response:
• Request to primary and optional recorders.
• Response to Unified CM (Network-Based Recording) or CUBE (SIPREC-Based).
The following events are involved in the Session-ID handling by CUBE Media Proxy:
1. The initial Invite received by CUBE Media Proxy includes a local UUID generated by the originating
platform and a null remote UUID as shown in the following example.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
587
CUBE Media Proxy
Session-ID Handling
Session-ID: db248b6cbdc547bbc6c6fdfb6916eeb;remote=00000000000000000000000000000000
2. When sending an Invite to the primary recorder, CUBE Media Proxy generates a new UUID to use for
the local Session Identifier. The remote UUID remains null.
Session-ID: 8dfb2f2e1d4c518db6122080fb8b1d83;remote=00000000000000000000000000000000
3. The subsequent 200 OK response from the primary recorder includes a local session identifier that it
generated and the UUID provided by CUBE Media Proxy in the Invite as the remote session identifier.
Session-ID: 4fd24d9121935531a7f8d750ad16e19;remote=8dfb2f2e1d4c518db6122080fb8b1d83
4. When sending a 200 OK to the originating platform, CUBE Media Proxy uses the UUID it generated as
the local session identifier and the UUID it received initially as the remote session identifier.
Session-ID: 8dfb2f2e1d4c518db6122080fb8b1d83;remote=db248b6cbdc547bbc6c6fdfb6916eeb
5. CUBE Media Proxy sends a forking request to the remaining four recorders with Session-ID header
containing the same locally generated UUID as the local UUID and a "NULL" value for the remote UUID.
Session-ID: 8dfb2f2e1d4c518db6122080fb8b1d83;remote=00000000000000000000000000000000
6. CUBE Media Proxy receives 200OK response from the remaining four recorders. The Session-ID header
of the response message from each recorder contains UUID of the recorder as the local UUID and the
locally generated UUID by the CUBE Media Proxy as the remote UUID.
Session-ID: 4fd24d9121935531a7f8d750ad17f20;remote=8dfb2f2e1d4c518db6122080fb8b1d83
7. In NBR mode, CUBE Media Proxy sends a SIP Info Message to Unified CM. For more information on
SIP Info Message, see SIP Info Messages from CUBE Media Proxy to Unified CM, on page 589. The
Session-ID header of the SIP Info Message contains locally generated UUID by CUBE Media Proxy as
local UUID and the UUID of Unified CM as the remote UUID.
Session-ID: 8dfb2f2e1d4c518db6122080fb8b1d83;remote=db248b6cbdc547bbc6c6fdfb6916eeb
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
588
CUBE Media Proxy
Recording State Notification
Note The examples in the following sections illustrate CUBE Media Proxy forking to two of the maximum five
destinations.
<recorderList>
<recorder>
<uri>recorder1</uri>
<recordertype>Mandatory</recordertype>
<status>Success</status>
<errormessage>null</errormessage>
</recoder>
<recorder>
<uri>recorder2</uri>
<recordertype>Mandatory</recordertype>
<status>Failed</status>
<errormessage>SIP error code received from Recorder</errormessage> </recoder>
</recorderList>
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
589
CUBE Media Proxy
SIP Info Message Sent During the Initial Call
Note The primary recorder in a secure forking scenario functions the same way as a mandatory recorder functions
in a nonsecure forking scenario except that the recorderType tag is shown as optional. The following is the
XML format of a SIP INFO message in a combination of secure and nonsecure forking scenario:
<recorderList>
<recorder>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
</recorderList>
Table 64: Call Scenarios and Recorder Status During the Initial Call with All Recorders as Optional
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
590
CUBE Media Proxy
SIP Info Message Sent During the Initial Call (One Recorder as Mandatory and Remaining as Optional)
Note • After a SIP Info Message is sent, a 200 OK response is received from the initiator of the recording
session.
• In all failure scenarios, an error code is sent in the <errormessage>.
SIP Info Message Sent During the Initial Call (One Recorder as Mandatory and Remaining as
Optional)
For information on how to configure the recorders as Mandatory, see Step 3, Step 4 and, Step 5 of Configure
CUBE Media Proxy, on page 594.
The SIP Info Message that is sent during a recording session depends on the scenarios that are given in the
following table.
Table 65: Call Scenarios and Recorder Status During the Initial Call with a Mandatory Recorder
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
591
CUBE Media Proxy
How to Configure CUBE Media Proxy
Note • After a SIP Info Message is sent, a 200 OK response is received from the initiator of the recording
session. Unified CM sends a 415 Unsupported Media Type message if the INFO sent from
CUBE Media Proxy has a malformed XML body.
• For all failure scenarios, an error code is sent in the <errormessage>.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice recorder-dial-peer-tag voip
4. destination-pattern [+] string
5. session protocol sipv2
6. session target ipv4:[recording-server-destination-address | recording-server-dns]
7. session transport [udp| tcp | tls]
8. (Optional) voice-class sip srtp crypto <crypto-tag> OR srtp pass-thru
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
592
CUBE Media Proxy
Configure Outbound Dial-Peers to the Recorders
9. end
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice recorder-dial-peer-tag voip Configures a recorder dial peer and enters dial peer voice
configuration mode.
Example:
Step 4 destination-pattern [+] string Specifies either the prefix or full E.164 number required to
reach the recorder. A destination pattern must not include
Example:
regular expressions in this case.
Device(config-dial-peer)# destination-pattern Note
595959 Alternatively, "destination uri" may be used.
Step 5 session protocol sipv2 Configures the VoIP dial peer to use Session Initiation
Protocol (SIP).
Example:
Step 6 session target ipv4:[recording-server-destination-address Specifies the target network address for the recorder.
| recording-server-dns] Keyword and argument are as follows:
Example: • ipv4: destination address --IP address of the media
target.
Device(config-dial-peer)# session target
ipv4:[Link] Note
Cisco Unified SIP Proxy may be used to route or load
balance forked sessions between a group of recorders. In
this case, the Unified SIP Proxy IPv4 address should be
configured as the session target.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
593
CUBE Media Proxy
Configure CUBE Media Proxy
Step 8 (Optional) voice-class sip srtp crypto <crypto-tag> OR Configures SRTP crypto profile on the dial-peer.
srtp pass-thru
OR
Example:
Configure the SRTP pass through on the outbound dial-peer
Device(config-dial-peer)#voice-class sip srtp for incoming INVITE.
crypto 20
Note
OR
• This step is optional and is required only for secure
Device(config-dial-peer)#srtp pass-thru media forking.
• The voice-class sip srtp crypto <crypto-tag> is
configured for RTP-SRTP Interworking.
• The srtp pass-thru is configured for SRTP-SRTP
pass through.
SUMMARY STEPS
1. enable
2. configure terminal
3. media profile recorder profile-tag
4. media-recording proxy [dial-peer-tag1 dial-peer-tag2 dial-peer-tag3 dial-peer-tag4 dial-peer-tag5]
5. media-recording proxy secure [dial-peer-tag1 dial-peer-tag2 dial-peer-tag3 dial-peer-tag4
dial-peer-tag5]
6. proxy policy mandatory dial-peer-tag
7. exit
8. media class tag
9. recorder profile tag
10. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
594
CUBE Media Proxy
Configure CUBE Media Proxy
DETAILED STEPS
Procedure
Device> enable
Step 3 media profile recorder profile-tag Configures the media profile recorder and enters media
profile configuration mode.
Example:
Device(config)# media profile recorder 100
Step 4 media-recording proxy [dial-peer-tag1 dial-peer-tag2 Configures the dial-peers for forking. The proxy configures
dial-peer-tag3 dial-peer-tag4 dial-peer-tag5] the first dial-peer of the sequence for establishing a
back-to-back (B2B) call, and the remaining dial-peers for
Example:
media forking.
Device(cfg-mediaprofile)# media-recording proxy Note
8000 8001 8002 You can specify maximum of five dial-peer tags.
Step 5 media-recording proxy secure [dial-peer-tag1 From Cisco IOS XE Bengaluru 17.5.1a onwards, CUBE
dial-peer-tag2 dial-peer-tag3 dial-peer-tag4 Media Proxy supports both secure and nonsecure forking.
dial-peer-tag5] You can configure the dial-peers for both secure and
nonsecure forking. The permitted number of configured
Example:
secure and nonsecure dial peers for forking is five. The
behaviour in Cisco IOS XE Bengaluru 17.4.1a and earlier
Device(cfg-mediaprofile)# media-recording proxy
secure 9000 9001 9002 releases is unchanged if there are no secure dial peers
configured.
Note
• All secure dial peers must use the same voice class
srtp-crypto profile.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
595
CUBE Media Proxy
Configure Inbound Dial-Peer from Unified CM
Device(cfg-mediaprofile)# exit
Step 8 media class tag Configures a media class and enters media class
configuration mode.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice call-manager-dial-peer-tag voip
4. incoming uri {from | request |to | via } tag
5. media-class tag
6. (Optional) srtp pass-thru
7. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
596
CUBE Media Proxy
How to Configure CUBE Media Proxy for SIPREC Solutions
Device> enable
Step 3 dial-peer voice call-manager-dial-peer-tag voip Configures an inbound dial peer and enters the dial peer
voice configuration mode.
Example:
Step 4 incoming uri {from | request |to | via } tag Configures the voice class to match the VoIP dial-peer to
the URI of an incoming call from Unified CM using the
Example:
header in an incoming SIP INVITE message.
Device(config-dial-peer)# incoming uri via 101 Note
For more information on incoming uri command, see
incoming uri.
Step 5 media-class tag Configures media class on the inbound dial peer from
Unified CM.
Example:
Step 6 (Optional) srtp pass-thru Configure the SRTP pass through on the inbound dial peer
for incoming INVITE.
Example:
Device(config-dial-peer)#srtp pass-thru Note
This step is optional and is required only for secure media
forking.
The srtp pass-thru is configured for SRTP-SRTP pass
through.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
597
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
3. Configure SIPREC on CUBE. For more information, see SIPREC (SIP Recording).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
598
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
For CUBE Media Proxy using SIPREC, both near-end and far-end streams are established with the same
inbound INVITE, which includes the detail in 2 m-lines. The following example shows how the inbound
RTP connections are established before creating the RTP connections for five forks.
This example shows SIPREC with 5 recorders. One inbound INVITE (both near-end or far-end streams).
Device# show voip rtp connections
VoIP RTP Port Usage Information:
Max Ports Available: 19999, Ports Reserved: 101, Ports in Use: 12
Port range not configured
Min Max Ports Ports Ports
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
599
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
GUID : 7C5946D38ECD
AnchorLeg Details:
Call ID: 100
Forking Stream type: voice-nearend
Participant: 10000
In SIPREC-based CUBE Media Proxy, there are two voice near-end streams for the forked call leg.
Following is the sample output:
Device# show voip recmsp session detail call-id 208
RECMSP active sessions:
Detailed Information
=========================
Recording MSP Leg Details:
Call ID: 204
GUID : C710812A808A
AnchorLeg Details:
Call ID: 200
Forking Stream type: voice-nearend
Participant: sipp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
600
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
601
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
602
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
603
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
604
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
As there are 2-m lines in the incoming invite to SIPREC-based CUBE Media Proxy, two FPI sessions
are created. Following is the sample output:
Device#show voip fpi calls
Number of Calls : 2
---------- ---------- ---------- ----------- --------------- ------------
confID correlator AcallID BcallID state event
---------- ---------- ---------- ----------- --------------- ------------
42 13 102 100 ALLOCATED DETAIL_STAT_RSP
41 14 99 101 ALLOCATED DETAIL_STAT_RSP
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
605
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
SIPREC:
Device# show media-proxy sessions summary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
606
CUBE Media Proxy
Verification of CUBE Media Proxy Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
607
CUBE Media Proxy
Supported Features
Supported Features
Mid-Call Message Handling
CUBE Media Proxy using Unified CM NBR or SIPREC support midcall signaling events that involve
RE-INVITEs from the initiator of the recording session (Unified CM or Cisco UBE) to the recorders. CUBE
Media Proxy handles the RE-INVITEs that request a session refresh, change in SDP for media address,
direction or codec, or change SRTP crypto suite/key.
For NBR solutions, CUBE Media Proxy sends status updates of a midcall event to Unified CM using SIP
Info messages.
When CUBE Media Proxy establishes a new set of forked sessions, the first is referred to as the primary.
Where a destination is configured as mandatory, the destination is always the primary. Where all destinations
are optional, the first successfully created session is the primary.
Perform the following steps to handle midcall messages:
1. On receipt of a RE-INVITE, CUBE Media Proxy sends the RE-INVITE to the primary recorder.
2. If the primary destination responds to the RE-INVITE with a BYE, then:
• If the primary is mandatory, the call and all forks are stopped by sending BYE to the destinations
and originator.
• If the primary is optional, the BYE is acknowledged, but not passed back to the originator. The
primary session is maintained in a dormant state and further midcall updates are blocked for the
remainder of the call.
3. For other responses, the message from the primary is sent to the originator (Unified CM or CUBE).
4. Where the RE-INVITE requests a change in SDP or SRTP and only if this is successfully acknowledged
(200 OK) by the primary, the RE-INVITE is sent to the other destinations.
5. If any of the other destinations respond to the RE-INVITE with a failure, CUBE Media Proxy clears that
fork by sending a BYE to that destination. The status of this failed session is provided to Unified CM in
an INFO message in NBR configurations.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
608
CUBE Media Proxy
Support for High Availability
With CUBE Media Proxy using Unified CM NBR, it is possible to extend encrypted calls to forked destinations.
In this scenario, call signaling is secured using TLS for each connection between CUBE Media Proxy and
Unified CM and recorders. As SRTP passthrough is used for media flows, the cipher suite and encryption
key negotiated between Unified CM and the primary destination is used for all forks.
Refer to Configuring SIP TLS to secure signaling on Unified CM and forked legs. SRTP configuration is only
required for the Unified CM.
Secure Recording of Nonsecure Calls
From Cisco IOS XE Bengaluru 17.5.1a, CUBE Media Proxy used in NBR or SIPREC mode may be configured
to secure specific forked sessions when the original call is not encrypted. In this case, the primary destination
must be secured and is treated in the same way as a mandatory destination as described in the message handling
section above. Refer to SIP TLS and SRTP-RTP internetworking
You can use the following show commands to monitor the recording sessions on the Active and the Standby
instances of CUBE Media Proxy:
• show call active voice compact
• show voip rtp connections
• show voip recmsp session
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
609
CUBE Media Proxy
Media Latch
Media Latch
By default, CUBE Media Proxy using Unified CM NBR uses source address validation to check if the IP
address and port details that are received in the UDP header of the RTP or SRTP packets match with the
details in the SDP sent by the SIP User Agent. Packets without matching IP address and port are dropped.
In a typical SCCP-based BiB recording using Unified CM NBR CUBE Media Proxy, Unified CM first sends
an SDP with the IP address and a dummy port to the CUBE Media Proxy to get the capabilities of CUBE
Media Proxy. Unified CM then sends this SDP to the SCCP phone. The CUBE Media Proxy does not know
the BiB IP address and port details of the SCCP phone. In these call flows, the IP address and port details in
the media packets that are sent from BiB of the SCCP phone to SCCP phone, are different from the IP address
and port details in the packets that are sent from Unified CM to the CUBE Media Proxy.
Media Latching is enabled on Unified CM NBR CUBE Media Proxy by default so that the CUBE Media
Proxy learns the remote IP address and port details from the UDP transport header of the first RTP or SRTP
packet. Media latching is turned on for every call that flows through the CUBE Media Proxy, and works for
initial and midcall scenarios. Media Latching is enabled on the inbound leg (Unified CM leg), such that the
media packets are accepted even if they are sent from a source IP address and port that is different from the
IP address that is advertised in the SDP.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
610
PA R T X
SIP Header Manipulation
• Passing Headers Unsupported by CUBE, on page 613
• Copying SIP Headers, on page 615
• Manipulate SIP Status-Line Header of SIP Responses, on page 623
CHAPTER 44
Passing Headers Unsupported by CUBE
This feature is used to pass parameters that are unsupported by CUBE, but mandatory to the service provider
from one leg to another. When a SIP message is received, a check is done for the header, and if it is available,
it is copied into a copy list and passed on to the outbound dial peer leg.
• Feature Information for Copying with SIP Profiles, on page 613
• Example: Passing a Header Not Supported by CUBE, on page 613
Support for conditional 15.1(3)T This feature allows users to copy content from one header
header manipulation of to the another. This is done by copying the content of
Cisco IOS XE
SIP headers messages into variables which can then be used to modify
Release 3.6S
other SIP headers.
This feature modifies the following commands: voice
class sip-profiles, response, request, voice-class sip
copy-list, sip-header
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
613
SIP Header Manipulation
Example: Passing a Header Not Supported by CUBE
Create a copylist to pass the Contact Header from the incoming message to the outgoing message.
The “x-cisco-tip” is not copied in this step as it is unsupported by CUBE.
!Create a copyList
Device(config)# voice class sip-copylist 1
Device(config-class)# sip-header Contact
Device(config-class)# exit
Create a SIP profile that copies “x-cisco-tip” into a variable, and use that variable to modify the
outgoing Contact header. Apply the SIP profile to an outbound dial peer.
!Copy the Contact header from the incoming dial peer into variable u01
Device(config-class)# request INVITE peer-header sip Contact copy "(;x-cisco-tip)" u01
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
614
CHAPTER 45
Copying SIP Headers
This feature shows you how outgoing SIP headers can be manipulated using information from incoming and
other outgoing SIP headers.
• Feature Information for Copying with SIP Profiles, on page 615
• How to Copy SIP Header Fields to Another, on page 616
• Example: Copying the To Header into the SIP-Req-URI, on page 619
Support for conditional 15.1(3)T This feature allows users to copy content from one header
header manipulation of to the another. This is done by copying the content of
Cisco IOS XE
SIP headers messages into variables which can then be used to modify
Release 3.6S
other SIP headers.
This feature modifies the following commands: voice
class sip-profiles, response, request, voice-class sip
copy-list, sip-header
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
615
SIP Header Manipulation
How to Copy SIP Header Fields to Another
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-copylist tag
4. Do one of the following:
• sip-header header-name
• sip-header SIP-Req-URI
5. exit
6. dial-peer voice inbound-dial-peer-tag voip
7. voice-class sip-copylist tag
8. exit
9. voice class sip-profiles profile-id
10. {request | response} message peer-header sip header-to-copy copy header-value-to-match
copy-variable
11. {request | response} message {sip-header | sdp-header} header-to-modify modify
header-value-to-match header-value-to-replace
12. exit
13. dial-peer voice outbound-dial-peer-tag voip
14. voice-class sip-profiles profile-id
15. exit
DETAILED STEPS
Procedure
Step 3 voice class sip-copylist tag Configures a list of entities to be sent to a peer call leg and
enters voice class configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
616
SIP Header Manipulation
Copying From an Incoming Header and Modifying an Outgoing Header
Step 4 Do one of the following: Specifies the SIP header to be copied to the peer call leg.
• sip-header header-name • sip-req-uri—Configures Cisco Unified Border
• sip-header SIP-Req-URI Element (UBE) to send a SIP request Uniform
Resource Identifier (URI) to the peer call leg.
Example:
• header-name—Configures Cisco Unified Border
Device(config-class)# sip-header To Element (UBE) to send the header name specified to
the peer call leg.
Step 6 dial-peer voice inbound-dial-peer-tag voip Enters the dial peer configuration mode for the specified
inbound dial peer.
Example:
Device(config)# dial-peer voice 2 voip
Step 7 voice-class sip-copylist tag Applies the copy list to the dial-peer.
Example:
Step 9 voice class sip-profiles profile-id Create a SIP Profile and enters voice class configuration
mode.
Example:
Step 10 {request | response} message peer-header sip Copies headers from the corresponding incoming dial peer
header-to-copy copy header-value-to-match copy-variable into a copy variable.
Example:
Device(config-class)# request INVITE peer-header
sip TO copy "sip:(.*)@" u01
Step 11 {request | response} message {sip-header | sdp-header} Modifies an outgoing SIP or SDP header using the copy
header-to-modify modify header-value-to-match variable defined in the previous step.
header-value-to-replace
Example:
Device(config-class)# request INVITE sip-header
SIP-Req-URI modify ".*@(.*)" "INVITE sip:\u01@\1"
Step 13 dial-peer voice outbound-dial-peer-tag voip Enters the dial peer configuration mode for the specified
outbond dial peer.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
617
SIP Header Manipulation
Copying From One Outgoing Header to Another
DETAILED STEPS
Procedure
Step 3 voice class sip-profiles profile-id Creates a SIP profile and enters voice class configuration
mode.
Example:
Step 4 {request | response} message {sip-header | sdp-header} Copies the contents of the specified header from an
header-to-copy copy header-value-to-match copy-variable outbound message into a copy variable.
Example:
Device(config-class)# request INVITE sip-header TO
copy "sip:(.*)@" u01
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
618
SIP Header Manipulation
Example: Copying the To Header into the SIP-Req-URI
Step 6 end Exits voice class configuration mode and enters privileged
EXEC mode.
Example:
Device(config-class)# end
What to do next
Apply the SIP Profile to an outbound dial peer.
Given below is the original SIP message, where the INVITE has a non-routable value of 43565432A5.
The actual phone destination number is 25555552 and is present in the To: SIP header.
Figure 49: Incoming SIP Message
Given below is the SIP message that is required. Note that 43565432A5 has changed to 25555552
in the SIP INVITE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
619
SIP Header Manipulation
Example: Copying the To Header into the SIP-Req-URI
Because CUBE is a back-to-back user agent, the incoming dial peer is matched to the outgoing dial
peer. The SIP Profile configured below copies the value from the incoming dial peer
!Copy the To header from the incoming dial peer into variable u01
Device(config-class)# request INVITE peer-header sip TO copy “sip:(.*)@” u01
Additionally, if you would like to copy the To: Header from the inbound dial peer to the outbound
dial peer, use a copy list.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
620
SIP Header Manipulation
Example: Copying the To Header into the SIP-Req-URI
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
621
SIP Header Manipulation
Example: Copying the To Header into the SIP-Req-URI
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
622
CHAPTER 46
Manipulate SIP Status-Line Header of SIP
Responses
The SIP status line is a SIP response header, and it can be modified like any other SIP headers of a message.
it can either be modified with a user-defined value, or the status line from an incoming response can be copied
to an outgoing SIP response. The SIP header keyword used for the response status line is SIP-StatusLine.
• Feature Information for Manipulating SIP Responses, on page 623
• Copying Incoming SIP Response Status Line to Outgoing SIP Response, on page 624
• Modifying Status-Line Header of Outgoing SIP Response with User Defined Values, on page 627
SIP Profile 15.4(1)T This feature extends SIP profiles to allow the following:
Enhancements for SIP
Cisco IOS XE • Modification of the outgoing SIP response status line.
responses and error
Release 3.12S Previously, only modification of outgoing SIP requests and
codes
responses was possible.
• Copying of the incoming SIP response status-line. The
information from the peer-leg status-line can then be copied
to user-variables and applied to the outbound response
status-line. This option can be used to pass-thru the
error-code and error phrase from peer-leg. Previously, only
copying of SIP headers were possible.
• Before applying a SIP profile to a response from CUBE,
the response can be mapped to its corresponding request.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
623
SIP Header Manipulation
Copying Incoming SIP Response Status Line to Outgoing SIP Response
Support for conditional 15.1(3)T This feature allows users to copy content from one header to
header manipulation of the another. This is done by copying the content of messages
Cisco IOS XE
SIP headers into variables which can then be used to modify other SIP
Release 3.6S
headers.
This feature modifies the following commands: voice class
sip-profiles, response, request, voice-class sip copy-list,
sip-header
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-copylist tag
4. sip-header SIP-StatusLine
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
624
SIP Header Manipulation
Copying Incoming SIP Response Status Line to Outgoing SIP Response
5. exit
6. dial-peer voice inbound-dial-peer-id voip
7. voice-class sip copy-list list-id
8. exit
9. voice class sip-profiles tag
10. response response-code peer-header sip SIP-StatusLine copy match-pattern copy-variable
11. response response-code sip-header SIP-StatusLine modify match-pattern copy-variable
12. exit
DETAILED STEPS
Procedure
Step 3 voice class sip-copylist tag Configures a list of entities to be sent to the peer call leg
and enters voice class configuration mode.
Example:
Device(config)# voice class sip-copylist 1
Step 4 sip-header SIP-StatusLine Specifies that the Session Initiation Protocol (SIP) status
line header must be sent to the peer call leg.
Example:
Device(config-class)# sip-header SIP-StatusLine
Step 5 exit Exits voice class configuration mode and returns to global
configuration mode.
Example:
Device(config-class)# exit
Step 6 dial-peer voice inbound-dial-peer-id voip Specifies an inbound dial peer and enters dial peer
configuration mode.
Example:
Device(config)# dial-peer voice 99 voip
Step 7 voice-class sip copy-list list-id Associates the SIP copy list with the inbound dial peer.
Example:
Device(config-dial-peer)# voice-class sip
copy-list 1
Step 8 exit Exits dial peer configuration mode and returns to global
configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
625
SIP Header Manipulation
Copying Incoming SIP Response Status Line to Outgoing SIP Response
Device(config-dial-peer)# exit
Step 9 voice class sip-profiles tag Enables dial peer-based VoIP SIP profile configurations
and enters voice class configuration mode.
Example:
Step 10 response response-code peer-header sip Copies responses from the corresponding incoming call
SIP-StatusLine copy match-pattern copy-variable leg into a copy variable.
Example:
Step 11 response response-code sip-header SIP-StatusLine Modifies an outgoing response using the copy variable
modify match-pattern copy-variable defined in the previous step.
Example:
Step 12 exit Exits voice class configuration mode and returns to global
configuration mode.
Example:
Device(config-class)# exit
What to do next
Apply the SIP profile to the outbound dial peer to copy the SIP response to the outbound leg.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
626
SIP Header Manipulation
Modifying Status-Line Header of Outgoing SIP Response with User Defined Values
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class sip-profiles tag
4. response response-code [method method-type] sip-header SIP-StatusLine modify match-pattern
replacement-pattern
5. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
627
SIP Header Manipulation
Modifying Status-Line Header of Outgoing SIP Response with User Defined Values
Step 3 voice class sip-profiles tag Enables dial peer-based VoIP SIP profile configurations
and enters voice class configuration mode.
Example:
Step 4 response response-code [method method-type] sip-header Modifies SIP status line of a SIP response with user-defined
SIP-StatusLine modify match-pattern values.
replacement-pattern
Example:
Modifying status line of a SIP header to a user-defined
response type:
Device(config-class)# exit
What to do next
Associate the SIP profile with an outbound dial peer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
628
PA R T XI
Payload Type Interoperability
• Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls, on page 631
CHAPTER 47
Dynamic Payload Type Interworking for DTMF
and Codec Packets for SIP-to-SIP Calls
The Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls feature provides
dynamic payload type interworking for dual tone multifrequency (DTMF) and codec packets for Session
Initiation Protocol (SIP) to SIP calls.
Based on this feature, the Cisco Unified Border Element (Cisco UBE) interworks between different dynamic
payload type values across the call legs for the same codec. Also, Cisco UBE supports any payload type value
for audio, video, named signaling events (NSEs), and named telephone events (NTEs) in the dynamic payload
type range 96 to 127.
• Feature Information for Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP
Calls, on page 631
• Restrictions for Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls,
on page 632
• Symmetric and Asymmetric Calls, on page 632
• High Availability Checkpointing Support for Asymmetric Payload, on page 633
• How to Configure Dynamic Payload Type Passthrough for DTMF and Codec Packets for SIP-to-SIP
Calls, on page 634
• Configuration Examples for Assymetric Payload Interworking, on page 637
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
631
Payload Type Interoperability
Restrictions for Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls
Table 69: Feature Information for Dynamic Payload Interworking for DTMF and Codec Packets Support
Dynamic Payload Type 15.0(1)XA The Dynamic Payload Type Interworking for DTMF and
Interworking for DTMF and 15.1(1)T Codec Packets for SIP-to-SIP Calls feature provides
Codec Packets for SIP-to-SIP dynamic payload type interworking for DTMF and codec
Calls packets for SIP-to-SIP calls.
The following commands were introduced or modified:
asymmetric payload and voice-class sip asymmetric
payload.
Dynamic Payload Type Cisco IOS The Dynamic Payload Type Interworking for DTMF and
Interworking for DTMF and Release XE 3.1S Codec Packets for SIP-to-SIP Calls feature provides
Codec Packets for SIP-to-SIP dynamic payload type interworking for DTMF and codec
Calls packets for SIP-to-SIP calls.
The following commands were introduced or modified:
asymmetric payload and voice-class sip asymmetric
payload.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
632
Payload Type Interoperability
High Availability Checkpointing Support for Asymmetric Payload
The Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls feature is enabled
by default for a symmetric call. An offer is sent with a payload type based on the dial-peer configuration. The
answer is sent with the same payload type as was received in the incoming offer. When the payload type
values negotiated during the signaling are different, the Cisco UBE changes the Real-Time Transport Protocol
(RTP) payload value in the VoIP to RTP media path.
To support asymmetric call legs, you must enable The Dynamic Payload Type Interworking for DTMF and
Codec Packets for SIP-to-SIP Calls feature. The dynamic payload type value is passed across the call legs,
and the RTP payload type interworking is not required. The RTP payload type handling is dependent on the
endpoint receiving them.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
633
Payload Type Interoperability
How to Configure Dynamic Payload Type Passthrough for DTMF and Codec Packets for SIP-to-SIP Calls
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. asymmetric payload {dtmf | dynamic-codecs | full | system}
6. end
DETAILED STEPS
Procedure
Device> enable
Example:
Device(conf-voi-serv)# sip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
634
Payload Type Interoperability
Configuring Dynamic Payload Type Passthrough for a Dial Peer
Step 6 end Exits voice service SIP configuration mode and enters
privileged EXEC mode.
Example:
Device(conf-serv-sip)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. voice-class sip asymmetric payload {dtmf | dynamic-codecs | full | system}
5. end
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
635
Payload Type Interoperability
Verifying Dynamic Payload Interworking for DTMF and Codec Packets Support
Step 5 end (Optional) Exits dial peer voice configuration mode and
enters privileged EXEC mode.
Example:
Device(config-dial-peer)# end
Verifying Dynamic Payload Interworking for DTMF and Codec Packets Support
This task shows how to display information to verify Dynamic Payload Type Interworking for DTMF and
Codec Packets for SIP-to-SIP Calls configuration feature. These show commands need not be entered in any
specific order.
SUMMARY STEPS
1. enable
2. show call active voice compact
3. show call active voice
DETAILED STEPS
Procedure
Device> enable
Step 2 show call active voice compact (Optional) Displays a compact version of call information.
Example:
Step 3 show call active voice (Optional) Displays call information for voice calls in
progress.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
636
Payload Type Interoperability
Troubleshooting Tips
Troubleshooting Tips
Use the following commands to debug any errors that you may encounter when you configure the Dynamic
Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls feature:
• debug ccsip all
• debug voip ccapi inout
• debug voip rtp
Use the following debug commands to troubleshoot HA Checkpointing for Asymmetric Payload:
• debug voip ccapi all
• debug voice high-availability all
• debug voip rtp error
• debug voip rtp inout
• debug voip rtp packet
• debug voip rtp high-availability
• debug voip rtp function
• debug ccsip all
Use the following show commands to troubleshoot HA Checkpointing for Asymmetric Payload:
• show redundancy state
• show redundancy inter-device
• show standby brief
• show voice high-availability summary
• show voip rtp stats
• show voip rtp high-availability stats
• show voip rtp connection detail
• show call active voice brief
• show call active voice [summary]
• show call active video brief
• show call active video [summary]
• show align
• show memory debug leak
!
voice service voip
allow-connections sip to sip
sip
rel1xx disable
asymmetric payload full
midcall-signaling passthru
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
637
Payload Type Interoperability
Example: Asymmetric Payload Interworking—Interworking Configuration
!
dial-peer voice 1 voip
voice-class sip asymmetric payload full
session protocol sipv2
rtp payload-type cisco-codec-fax-ind 110
rtp payload-type cisco-codec-video-h264 112
session target ipv4:[Link]
!
In the above example, it is assumed that 110 and 112 are not used for any other payload.
!
voice service voip
allow-connections sip to sip
!
dial-peer voice 1 voip
session protocol sipv2
rtp payload-type cisco-codec-fax-ind 110
rtp payload-type cisco-codec-video-h264 112
session target ipv4:[Link]
!
In the above example, it is assumed that 110 and 112 are not used for any other payload.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
638
PA R T XII
Protocol Interworking
• Delayed-Offer to Early-Offer, on page 641
• H.323-to-SIP Interworking on CUBE, on page 651
• H.323-to-H.323 Interworking on CUBE, on page 657
• SIP RFC 2782 Compliance with DNS SRV Queries, on page 671
CHAPTER 48
Delayed-Offer to Early-Offer
The Delayed-Offer to Early-Offer (DO-EO) feature allows CUBE to convert a delayed offer that it receives
into an early offer. This feature is supported in the Media Flow-Around mode.
This feature also supports high-density transcoding calls, where transcoding IP addresses and port numbers
are exchanged between the sender and receiver. This feature also supports midcall renegotiation of codecs
required if an exchange of parameters that is not end-to-end causes an inefficient media flow.
• Feature Information for Delayed-Offer to Early-Offer, on page 641
• Prerequisites for Delayed-Offer to Early-Offer, on page 642
• Restrictions for Delayed-Offer to Early-Offer Media Flow-Around, on page 642
• Delayed-Offer to Early-Offer in Media Flow-Around Calls, on page 642
• MidCall Renegotiation Support for Delayed-Offer to Early-Offer Calls, on page 647
• High-Density Transcoding Calls in Delayed-Offer to Early-Offer, on page 649
Delayed-Offer to Cisco IOS 12.4(3) The Delayed-Offer to Early-Offer feature allows CUBE
Early-Offer to convert a delayed offer it receives into an early offer.
Cisco IOS 12.4(24)T
The following commands were introduced by this feature:
Cisco IOS 15.0(1)M
voice-class sip early-offer forced, early-offer forced
and media transcoder high-density.
Delayed-Offer to Cisco IOS 12.4(22)T The Delayed-Offer to Early-Offer support was extended
Early-Offer Support for for video calls. The following command was introduced:
Video Calls
codec-profile
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
641
Protocol Interworking
Prerequisites for Delayed-Offer to Early-Offer
Media Flow- Around with Cisco IOS 15.1(3)T Support for Media Flow-Around for Delayed-Offer to
SIP Signaling control on Early-Offer audio calls on CUBE was introduced. No new
CUBE commands were introduced or modified.
Midcall Renegotiation Cisco IOS 15.4(2)T The Midcall renegotiation of codecs feature configures
Support for DO-EO Calls the midcall renegotiation of codecs, if an exchange of
Cisco IOS XE 3.12S
parameters that is not end-to-end causes an inefficient
media flow.
The following commands were modified by this feature:
voice-class sip early-offer forced renegotiatle [always],
early-offer forced renegotiate [always].
CUBE supports delayed offer to early offer for SIP-to-SIP video calls. CUBE generates an outgoing Early
Offer INVITE with the configured codec list, for a incoming Delayed Offer INVITE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
642
Protocol Interworking
Configuring Delayed Offer to Early Offer
DO-EO video call is supported if both audio and video codecs are configured under a dial peer. codec profile
command defines the codec attributes for Video (H263, H264) and Audio (AACLD) codecs. The codec
attributes configured under codec-profile is used to generate the a=fmtp attribute line in the Early Offer SDP.
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
643
Protocol Interworking
Configuring Delayed Offer to Early Offer for Video Calls
Example:
In global VoIP SIP mode:
DETAILED STEPS
Procedure
Device> enable
Step 3 codec profile tag profile Configures the audio and video codec profiles.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
644
Protocol Interworking
Configuring Delayed Offer to Early Offer Medial Flow-Around
Step 4 dial-peer voice number number voip Enters dial peer configuration mode for the specified VoIP
dial peer.
Example:
Device(config)# dial-peer voice 1 voip
Step 5 codec codec profile Audio codec profile is applied on the dial peer.
Example:
Step 6 video codec codec profile Video codec profile is applied on the dial peer.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
645
Protocol Interworking
Configuring Delayed Offer to Early Offer Medial Flow-Around
DETAILED STEPS
Procedure
Device> enable
Example:
In global VoIP SIP mode:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
646
Protocol Interworking
MidCall Renegotiation Support for Delayed-Offer to Early-Offer Calls
The early-offer forced renegotiate command triggers a delayed-offer RE-INVITE if the negotiated codecs
are one of the following:
• aaclld—Audio codec AACLD 90000 bps
• h263—Video codec H263
• h263+—Video codec H263+
• h264—Video codec H264
• mp4a—Wideband audio codec
The early-offer forced renegotiate always command always triggers a delayed-offer RE-INVITE. This
option can be used to support all other codecs.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
647
Protocol Interworking
Configuring Mid Call Renegotiation Support for Delayed-Offer to Early-Offer Calls
Note For EO to EO calls, the Delayed-Offer midcall RE-INVITE is not triggered by the CUBE, if either
midcall-signaling block or midcall-signaling passthru media-change command is configured.
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice id voip Enters dial-peer configuration mode and configures the
selected dial peer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
648
Protocol Interworking
High-Density Transcoding Calls in Delayed-Offer to Early-Offer
The media transcoder high-density command is used to configure this feature in dial-peer configuration
mode (config-dial-peer). Refer to “Modes for Configuring Dial Peers” section to enter these modes and
configure this feature.
For high-density transcoding calls with a common codec, CUBE should be in Media Flow-Through mode
even though media flow-around is configured.
Figure 57: High-Density Transcoding Calls for Common Codecs in DO-to-EO
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
649
Protocol Interworking
Configuring High-Density Transcoding
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. media transcoder high-density
5. sip
6. early offer-forced
7. end
DETAILED STEPS
Procedure
Device> enable
Step 4 media transcoder high-density Enables media transcoder high-density for transcoding
high-density media calls.
Example:
Device(config-voi-serv)# media transcoder
high-density
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
650
CHAPTER 49
H.323-to-SIP Interworking on CUBE
This chapter describes how to configure H.323-to-SIP interworking in CUBE and lists the various features
supported in this interworking model.
Note H.323 protocol is no longer supported from Cisco IOS XE Bengaluru 17.6.1a onwards. Consider using SIP
for multimedia applications.
Prerequisites
• Enable CUBE on the device
• Perform basic H.323 gateway configuration. See Configuring H.323 Gateway (Optional)
• Perform basic H.323 gatekeeper configuration. See Configuring H.323 Gatekeeper (Optional)
Restrictions
• Changing codecs during rotary dial peer selection is not supported.
• Voice class codec is not supported.
• Configure extended capabilities on dial peers for fast start-to-early media scenarios.
• Delayed Offer to Slow-Start is not supported for SRTP-to-SRTP H.323-to-SIP calls.
• During a triggered INVITE scenario the Cisco UBE always generates a delayed offer INVITE.
• Fast-start to delayed-media signal interworking is not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
651
Protocol Interworking
H.323-to-SIP Basic Call Interworking
• Fast Start to Early Offer Supplementary Service will not work without extended capabilities configured
under dial-peer.
• GSMFR and GSMEFR codecs are not supported.
• Media flow-around is not supported.
• Passing multiple diversion headers or multiple contact header in 302 to the H.323 leg is not supported.
• RSVP for supplementary scenarios is not supported.
• Session refresh is not supported.
• SIP-to-H.323 Supplementary Services based on H.450 is not supported.
• Slow-start to early media signal interworking is not supported.
• Supplementary services are Empty Capability Set (ECS) based supplementary services from the H.323
perspective, not H.450 supplementary services.
• LTI based transcoding is not supported.
• Transcoding for supplementary calls is not supported.
• SCCP based codec transcoding is not support with an exception of Delayed-Offer to Slow-Start with
static codec.
• DTMF interworking rtp-nte to inband is supported only with non-high-density transcoding in a
delayed-offer to slow-start call.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
652
Protocol Interworking
H.323-to-SIP Basic Call Interworking
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
653
Protocol Interworking
H.323-to-SIP Supplementary Features Interworking
Feature Release
Support H.323-to-SIP Supplementary services for CUCM with MTP on the H.323 Trunk. 12.3(11)T
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
654
Protocol Interworking
H.323-to-SIP Codec Progress Indicator Interworking for Media Cut-Through
Feature Release
Conference ID can be used to correlate H.323 and SIP Radius records. Conference ID is unique 12.3(11)T
on both H.323 and SIP legs
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
655
Protocol Interworking
Configuring H.323-to-SIP Interworking
6. end
DETAILED STEPS
Procedure
Router> enable
Step 4 allow-connections h.323 to sip Allows connections from a h.323 endpoint to a SIP
endpoint.
Example:
Step 5 allow-connections sip to h.323 Allows connections from a SIP endpoint to a H.323
endpoint.
Example:
Step 6 end Exits to previliged EXEC mode.
Example:
Router(conf-voi-serv)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
656
CHAPTER 50
H.323-to-H.323 Interworking on CUBE
This chapter describes how to configure and enable features for H.323-to-H.323 connections on CUBE.
Note H.323 protocol is no longer supported from 17.6.1 onwards. Consider using SIP for multimedia applications.
Configuring H.323-to-H.323 connections on a CUBE open all ports by default. If CUBE has a public IP
address and a PSTN connection, CUBE becomes vulnerable to malicious attackers who can execute toll fraud
across the gateway. To eliminate this threat, you can bind an interface to a private IP address that is inaccessible
to untrusted hosts. In addition, you can protect any public or untrusted interface by configuring a firewall or
an access control list (ACL) to prevent unwanted traffic from traversing the router.
• Feature Information for H.323-to-H.323 Interworking, on page 657
• Prerequisites, on page 658
• Restrictions, on page 658
• Slow Start to Fast-Start Interworking, on page 658
• Call Failure Recovery (Rotary), on page 660
• Managing H.323 IP Group Call Capacities, on page 661
• Overlap Signaling, on page 666
• Verifying H.323-to-H.323 Interworking, on page 668
• Troubleshooting H.323-to-H.323 Interworking, on page 669
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
657
Protocol Interworking
Prerequisites
Managing H.323 IP Group 12.2(13)T Creates a maximum capacity for the IP group providing extra
Call Capacities control for load and resource balancing.
Overlap Signaling for 12.3(11)T The terminating gateway is responsible for collecting all the
H.323-to-H.323 Connections called number digits. Overlap signaling is implemented by
on a Cisco Unified Border matching destination patterns on the dial peers.
Element
Signal Interworking 12.3(11)T H.323-to-H.323 Interworking Between Fast Start and Slow
Start. This feature enables the Cisco UBE to bridge calls
between VoIP endpoints that support only H.323 FastStart
procedures and endpoints that support only normal H.245
signaling (SlowStart).
Prerequisites
• Enable CUBE application on a device
• Perform basic H.323 gateway configuration. See Configuring H.323 Gateway
• Perform basic H.323 gatekeeper configuration. See Configuring H.323 Gatekeeper
Restrictions
• Voice class codec is not supported.
• LTI-based transcoding is not supported.
• Supplementary services with transcoding is not supported.
• DTMF Interworking rtp-nte to out of band is not supported when high density transcoder is enabled. Use
normal transcoding for rtp-nte to out of band DTMF interworking.
• SCCP based codec transcoding is not supported. An exception to this restriction is slow start to slow
start with a static codec.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
658
Protocol Interworking
Restrictions for Slow-Start and Fast-Start Interworking
Note This task should not be used in situations where fast-start to fast-start or slow-start to slow-start calls are
possible.
SUMMARY STEPS
1. enable
2. configure terminal
3. Use one of the following commands to configure interworking between slow start and fast start.
• call start interwork in global VoIP configuration mode
• call start interwork in voice class configuration and applied to inbound and outbound dial peers.
4. end
DETAILED STEPS
Procedure
Router> enable
Step 3 Use one of the following commands to configure Enables interworking between slow start and fast start.
interworking between slow start and fast start.
• call start interwork in global VoIP configuration
mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
659
Protocol Interworking
Call Failure Recovery (Rotary)
Example:
In voice class configuration mode
SUMMARY STEPS
1. enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
660
Protocol Interworking
Managing H.323 IP Group Call Capacities
2. configure terminal
3. voice service voip
4. h323
5. emptycapability
6. exit
DETAILED STEPS
Procedure
Device> enable
Device(conf-voi-serv)# h323
Step 5 emptycapability Enables call failure recovery (TCS=0) without the need for
identical codec configuration.
Example:
Device(conf-serv-h323)# emptycapability
Router(conf-serv-h323)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
661
Protocol Interworking
Managing H.323 IP Group Call Capacities
carrier. However, if you want to use carrier ID-based routing, or if you need extra control for load and resource
balancing, you must configure carrier IDs in conjunction with the voice source-group command.
CUBE works with the voice source-group command to provide matching criteria for incoming calls. The
voice source-group command assigns a name to a set of source IP group characteristics. The terminating
gateway uses these characteristics to identify and translate the incoming VoIP call. If there is no voice source
group match, the default carrier ID is used, any source carrier ID on the incoming message is transmitted
without change, and no destination carrier is available. Call-capacity information is reported to the gatekeeper,
but carrier routing information is not.
If the voice source group matches, the matched source carrier ID is used and the target carrier ID defined in
the voice source group is used for the destination carrier ID.
Note You can use this task only when there are no active calls are active.
>
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. h323
5. ip circuit max-calls maximum-calls
6. ip circuit carrier-id carrier-name [reserved-calls reserved ]
7. ip circuit default only
8. exit
DETAILED STEPS
Procedure
Router> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
662
Protocol Interworking
Managing H.323 IP Group Call Capacities
Router(conf-voi-serv)# h323
Step 5 ip circuit max-calls maximum-calls (Required only if reserved calls are to exceed 1000) Sets
the maximum number of aggregate H.323 IP circuit carrier
Example:
call legs.
Router(config-serv-h323)# ip circuit max-calls 1500 If you do not configure this value, the default maximum
value is 1000 reserved call legs. You may need to configure
a lower value to obtain overload behavior. You can also
configure a higher value.
Note
After you set a maximum number of call legs for defined
circuits, any aggregate capacity left over is available for
default circuits. For example, if you specify 1000 as the
maximum number of call legs and then reserve 200 call
legs for defined circuits, 800 call legs are available for use
by default circuits.
Note
CUBE prevents you from allocating all of the capacity to
specified carriers; at least one available circuit is required,
which can be the default.
Step 6 ip circuit carrier-id carrier-name [reserved-calls reserved (Optional) Defines an IP circuit using the specified name
] as the circuit ID.
Example: Note
The reserved keyword for this command is optional. Using
Router(config-serv-h323)# ip circuit carrier-id AA this keyword creates a specified maximum number of calls
reserved-calls 500 for that circuit ID. The default value is 200 call legs.
Step 7 ip circuit default only (Optional) Creates a single carrier to use all of the call
capacity available to CUBE.
Example:
Note
Router(config-serv-h323)# ip circuit default only If you use the ip circuit default only command, you cannot
use the ip circuit carrier-id command to configure more
circuits. Using the ip circuit default only command creates
a single carrier using the default carrier name.
Router(conf-serv-h323)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
663
Protocol Interworking
Configuration Examples for Managing H.323 IP Group Call Capacities
The following examples show the default carrier configured with an incoming source carrier but no voice
source group configured.
Note In this example, 800 call legs are implicitly reserved for the default circuit.
Example: Default Carrier and Incoming Source Carrier with No Voice Source Group
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
664
Protocol Interworking
Configuration Examples for Managing H.323 IP Group Call Capacities
If there is no incoming source carrier ID, the default circuit is used because there is no match in the voice
source group.
If there is an incoming source carrier ID called “AA,” the following are in effect:
• The voice source group matches.
• Both call legs are counted against circuit “AA”.
• The source carrier ID is passed through the gateway to the terminating leg.
• The destination carrier ID is “AA”.
The following examples show the second voice source group match case:
If there is no incoming source carrier ID, the default circuit is used because there is no match in the voice
source group.
If there is an incoming source carrier ID called “AA”:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
665
Protocol Interworking
Overlap Signaling
Overlap Signaling
Overlap signaling requires that called digits be sent one-by-one as they are received from the calling device.
The first digit is sent in a call setup message and subsequent digits are sent in information messages. This
technique is used when a receiving gateway is able to recognize variable-length phone numbers, and requires
that the originating gateway signal the end of the call setup process.
Overlap signaling is implemented by matching destination patterns on the dial peers. When H.225 signal
overlap is configured on the originating gateway, it sends the SETUP to the terminating gateway once a
dial-peer match is found. The originating gateway sends all further digits received from the user to the
terminating gateway using INFO messages until it receives a sending complete message from the user. The
terminating gateway receives the digits in SETUP and subsequent INFO messages and does a dial-peer match.
If a match is found, it sends a SETUP with the collected digits to the PSTN. All subsequent digits are sent to
the PSTN using INFO messages to complete the call.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
666
Protocol Interworking
Configuring Overlap Signaling
4. h323
5. h225 signal overlap
6. h225 timeout t302 seconds
7. exit
DETAILED STEPS
Procedure
Router> enable
Router(conf-voi-serv)# h323
Step 5 h225 signal overlap Activates overlap signaling to the destination gateway.
Example:
Step 6 h225 timeout t302 seconds Sets the t302 timer timeout value. The argument is as
follows:
Example:
• seconds— Number of seconds for timeouts. Range: 1
Router(conf-serv-h323)# h225 timeout t302 15 to 30.
Router(conf-serv-h323)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
667
Protocol Interworking
Verifying H.323-to-H.323 Interworking
Note The word “calls” refers to call legs in some commands and output.
SUMMARY STEPS
1. show call active video
2. show call active voice
3. show call active fax
4. show call history video
5. show call history voice
6. show call history fax
7. show crm
8. show dial-peer voice
9. show running-config
10. show voip rtp connections
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
668
Protocol Interworking
Troubleshooting H.323-to-H.323 Interworking
Caution Under moderate traffic loads, these debug commands produce a high volume of output.
• debug cch323 all
• debug h225 asn1
• debug h225 events
• debug h225 q931
• debug h245 asn1
• debug h245 events
• debug voip ipipgw
• debug voip ccapi inout
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
669
Protocol Interworking
Troubleshooting H.323-to-H.323 Interworking
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
670
CHAPTER 51
SIP RFC 2782 Compliance with DNS SRV Queries
Effective with Cisco IOS XE Release 2.5, the Domain Name System Server (DNS SRV) query used to
determine the IP address of the user endpoint is modified in compliance with RFC 2782 (which supersedes
RFC 2052). The DNS SRV query prepends the protocol label with an underscore "_" character to reduce the
risk of duplicate names being used for unrelated purposes. The form compliant with RFC 2782 is the default
style.
• Prerequisites SIP RFC 2782 Compliance with DNS SRV Queries, on page 671
• Information SIP RFC 2782 Compliance with DNS SRV Queries, on page 671
• How to Configure SIP-RFC 2782 Compliance with DNS SRV Queries, on page 672
• Configuring DNS Server Lookups , on page 673
• Verifying, on page 675
• Feature Information for SIP RFC 2782 Compliance with DNS SRV Queries, on page 675
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
671
Protocol Interworking
How to Configure SIP-RFC 2782 Compliance with DNS SRV Queries
Note The DNS SRV lookup is always attempted first for a Fully Qualified Domain Name (FQDN). If the DNS
SRV lookup fails CUBE falls back to A-AAAA lookup. If you manually add a port number to a FQDN, the
CUBE performs an A-AAAA lookup instead of SRV lookup.
Example:
'session target dns:[Link]' would perform an SRV lookup and 'session target dns:[Link]' would
perform an A-AAAA lookup.
Note You do not have to perform this task if you want to use the default RFC 2782 format.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. sip-ua
5. srv version {1 | 2}
6. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
672
Protocol Interworking
Configuring DNS Server Lookups
Router> enable
Step 3 interface type number Configures an interface type and enters interface
configuration mode
Example:
Router(config-if)# sip-ua
Step 5 srv version {1 | 2} Generates DNS SRV queries in either RFC 2782 or RFC
2052 format.
Example:
• 1 --The query is set to the domain name prefix of
Router(config-sip-ua)# srv version 2 [Link]. (RFC 2052 style).
• 2 --The query is set to the domain name prefix of
_protocol._transport. (RFC 2782 style). This is the
default.
Router(config-sip-ua)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
673
Protocol Interworking
Configuring DNS Server Lookups
!
dial-peer voice 1 voip
session protocol sipv2
session transport tcp tls
session target dns:[Link]
!
From Cisco IOS XE Gibraltar Release 16.12.3 onwards, CUBE sends '_sips._tcp.' query when the transport
is TLS. The '_sips._tcp.' query is independent of the URI scheme—sip or sips. Following is the example to
configure '_sips._tcp.'.
!
dial-peer voice 1 voip
session protocol sipv2
session transport tcp tls
session target dns:[Link]
!
Note Locally hosted DNS SRV entries are not supported until IOS-XE release 3.17S.
Troubleshooting Tips
You can use the following commands to troubleshoot the DNS SRV issues.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
674
Protocol Interworking
Verifying
Verifying
The following example shows sample is output from the show sip-ua status command used to verify the style
of DNS server queries:
Feature Information for SIP RFC 2782 Compliance with DNS SRV
Queries
The following table provides release information about the feature or features described in this module. This
table lists only the software release that introduced support for a given feature in a given software release
train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
ISR feature history table entry
Table 74: Feature Information for SIP: RFC 2782 Compliance with DNS SRV Queries
SIP: RFC 2782 12.2(8)T, Effective with Cisco IOS XE Release 2.5, the DNS SRV query
Compliance of DNS 12.2(11)T, used to determine the IP address of the user endpoint is modified
SRV Queries 12.2(15)T in compliance with RFC 2782 (which supersedes RFC 2052).
The DNS SRV query prepends the protocol label with an
underscore "_" character to reduce the risk of duplicate names
being used for unrelated purposes. The form compliant with
RFC 2782 is the default style.
The following command was introduced or modified: srv
version.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
675
Protocol Interworking
Feature Information for SIP RFC 2782 Compliance with DNS SRV Queries
Table 75: Feature Information for SIP: RFC 2782 Compliance with DNS SRV Queries
SIP: RFC 2782 Cisco IOS XE Effective with Cisco IOS XE Release 2.5, the DNS SRV query
Compliance of DNS Release 2.5 used to determine the IP address of the user endpoint is modified
SRV Queries in compliance with RFC 2782 (which supersedes RFC 2052).
The DNS SRV query prepends the protocol label with an
underscore "_" character to reduce the risk of duplicate names
being used for unrelated purposes. The form compliant with RFC
2782 is the default style.
The following command was introduced or modified: srv version.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
676
PA R T XIII
Support for SRTP
• SRTP-SRTP Interworking, on page 679
• SRTP-RTP Interworking, on page 695
• SRTP-SRTP Pass-Through, on page 711
CHAPTER 52
SRTP-SRTP Interworking
Cisco Unified Border Element (CUBE) supports secure calls between two networks having different cipher
suites. SRTP-SRTP interworking is supported for audio and video calls.
• Feature Information for SRTP-SRTP Interworking, on page 679
• Prerequisites for SRTP-SRTP Interworking, on page 680
• Restrictions for SRTP-SRTP Interworking, on page 680
• Information About SRTP-SRTP Interworking, on page 680
• How to Configure SRTP-SRTP Interworking, on page 682
• Configuration Examples, on page 690
Security Readiness Criteria Cisco IOS XE Gibraltar Release Command show sip-ua calls is
(SRC)—Modified the command 16.11.1a modified to display local crypto key
show sip-ua calls. and remote cryto key.
Support for SRTP-SRTP Cisco IOS XE Everest 16.5.1b This feature allows secure calls
interworking between two enterprises using
different cipher suites. Supported
cipher suites are as follows:
• AEAD_AES_256_GCM
• AEAD_AES_128_GCM
• AES_CM_128_HMAC_SHA1_80
• AES_CM_128_HMAC_SHA1_32
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
679
Support for SRTP
Prerequisites for SRTP-SRTP Interworking
Note SRTP-SRTP Interworking feature is not supported on Cisco ISR G2 Series Routers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
680
Support for SRTP
Supplementary Services Support
CUBE allows you to change the list of preference order of the cipher-suites. Cipher-suite preference can be
configured globally (under voice service voip >> sip), on a voice class tenant, or on a dial peer.
The preference range is 1–4, where 1 represents highest preference. CUBE offers SRTP cipher-suites in SDP
offer based on the preference configured. For SDP answer, the highest configured preference cipher suite that
matches the offer from peer is selected.
For call transfers involving REFER and 302 messages (messages that are locally consumed on CUBE),
end-to-end media renegotiation is initiated from CUBE only when you configure the supplementary-service
media-renegotiate command in voice service VoIP configuration mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
681
Support for SRTP
How to Configure SRTP-SRTP Interworking
Note Any call-flow wherein there is a switchover from RTP to SRTP on the same SIP call-leg requires the
supplementary-service media-renegotiate command that is enabled in global or voice service VoIP
configuration mode to ensure that there is 2-way audio.
Example call-flows:
• RTP-RTP flow switching to SRTP-RTP.
• Nonsecure MOH being played during secure call hold or resume.
• RTP-SRTP flow switching to SRTP- SRTP.
When supplementary services are invoked from the endpoints, the call can switch between SRTP and RTP
during the call duration. Hence, Cisco recommends that you configure such SIP trunks for SRTP fallback.
For information on configuring SRTP fallback, refer Enabling SRTP Fallback, on page 687.
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
682
Support for SRTP
Configuring SRTP
Device> enable
Step 3 dial-peer voice tag voip Defines a particular dial peer, to specify the method of
voice encapsulation, and enters dial peer voice
Example:
configuration mode.
Device(config)# dial-peer voice 201 voip • In the example, the following parameters are set:
• Dial peer 201 is defined.
• VoIP is shown as the method of encapsulation.
Step 4 destination-pattern string Specifies either the prefix or the full E.164 telephone
number to be used for a dial peer string.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# destination-pattern for the telephone number.
5550111
Step 5 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the packet network.
Example:
• In the example, the sipv2 keyword is configured so
Device(config-dial-peer)# session protocol sipv2 that the dial peer uses the SIP protocol.
Step 6 session target ipv4:destination-address Designates an IP address where calls will be sent.
Example: • In the example, calls matching this outbound dial-peer
will be sent to [Link].
Device(config-dial-peer)# session target
ipv4:[Link]
Step 7 incoming called-number string Specifies a digit string that can be matched by an incoming
call to associate the call with a dial peer.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# incoming called-number for the E.164 or private dialing plan telephone
5550111 number.
Step 8 srtp Specifies that SRTP is used to enable secure calls for the
dial peer.
Example:
Device(config-dial-peer)# srtp
Step 9 codec codec Specifies the voice coder rate of speech for the dial peer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
683
Support for SRTP
Configuring Cipher Suite Preference (optional)
Device(config-dial-peer)#end
Step 11 dial-peer voice tag voip Defines a particular dial peer, to specify the method of
voice encapsulation, and enters dial peer voice
Example:
configuration mode.
Device(config)# dial-peer voice 200 voip • In the example, the following parameters are set:
• Dial peer 200 is defined.
• VoIP is shown as the method of encapsulation.
Step 13 srtp Specifies that SRTP is used to enable secure calls for the
dial peer.
Example:
Device(config-dial-peer)# srtp
Step 14 codec codec Specifies the voice coder rate of speech for the dial peer.
Example: • In the example, G.711 mu-law at 64,000 bps, is
specified as the voice coder rate for speech.
Device(config-dial-peer)# codec g711ulaw
Device(config-dial-peer)# exit
Note No additional configurations are required if you want to configure the default preference order. Use the
following procedure for changing the default preference.
SUMMARY STEPS
1. enable
2. configure terminal
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
684
Support for SRTP
Applying Crypto Suite Selection Preference (optional)
DETAILED STEPS
Procedure
Step 3 voice class srtp-crypto tag Enters voice class configuration mode and assign an
identification tag for a srtp-crypto voice class.
Example:
Device(config)# voice class srtp-crypto 100
Step 4 crypto preference cipher-suite Specifies the preference for an SRTP cipher-suite that will
be offered by Cisco Unified Border Element (CUBE) in the
Example:
SDP in offer and answer.
Device(config-class)# crypto 1 AEAD_AES_256_GCM
You can configure a maximum of four preferences.
Example
What to do next
Assign SRTP Crypto voice class globally, or on a voice-class tenant, or on a dial-peer. For more information,
see Applying Crypto Suite Selection Preference (optional), on page 685.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
685
Support for SRTP
Applying Crypto Suite Selection Preference (optional)
SUMMARY STEPS
1. enable
2. configure terminal
3. Apply crypto suite selection preference
• In global configuration mode:
• voice service voice
• sip
• srtp-crpto crypto-tag
4. end
DETAILED STEPS
Procedure
Step 3 Apply crypto suite selection preference Assigns previously configured crypto-suite selection
preference.
• In global configuration mode:
The cryptp-tag maps to the tag created using the voice class
• voice service voice
srtp-crypto command available in global configuration
• sip mode.
• srtp-crpto crypto-tag
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
686
Support for SRTP
Enabling SRTP Fallback
Example:
In global configuration mode:
Device> enable
Device# configure terminal
Device(config)# voice service voice
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# srtp-crypto 102
Device> enable
Device# configure terminal
Device(config)# voice class tenant 100
Device(conf-serv-sip)# srtp-crypto 102
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 300 voip
Device(config-dial-peer)# voice-class sip
srtp-crypto 102
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands:
• In dial-peer configuration mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
687
Support for SRTP
Enabling SRTP Fallback
dial-peer
voice
tag
voip
srtp
fallback (for interworking with devices other than Cisco Unified Communications Manager)
or
sip
srtp
fallback(for interworking with devices other than Cisco Unified Communications Manager)
or
srtp
negotiate cisco (Enable this CLI along with srtp fallback command to support SRTP fallback with
Cisco Unified Communications Manager )
4. exit
DETAILED STEPS
Procedure
Device> enable
Step 3 Enter one of the following commands: Enables call fallback to nonsecure mode.
• In dial-peer configuration mode
dial-peer
voice
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
688
Support for SRTP
Enabling SRTP Fallback
srtp
fallback (for interworking with devices other than
Cisco Unified Communications Manager)
or
sip
srtp
fallback(for interworking with devices other than
Cisco Unified Communications Manager)
or
srtp
negotiate cisco (Enable this CLI along with srtp
fallback command to support SRTP fallback with
Cisco Unified Communications Manager )
Example:
Example:
Example:
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
689
Support for SRTP
Configuration Examples
Device(conf-voi-serv)# exit
Configuration Examples
Example: Configuring SRTP-SRTP Interworking
The following example shows how to configure support for SRTP-SRTP interworking. In this example, the
incoming call leg preference is set to AEAD_AES_256_GCM crypto-suite and the outgoing call leg preference
is set to AES_CM_128_HMAC_SHA1_80 crypto-suite.
Configure SRTP:
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 300 voip
Device(config-dial-peer)# description "inbound dialpeer for 81560"
Device(config-dial-peer)# session protocol sipv2
Device(config-dial-peer)# incoming called-number 81560
Device(config-dial-peer)# srtp
Device(config-dial-peer)# codec g711ulaw
Device(config-dial-peer)# end
Create a voice class srtp-crypto 100 and assign AEAD_AES_256_GCM crypto-suite with highest preference:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
690
Support for SRTP
Example: Configuring SRTP-SRTP Interworking
Create a voice class srtp-crypto 103 and assign AES_CM_128_HMAC_SHA1_80 crypto-suite with highest
preference:
Device> enable
Device# configure terminal
Device(config)# voice class srtp-crypto 103
Device(config-class)# crypto 1 AES_CM_128_HMAC_SHA1_80
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
691
Support for SRTP
Example: Changing the Cipher-Suite Preference
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
692
Support for SRTP
Example: Changing the Cipher-Suite Preference
The following is the snippet of show running-config command output showing the cipher-suite preference:
If you want to change the preference 4 to AES_CM_128_HMAC_SHA1_80, execute the following command:
The following is the snippet of show running-config command output showing the change in cipher-suite:
Device(config-class)# no crypto 4
Device(config-class)# crypto 3 AES_CM_128_HMAC_SHA1_80
The following is the snippet of show running-config command output showing the cipher-suite preference
overwritten:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
693
Support for SRTP
Example: Changing the Cipher-Suite Preference
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
694
CHAPTER 53
SRTP-RTP Interworking
The Cisco Unified Border Element (CUBE) Support for SRTP-RTP Interworking feature allows secure
network to non-secure network calls and provides operational enhancements for Session Initiation Protocol
(SIP) trunks from Cisco Unified Call Manager and Cisco Unified Call Manager Express. Support for Secure
Real-Time Transport Protocol (SRTP) to Real-Time Transport Protocol (RTP) interworking in a network is
enabled for SIP-SIP audio calls.
• Feature Information for SRTP-RTP Interworking, on page 695
• Prerequisites for SRTP-RTP Interworking, on page 696
• Restrictions for SRTP-RTP Interworking, on page 696
• Information About SRTP-RTP Interworking, on page 696
• How to Configure Support for SRTP-RTP Interworking, on page 700
• Configuration Examples for SRTP-RTP Interworking, on page 708
Cisco Unified Border Element 12.4(22)YB , 15.0(1)M This feature allows secure to non-secure
Support for SRTP-RTP enterprise calls. Support for SRTP-RTP
Cisco IOS XE 3.1S
Interworking interworking between one or multiple Cisco
Unified Border Elements is enabled for SIP-SIP
audio calls.
Supplementary Services Support Cisco IOS 15.2(1)T The SRTP-RTP Interworking feature was
on CUBE for SRTP-RTP Calls enhanced to support supplementary services
Cisco IOS XE 3.7S
for SRTP-RTP calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
695
Support for SRTP
Prerequisites for SRTP-RTP Interworking
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
696
Support for SRTP
Support for SRTP-RTP Interworking
• RTP to third-party equipment. For example, IP trunks to PBXs or virtual machines, which do not support
SRTP.
The Cisco Unified Border Element Support for SRTP-RTP Interworking feature connects SRTP enterprise
domains to RTP SIP provider SIP trunks. SRTP-RTP interworking connects RTP enterprise networks with
SRTP over an external network between businesses. This provides flexible secure business-to-business
communications without the need for static IPsec tunnels or the need to deploy SRTP within the enterprise,
as shown in the figure below.
Figure 60: Secure Business-to-Business Communications
SRTP-RTP interworking also connects SRTP enterprise networks with static IPsec over external networks,
as shown inthe figure below.
Figure 61: SRTP Enterprise Network Connections
SRTP-RTP interworking on the CUBE in a network topology uses single-pair key generation. Existing audio
and dual-tone multifrequency (DTMF) transcoding is used to support voice calls. SRTP-RTP interworking
support is provided in both flow-through and high-density mode. There is no impact on SRTP-SRTP
pass-through calls.
SRTP is configured on one dial peer using the srtp and srtp fallback commands. RTP is configured on the
other dial peer. The dial peer configuration takes precedence over the global configuration on the CUBE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
697
Support for SRTP
Using SRTP-RTP Chain for Interworking Between AES_CM_128_HMAC_SHA1_32 and AES_CM_128_HMAC_SHA1_80 Crypto Suites
Fallback handling occurs if one of the call endpoints does not support SRTP. The call can fall back to RTP-RTP,
or the call can fail, depending on the configuration. Fallback takes place only if the srtp fallback command
is configured on the respective dial peer.
• SIP trunk side—An SRTP connection using the AES_CM_128_HMAC_SHA1_80 crypto suite is initiated
by CUBE2 here. In the image below, CUBE2 is the border element on the Customer Network and SBC
is the border element on the Service Provider Network.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
698
Support for SRTP
Supplementary Services Support
For call transfers involving REFER and 302 messages (messages that are locally consumed on CUBE),
end-to-end media renegotiation is initiated from CUBE only when you configure the supplementary-service
media-renegotiate command in voice service VoIP configuration mode.
Note Any call-flow wherein there is a switchover from RTP to SRTP on the same SIP call-leg requires the
supplementary-service media-renegotiate command that is enabled in global or voice service VoIP
configuration mode to ensure that there is 2-way audio.
Example call-flows:
• RTP-RTP flow switching to SRTP-RTP.
• Nonsecure MOH being played during secure call hold or resume.
• RTP-SRTP flow switching to SRTP- SRTP.
When supplementary services are invoked from the endpoints, the call can switch between SRTP and RTP
during the call duration. Hence, Cisco recommends that you configure such SIP trunks for SRTP fallback.
For information on configuring SRTP fallback, refer Enabling SRTP Fallback, on page 687.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
699
Support for SRTP
How to Configure Support for SRTP-RTP Interworking
Note From Cisco IOS XE Everest Release 16.5.1b onwards, the following crypto suites are enabled by default on
the SRTP leg:
• AEAD_AES_256_GCM
• AEAD_AES_128_GCM
• AES_CM_128_HMAC_SHA1_80
• AES_CM_128_HMAC_SHA1_32
Use the following procedure for changing the default preference list.
Perform the task in this section to enable SRTP-RTP interworking support between one or multiple Cisco
Unified Border Elements for SIP-SIP audio calls. In this task, RTP is configured on the incoming call leg and
SRTP is configured on the outgoing call leg.
Note This feature is available only on Cisco IOS images with security package.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. destination-pattern string
5. session protocol sipv2
6. session target ipv4: destination-address
7. incoming called-number string
8. codec codec
9. end
10. dial-peer voice tag voip
11. Repeat Steps 4, 5, 6, and 7 to configure a second dial peer.
12. srtp
13. codec codec
14. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
700
Support for SRTP
Configuring SRTP-RTP Interworking Support
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Defines a particular dial peer, to specify the method of
voice encapsulation, and enters dial peer voice
Example:
configuration mode.
Device(config)# dial-peer voice 201 voip • In the example, the following parameters are set:
• Dial peer 201 is defined.
• VoIP is shown as the method of encapsulation.
Step 4 destination-pattern string Specifies either the prefix or the full E.164 telephone
number to be used for a dial peer string.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# destination-pattern for the telephone number.
5550111
Step 5 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the packet network.
Example:
• In the example, the sipv2 keyword is configured so
Device(config-dial-peer)# session protocol sipv2 that the dial peer uses the SIP protocol.
Step 6 session target ipv4: destination-address Designates an IPv4 destination address where calls will
be sent.
Example:
• In the example, calls matching this outbound dial-peer
Device(config-dial-peer)# session target will be sent to [Link].
ipv4:[Link].
Step 7 incoming called-number string Specifies a digit string that can be matched by an incoming
call to associate the call with a dial peer.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# incoming called-number for the E.164 or private dialing plan telephone
5550111 number.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
701
Support for SRTP
Configuring Crypto Authentication
Device(config-dial-peer)#end
Step 10 dial-peer voice tag voip Defines a particular dial peer, to specify the method of
voice encapsulation, and enters dial peer voice
Example:
configuration mode.
Device(config)# dial-peer voice 200 voip • In the example, the following parameters are set:
• Dial peer 200 is defined.
• VoIP is shown as the method of encapsulation.
Step 12 srtp Specifies that SRTP is used to enable secure calls for the
dial peer.
Example:
Device(config-dial-peer)# srtp
Step 13 codec codec Specifies the voice coder rate of speech for the dial peer.
Example: • In the example, G.711 mu-law at 64,000 bps, is
specified as the voice coder rate for speech.
Device(config-dial-peer)# codec g711ulaw
Device(config-dial-peer)# exit
Note Effective Cisco IOS XE Everest Releases 16.5.1b, srtp-auth command is deprecated. Although this command
is still available in Cisco IOS XE Everest software, executing this command does not cause any configuration
changes. Use voice class srtp-crypto command to configure the preferred cipher-suites for the SRTP call
leg (connection). For more information, see SRTP-SRTP Interworking.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
702
Support for SRTP
Configuring Crypto Authentication
SUMMARY STEPS
1. enable
2. configure terminal
3. Execute the commands based on your configuration mode
• In dial-peer configuration mode:
sip
4. end
DETAILED STEPS
Procedure
Step 3 Execute the commands based on your configuration mode Configures an SRTP connection on CUBE using the
preferred crypto suite.
• In dial-peer configuration mode:
• The default value is sha1-32.
dial-peer voice tag voip
sip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
703
Support for SRTP
Enabling SRTP Fallback
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands:
• In dial-peer configuration mode
dial-peer
voice
tag
voip
srtp
fallback (for interworking with devices other than Cisco Unified Communications Manager)
or
voice-class sip srtp
negotiate cisco (Enable this CLI along with srtp fallback command to support SRTP fallback with
Cisco Unified Communications Manager )
sip
srtp
fallback(for interworking with devices other than Cisco Unified Communications Manager)
or
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
704
Support for SRTP
Enabling SRTP Fallback
srtp
negotiate cisco (Enable this CLI along with srtp fallback command to support SRTP fallback with
Cisco Unified Communications Manager )
4. exit
DETAILED STEPS
Procedure
Device> enable
Step 3 Enter one of the following commands: Enables call fallback to nonsecure mode.
• In dial-peer configuration mode
dial-peer
voice
tag
voip
srtp
fallback (for interworking with devices other than
Cisco Unified Communications Manager)
or
sip
srtp
fallback(for interworking with devices other than
Cisco Unified Communications Manager)
or
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
705
Support for SRTP
Troubleshooting Tips
Example:
Example:
Example:
Example:
Device(conf-voi-serv)# exit
Troubleshooting Tips
The following commands help in troubleshooting SRTP-RTP supplementary services support:
• debug ccsip all
• debug voip ccapi inout
SUMMARY STEPS
1. enable
2. show call active voice brief
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
706
Support for SRTP
Verifying SRTP-RTP Supplementary Services Support
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
0 : 2 12:49:45.256 IST Fri Jun 3 2011.2 +29060 pid:22 Originate 20009001 connected
dur 00:01:19 tx:2831/452960 rx:1653/264480 dscp:0 media:0
IP [Link]:7893 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
707
Support for SRTP
Configuration Examples for SRTP-RTP Interworking
Note Effective Cisco IOS XE Everest Releases 16.5.1b, srtp-auth command is deprecated. Although this command
is still available in Cisco IOS XE Everest software, executing this command does not cause any configuration
changes. Use voice class srtp-crypto command to configure the preferred cipher-suites for the SRTP call
leg (connection). For more information, see SRTP-SRTP Interworking.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
708
Support for SRTP
Example: Configuring Crypto Authentication (Global Level)
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# srtp-auth sha1-80
Device(conf-serv-sip)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
709
Support for SRTP
Example: Configuring Crypto Authentication (Global Level)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
710
CHAPTER 54
SRTP-SRTP Pass-Through
SRTP-SRTP pass-through feature allows pass-through of encrypted media from one call-leg to the other.
• Feature Information for Support of SRTP-SRTP Pass-Through Calls, on page 711
• Information About SRTP-SRTP Pass-Through, on page 712
• Configure Pass-Through of Unsupported Crypto Suites for a Specific Dial Peer, on page 713
• Configure Pass-Through of Unsupported Crypto Suites Globally, on page 715
• Configuration Examples for SRTP-SRTP Pass-Through, on page 716
Support for SRTP-SRTP Basic 12.4.15XZ This feature introduced support for basic
calls SRTP-SRTP pass-through calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
711
Support for SRTP
Information About SRTP-SRTP Pass-Through
Enhanced Support for Cisco IOS 15.6(1)T Introduced support for pass-through of the
SRTP-SRTP Pass-Through following unsupported crypto suites:
Cisco IOS XE 3.17S
• AEAD_AES_128_GCM
• AEAD_AES_256_GCM
• AEAD_AES_128_CCM
• AEAD_AES_256_CCM
Note Effective from Cisco IOS XE Everest Release 16.5.1b, CUBE supports AEAD_AES_128_GCM and
AEAD_AES_256_GCM crypto-suites. For more information, see SRTP-SRTP Interworking.
CUBE supports transparent passthrough of all (supported and unsupported) crypto suites.
Until Cisco IOS Release 15.6(1)T and Cisco IOS XE Release 3.17S, CUBE and DSP supported SRTP
pass-through only for AES_CM_128_HMAC_SHA1_80 crypto suite.
From Cisco IOS Release 15.6(1)T and Cisco IOS XE Release 3.17S onwards, CUBE supports pass-through
of the following unsupported crypto suites:
• AEAD_AES_128_GCM
• AEAD_AES_256_GCM
• AEAD_AES_128_CCM
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
712
Support for SRTP
Configure Pass-Through of Unsupported Crypto Suites for a Specific Dial Peer
• AEAD_AES_256_CCM
CUBE has the ability to pass across crypto attributes (containing any unsupported crypto suites) as well as
media packets (encrypted with unsupported crypto suites).
If SRTP pass-thru feature is enabled, media interworking will not be supported. Ensure that you have symmetric
configuration on both the incoming and outgoing dial-peers to avoid media-related issues.
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
713
Support for SRTP
Configure Pass-Through of Unsupported Crypto Suites for a Specific Dial Peer
Step 4 destination-pattern string Specifies either the prefix or the full E.164 telephone
number to be used for a dial peer string.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# destination-pattern for the telephone number.
5550111
Step 5 session protocol sipv2 Specifies a session protocol for calls between local and
remote routers using the packet network.
Example:
• In the example, the sipv2 keyword is configured so
Device(config-dial-peer)# session protocol sipv2 that the dial peer uses the IETF SIP.
Step 6 sessiontarget ipv4: destination-address Designates a network-specific address to receive calls from
a VoIP or VoIPv6 dial peer.
Example:
• In the example, the IP address of the dial peer to
Device(config-dial-peer)# session target receive calls is configured as [Link].
ipv4:[Link]
Step 7 incoming called-number string Specifies a digit string that can be matched by an incoming
call to associate the call with a dial peer.
Example:
• In the example, 5550111 is specified as the pattern
Device(config-dial-peer)# incoming called-number for the E.164 or private dialing plan telephone
5550111 number.
Step 8 srtp pass-thru Enables transparent passthrough of all crypto suites for a
specific dial peer.
Example:
Step 9 codec codec Specifies the voice coder rate of speech for the dial peer.
Example: • In the example, G.711 mu-law at 64,000 bps, is
specified as the voice coder rate for speech.
Device(config-dial-peer)# codec g711ulaw
Device(config-dial-peer)#end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
714
Support for SRTP
Configure Pass-Through of Unsupported Crypto Suites Globally
Step 13 srtp pass-thru Enables transparent passthrough of all crypto suites for a
specific dial peer.
Example:
Step 14 codec codec Specifies the voice coder rate of speech for the dial peer.
Example: • In the example, G.711 mu-law at 64,000 bps, is
specified as the voice coder rate for speech.
Device(config-dial-peer)# codec g711ulaw
Device(config-dial-peer)# exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
715
Support for SRTP
Configuration Examples for SRTP-SRTP Pass-Through
Device> enable
Step 4 srtp pass-thru Enables transparent passthrough of all crypto suites globally.
Example:
Device(config-dial-peer)#end
enable
configure terminal
dial-peer voice 201 voip
destination-pattern 5550111
session protocol sipv2
session target ipv4:[Link]
incoming called-number 5550111
srtp
codec g711ulaw
end
Example for Pass-Through of Unsupported Crypto Suites for a specific dial peer
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
716
Support for SRTP
Configuration Examples for SRTP-SRTP Pass-Through
enable
configure terminal
dial-peer voice 201 voip
destination-pattern 5550111
session protocol sipv2
session target ipv4:[Link]
incoming called-number 5550111
srtp pass-thru
codec g711ulaw
end
enable
configure terminal
voice service voip
srtp pass-thru
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
717
Support for SRTP
Configuration Examples for SRTP-SRTP Pass-Through
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
718
PA R T XIV
High Availability
• High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series Edge Platforms, on page 721
• High Availability on Cisco ASR 1000 Series Aggregation Services Routers, on page 741
• High Availability on Cisco CSR 1000V or C8000V Cloud Services Routers, on page 771
• High Availability on Cisco Integrated Services Routers (ISR-G2), on page 783
• DSP High Availability Support , on page 823
• Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices, on page 827
• CVP Survivability TCL support with High Availability, on page 841
CHAPTER 55
High Availability on Cisco 4000 Series ISR and
Cisco Catalyst 8000 Series Edge Platforms
The High Availability (HA) feature allows you to benefit from the failover capability of Cisco Unified Border
Element (CUBE) on two routers, one active and one standby. When the active router goes down for any
reason, the standby router takes over seamlessly, preserving and processing your calls.
Figure 63: Cisco CUBE High Availability
• About CUBE High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series Edge Platforms,
on page 721
• How to Configure CUBE High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series
Edge Platforms, on page 726
• Verify Your Configuration, on page 732
• Troubleshoot High Availability Issues, on page 740
Box-to-Box Redundancy
Box-to-box redundancy enables configuring a pair of routers to act as back up for each other. In the router
pair, the active router is determined based on the failover conditions. The router pair continuously exchange
status messages. CUBE session information is checkpointed across the active and standby router. This enables
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
721
High Availability
Redundancy Group (RG) Infrastructure
the standby router to immediately take over all CUBE call processing responsibilities when the active router
becomes unavailable.
Network Topology
This section describes how to configure the following network topology. PSTN access uses an Active and
Standby pair of routers in a SIP trunk deployment between a Cisco Unified Communications Manager (Unified
CM) and a service provider SIP trunk.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
722
High Availability
Network Topology
Figure 65: Network Topology with switch between active and standby routers
Figure 66: Network Topology with crossover cable between active and standby routers
In this topology, both Active and Standby routers have the same configuration and connects through a physical
switch across same interfaces. The topology is mandatory for the CUBE High Availability (HA) to work. For
example, the CUBE-1 and CUBE-2 interface toward WAN must terminate on the same switch. Use Multiple
interfaces or subinterfaces on either LAN or WAN side. Also, one CUBE has a lower IP address across all
three interfaces on the same CUBE paltform.
We recommend that you keep the following in mind when configuring this topology:
• Connect the redundancy group control and data interfaces in the CUBE HA pair to the same physical
switch to avoid any latency in the network.
• The RG control and data interfaces of the CUBE HA pair can be connected through a back-to-back cable
or using a switch as shown in figures Network Topology with switch between active and standby
routers and Network Topology with crossover cable between active and standby routers. However,
it is recommended to use Portchannel for the RG control and data interfaces for redundancy. A single
connection using back-to-back cable or switch presents a single point of failure due to a faulty cable,
port, or switch, resulting in error state where both routers are Active.
• If the RG ID is the same for the two different CUBE HA pairs, keepalive interface for check-pointing
the RG control and data, and traffic must be in a different subnet or VLAN.
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• You can configure a maximum of two redundancy groups. Hence, there can be only two Active and
Standby pairs within the same network.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
723
High Availability
Considerations and Restrictions
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• Source all signaling and media from and to the virtual IP address.
• Always save the running configuration to avoid losing it due to router reload during a failover.
• Virtual Routing and Forwarding
• Define Virtual Router Forwarding (VRF) in the same order on both Active and Standby routers for
an accurate synchronization of data.
• You can configure VRFs only on the traffic interface (SIP and RTP). Do not configure VRF on
redundancy group control and data interface.
• VRF configurations on both the Active and Standby router must be identical. VRF IDs checkpoints
for the calls before and after switchover (includes VRF-based RTP port range).
Considerations
• Checkpoint only active calls (Calls that are connected with 200 OK or ACK transaction completed).
• When you apply and save the configuration for the first time, the platform must be reloaded.
• For H.323 calls, media preservation is supported after the failover, but session signaling is not preserved.
• If you have Cisco Unified Customer Voice Portal (CVP) in your network, we recommend that you
configure TCP session transport for the SIP trunk between CVP and CUBE.
• Upon failover, the previously active CUBE reloads by design.
• CUBE uses the virtual IP address to communicate Smart Licensing information.
• For SIP-SIP TLS calls, configure both the active and standby CUBE as trust points to a common external
CA Server.
• TCP sessions are not preserved during the failover. However, the signaling state at SIP layer is still
preserved. Remote user agents must reestablish the TCP sessions (using port 5060) before sending
subsequent messages.
• Call Admission Control (CAC) state is maintained through switchover. After Stateful Switchover, no
calls are allowed if the CAC limit is reached before the switchover.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
724
High Availability
Restrictions
• Up to six multimedia lines in the SDP are checkpointed for CUBE high availability. From Cisco IOS
XE Release 3.17 onwards, SDP Passthru (up to two m-lines) calls are also checkpointed.
• [Link] preservation is supported from Cisco IOS XE Release 3.17 onwards for Unified Customer
Voice Portal (CVP) deployments.
• SRTP-RTP, SRTP-SRTP, and SRTP Passthru are supported.
Note Redundancy control traffic that is exchanged between CUBE-1 and CUBE-2 is
not secured natively and displays SRTP encryption keys in cleartext. If SRTP is
used, you must secure this traffic by configuring a transport IPsec tunnel between
the two interfaces that are used as the redundancy control link.
• Set the port channel configuration to match upstream switches to prevent the device from entering standby
mode unexpectedly.
• Port channel is supported for both RG control data and traffic interfaces only from Cisco IOS XE 16.3.1
onwards.
Figure 67: Additional Supported Options for CUBE HA
Restrictions
• IPv6 is not supported.
• All SCCP-based media resources (Conference bridge, Transcoding, Hardware MTP, and Software MTP)
are not supported.
• Cisco Unified Survivable Remote Site Telephony (Cisco Unified SRST) or TDM Gateway colocation
on CUBE HA is not supported.
• Routers connected through Metropolitan Area Network (MAN) Ethernet regardless of latency are not
supported.
• Out-of-band DTMF (Notify or KPML) is not supported post switchover. Only rtp-nte to rtp-nte and
voice-inband to voice-inband DTMF works after the switchover.
• Media-flow around and UC Services API (Cisco Unified Communications Manager Network-Based
Recording) are not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
725
High Availability
How to Configure CUBE High Availability on Cisco 4000 Series ISR and Cisco Catalyst 8000 Series Edge Platforms
• You cannot terminate Wide Area Network (WAN) on CUBE directly or Data HA on either side. Both
active and standby routers must be in the same Data Center and connected to the same physical switch.
• The Courtesy Callback (CCB) feature is not supported if a callback was registered with Cisco Unified
Customer Voice Portal (CVP) and then a switchover was done on CUBE.
• You cannot configure a secondary IP address for the interfaces.
• If the redundancy group ID is same for the two different CUBE HA pairs, then the keepalive interface
that is used for checkpointing RG control and data traffic must be in a different subnet or VLAN.
• Call Progress Analysis (CPA) calls (before transferred to the agent), SCCP-based media resources, Noise
Reduction, Acoustic Shock Protection (ASP), and transrating calls are not supported.
• The failover time for a Box-to-box application is higher than the Inbox application.
• One CUBE must have lower IPs across all the three interfaces on the same CUBE platform. For instance,
CUBE-1 must have lower IP addresses in Gig0/0/0 interface compared with CUBE-2 Gig0/0/0 interface.
• CUBE box-to-box high availability requires same priority and threshold to be configured on both CUBE-1
and CUBE-2.
• Connect the active and the standby router through a layer 2 connection for the control path.
• Configure the Network Time Protocol (NTP) or set the clock to be identical on both active and standby
routers, to allow timestamps and call timers to match.
• The latency times must be minimal on all control and data links to prevent timeouts.
• Physically redundant links, such as Gigabit EtherChannel, must be used for the control and data paths.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
726
High Availability
Configure High Availability
DETAILED STEPS
Procedure
Router>enable
Router#configure terminal
Router(config)#redundancy
Router(config-r)#mode none
Router(config-red)#application redundancy
Router(config-red-app)#group 1
where 100 is the priority value and 75 is the threshold value. Both routers should have the same priority and threshold
values.
d) Configure the timers for delay and reload.
Example:
Router(config-red-app-grp)#timers delay 30 reload 60
Delay timer which is the amount of time to delay the RG group’s initialization and role negotiation after the interface
comes up.
Default: 30 seconds. Range is 0-10000 seconds.
Reload timer is the amount of time to delay RG group initialization and role-negotiation after a reload.
Default: 60 seconds. Range is 0-10000 seconds.
e) Configure the interface used to exchange keepalive and hello messages between the router pair.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
727
High Availability
Configure High Availability
where GigabitEthernet0/0/2 is the interface and protocol 1 is the protocol instance that is attached to the interface.
f) Configure the interface that is used for checkpointing of data traffic.
Example:
Router(config-red-app-grp)#data GigabitEthernet0/0/2
Router(config-red-app-grp)#track 1 shutdown
Router(config-red-app-grp)#track 2 shutdown
h) Specify the protocol instance that will be attached to a control interface and enters redundancy application protocol
configuration mode.
Example:
Router(config-red-app-grp)#protocol 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
728
High Availability
Configure High Availability
Example:
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 1
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 2
Router(config)#interface GigabitEthernet0/0/2
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
729
High Availability
Configure High Availability
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 1
Router(config-if)#redundancy group 1 ip [Link] exclusive
Router(config-if)#h323-gateway voip interface
Router(config-if)#h323-gateway voip bind srcaddr [Link]
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 2
Router(config-if)#redundancy group 1 ip [Link] exclusive
Router(config-if)#h323-gateway voip interface
Router(config-if)#h323-gateway voip bind srcaddr [Link]
Example:
Router(config)#platform punt-policer 60 40000
In the preceding example, the punt-rate of the virtual IP address (punt-cause 60) is increased from the default value of
2000–40000.
The following table provides details of the fields of the CLI.
Keyword Description
Note
The default punt rate value of the virtual IP address and the physical IP address varies with the router platform.
Note
The default and maximum setting are platform-specific. Default value is optimal for most deployments. Change the
rate only when suggested by Cisco Support.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
730
High Availability
Configure High Availability
Step 7 Configure the RG group under voice service voip. This enables Box-to-box CUBE HA.
Example:
SIP and H.323 call legs are cleared once the RTCP timer expires.
Step 11 Point the attached devices to the CUBE Virtual IP (VIP) address.
The IP-PBX, Unified SIP Proxy, or service provider must route the calls to CUBE’s Virtual IP address.
HA configuration does not handle SIP and H.323 messages to the CUBE’s physical IP addresses.
For H.323 calls, you must disable the keepalive messages in Unified CM configuration.
a. Go to System menu, and choose Service Parameters. At the bottom of the Service Parameters, enable Advanced.
b. Set the Allow TCP KeepAlives for H323 to False.
c. After this setting is saved, restart the CallManager Services.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
731
High Availability
Configuration Examples
Configuration Examples
Example: Control Interface Protocol Configuration
Router#configure terminal
Router(config)#redundancy
Router(config-red)#mode none
Router(config-red)#application redundancy
Router(config-red-app)#protocol 4
Router(config-red-app-prot)#name rg1
Router(config-red-app-prot)#timers hellotime 3 holdtime 10
Router(config-red-app-prot)#authentication text password
SUMMARY STEPS
1. show redundancy application group [group-id | all]
2. show redundancy application transport {clients | group [group-id]}
3. show redundancy application protocol {protocol-id | group [group-id]}
4. show redundancy application faults group [group-id]
5. show redundancy application if-mgr group [group-id]
6. show redundancy application control-interface group [group-id]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
732
High Availability
Verify Your Configuration
DETAILED STEPS
Procedure
RF Domain: btob-one
RF state: STANDBY HOT
Peer RF state: ACTIVE
RF Domain: btob-two
RF state: ACTIVE
Peer RF state: STANDBY HOT
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
733
High Availability
Verify Your Configuration
The following example shows configuration details for the redundancy application transport group:
Router#show redundancy application transport group
The following example shows the configuration details of redundancy application transport group 1:
Router#show redundancy application transport group 1
The following example shows configuration details of redundancy application transport group 2:
Router#show redundancy application transport group 2
Transport Information for RG (2)
Client = RF
TI conn_id my_ip my_port peer_ip peer_por intf L3 L4
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
734
High Availability
Verify Your Configuration
RG Protocol RG 1
------------------
Role: Standby
Negotiation: Enabled
Priority: 50
Protocol state: Standby-hot
Ctrl Intf(s) state: Up
Active Peer: address [Link], priority 150, intf Gi0/0/0
Standby Peer: Local
Log counters:
role change to active: 0
role change to standby: 1
disable events: rg down state 1, rg shut 0
ctrl intf events: up 2, down 1, admin_down 1
reload events: local request 0, peer request 0
RG Protocol RG 2
------------------
Role: Active
Negotiation: Enabled
Priority: 135
Protocol state: Active
Ctrl Intf(s) state: Up
Active Peer: Local
Standby Peer: address [Link], priority 130, intf Gi0/0/0
Log counters:
role change to active: 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
735
High Availability
Verify Your Configuration
The following example shows configuration details for the redundancy application protocol group 1:
Router#show redundancy application protocol group 1
RG Protocol RG 1
------------------
Role: Standby
Negotiation: Enabled
Priority: 50
Protocol state: Standby-hot
Ctrl Intf(s) state: Up
Active Peer: address [Link], priority 150, intf Gi0/0/0
Standby Peer: Local
Log counters:
role change to active: 0
role change to standby: 1
disable events: rg down state 1, rg shut 0
ctrl intf events: up 2, down 1, admin_down 1
reload events: local request 0, peer request 0
The following example shows configuration details for the redundancy application protocol group 2:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
736
High Availability
Verify Your Configuration
RG Protocol RG 2
------------------
Role: Active
Negotiation: Enabled
Priority: 135
Protocol state: Active
Ctrl Intf(s) state: Up
Active Peer: Local
Standby Peer: address [Link], priority 130, intf Gi0/0/0
Log counters:
role change to active: 1
role change to standby: 1
disable events: rg down state 1, rg shut 0
ctrl intf events: up 2, down 1, admin_down 1
reload events: local request 0, peer request 0
The following example shows configuration details for the redundancy application protocol 1:
Router#show redundancy application protocol 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
737
High Availability
Verify Your Configuration
The following example shows configuration details specific to redundancy application faults group 1:
Router#show redundancy application faults group 1
The following example shows configuration details specific to redundancy application faults group 2:
Router#show redundancy application faults group 2
Faults states Group 2 info:
Runtime priority: [135]
RG Faults RG State: Up.
Total # of switchovers due to faults: 0
Total # of down/up state changes due to faults: 2
RG ID: 1
==========
interface GigabitEthernet0/0/3.152
---------------------------------------
VMAC 0007.b421.4e21
VIP [Link]
Shut shut
Decrement 10
interface GigabitEthernet0/0/2.152
---------------------------------------
VMAC 0007.b421.5209
VIP [Link]
Shut shut
Decrement 10
RG ID: 2
==========
interface GigabitEthernet0/0/3.166
---------------------------------------
VMAC 0007.b422.14d6
VIP [Link]
Shut no shut
Decrement 10
interface GigabitEthernet0/0/2.166
---------------------------------------
VMAC 0007.b422.0d06
VIP [Link]
Shut no shut
Decrement 10
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
738
High Availability
Verify Your Configuration
The following examples shows configuration details for redundancy application interface manager group 1 and group 2:
Router#show redundancy application if-mgr group 1
RG ID: 1
==========
interface GigabitEthernet0/0/3.152
---------------------------------------
VMAC 0007.b421.4e21
VIP [Link]
Shut shut
Decrement 10
interface GigabitEthernet0/0/2.152
---------------------------------------
VMAC 0007.b421.5209
VIP [Link]
Shut shut
Decrement 10
RG ID: 2
==========
interface GigabitEthernet0/0/3.166
---------------------------------------
VMAC 0007.b422.14d6
VIP [Link]
Shut no shut
Decrement 10
interface GigabitEthernet0/0/2.166
---------------------------------------
VMAC 0007.b422.0d06
VIP [Link]
Shut no shut
Decrement 10
The following example shows configuration details of the redundancy application control-interface group 1:
Router#show redundancy application control-interface group 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
739
High Availability
Troubleshoot High Availability Issues
The following example shows configuration details of the redundancy application control-interface group 2:
Router#show redundancy application control-interface group 2
The following examples show configuration details specific to redundancy application data-interface group 1 and group
2:
Router#show redundancy application data-interface group 1
The data interface for rg[1] is GigabitEthernet0/0/1
Note Do not turn on a large number of debugs on a system carrying high volume of active call traffic.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
740
CHAPTER 56
High Availability on Cisco ASR 1000 Series
Aggregation Services Routers
The High Availability (HA) feature allows you to benefit from the failover capability of Cisco Unified Border
Element (CUBE) on two routers, one active and one standby. When the active router goes down for any
reason, the standby router takes over seamlessly, preserving and processing your calls.
Figure 68: Cisco CUBE High Availability
• About CUBE High Availability on Cisco ASR 1000 Series Routers, on page 741
• How to Configure CUBE High Availability on Cisco ASR 1000 Series Router, on page 749
• Verify Your Configuration, on page 761
• Troubleshoot High Availability Issues, on page 768
The following table describes the Cisco ASR 1000 Series Router models supported for each redundancy type:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
741
High Availability
Inbox Redundancy
Table 79: Redundancy Type, Supported Models, and Supported Cisco IOS XE Release
Note Cisco ASR 1006 supports both Box-to-box and Inbox redundancy. You cannot switch between these two
modes dynamically.
The following table provides details on the type of information that is preserved in different call types:
Inbox Redundancy
Inbox redundancy with Stateful Switchover (SSO) mechanism provides redundancy within the same device.
Cisco ASR1006 supports the stateful failover from an active Enhanced Services Processor (ESP) to a standby
and from an active Route Processor to a standby on the same box.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
742
High Availability
Box-to-Box Redundancy
Box-to-Box Redundancy
Box-to-box redundancy enables configuring a pair of routers to act as back up for each other. In the router
pair, the active router is determined based on the failover conditions. The router pair continuously exchange
status messages. CUBE session information is checkpointed across the active and standby router. This enables
the standby router to immediately take over all CUBE call processing responsibilities when the active router
becomes unavailable.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
743
High Availability
PROTECTED Mode
PROTECTED Mode
The default failover redundancy behavior in a box-to-box HA pair is to reload the affected router to avoid
out-of-sync conditions or Split brain. From release IOS XE 3.11 onwards, you can configure a Cisco ASR
1000 Series Router to transition into PROTECTED mode, which has the following features:
• Bulk sync request, Call checkpointing, and incoming call processing are disabled.
• You must manually reload a router in PROTECTED mode to come out of this state.
To enable the PROTECTED mode, use the no redundancy-reload command under voice service voip.
Network Topology
This section describes how to configure the following network topology. PSTN access uses an Active and
Standby pair of routers in a SIP trunk deployment between a Cisco Unified Communications Manager (Unified
CM) and a service provider SIP trunk.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
744
High Availability
Network Topology
Figure 71: Network Topology with switch between active and standby routers
Figure 72: Network Topology with crossover cable between active and standby routers
In this topology, both Active and Standby routers have the same configuration and connects through a physical
switch across same interfaces. The topology is mandatory for the CUBE High Availability (HA) to work. For
example, the CUBE-1 and CUBE-2 interface toward WAN must terminate on the same switch. Use Multiple
interfaces or subinterfaces on either LAN or WAN side. Also, one CUBE has a lower IP address across all
three interfaces on the same CUBE paltform.
We recommend that you keep the following in mind when configuring this topology:
• Connect the redundancy group control and data interfaces in the CUBE HA pair to the same physical
switch to avoid any latency in the network.
• The RG control and data interfaces of the CUBE HA pair can be connected through a back-to-back cable
or using a switch as shown in figures Network Topology with switch between active and standby
routers and Network Topology with crossover cable between active and standby routers. However,
it is recommended to use Portchannel for the RG control and data interfaces for redundancy. A single
connection using back-to-back cable or switch presents a single point of failure due to a faulty cable,
port, or switch, resulting in error state where both routers are Active.
• If the RG ID is the same for the two different CUBE HA pairs, keepalive interface for check-pointing
the RG control and data, and traffic must be in a different subnet or VLAN.
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• You can configure a maximum of two redundancy groups. Hence, there can be only two Active and
Standby pairs within the same network.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
745
High Availability
Considerations and Restrictions
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• Source all signaling and media from and to the virtual IP address.
• Always save the running configuration to avoid losing it due to router reload during a failover.
• Virtual Routing and Forwarding
• Define Virtual Router Forwarding (VRF) in the same order on both Active and Standby routers for
an accurate synchronization of data.
• You can configure VRFs only on the traffic interface (SIP and RTP). Do not configure VRF on
redundancy group control and data interface.
• VRF configurations on both the Active and Standby router must be identical. VRF IDs checkpoints
for the calls before and after switchover (includes VRF-based RTP port range).
Considerations
• Checkpoint only active calls (Calls that are connected with 200 OK or ACK transaction completed).
• When you apply and save the configuration for the first time, the platform must be reloaded.
• For H.323 calls, media preservation is supported after the failover, but session signaling is not preserved.
• If you have Cisco Unified Customer Voice Portal (CVP) in your network, we recommend that you
configure TCP session transport for the SIP trunk between CVP and CUBE.
• Upon failover, the previously active CUBE reloads by design.
• CUBE uses the virtual IP address to communicate Smart Licensing information.
• For SIP-SIP TLS calls, configure both the active and standby CUBE as trust points to a common external
CA Server.
• TCP sessions are not preserved during the failover. However, the signaling state at SIP layer is still
preserved. Remote user agents must reestablish the TCP sessions (using port 5060) before sending
subsequent messages.
• Call Admission Control (CAC) state is maintained through switchover. After Stateful Switchover, no
calls are allowed if the CAC limit is reached before the switchover.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
746
High Availability
Considerations
• Up to six multimedia lines in the SDP are checkpointed for CUBE high availability. From Cisco IOS
XE Release 3.17 onwards, SDP Passthru (up to two m-lines) calls are also checkpointed.
• [Link] preservation is supported from Cisco IOS XE Release 3.17 onwards for Unified Customer
Voice Portal (CVP) deployments.
• SRTP-RTP, SRTP-SRTP, and SRTP Passthru are supported.
Note Redundancy control traffic that is exchanged between CUBE-1 and CUBE-2 is
not secured natively and displays SRTP encryption keys in cleartext. If SRTP is
used, you must secure this traffic by configuring a transport IPsec tunnel between
the two interfaces that are used as the redundancy control link.
• Set the port channel configuration to match upstream switches to prevent the device from entering standby
mode unexpectedly.
• Port channel is supported for both RG control data and traffic interfaces only from Cisco IOS XE 16.3.1
onwards.
Figure 73: Additional Supported Options for CUBE HA
• LTI-based transcoder call flow preservation is supported from Cisco IOS XE Release 3.15 onwards and
requires the same DSP module capacity on both active and standby in the same slot or subslot.
• While deploying High Availability pair with Application Centric Infrastructure (ACI), perform one of
the following:
• Disable IP data plane learning on the ACI VRF.
• Refer to IP Data-plane Learning for details.
• Use an intermediate Layer 3 switch between the High Availability pair and the ACI deployment.
This Layer 3 switch prevents the ACI from directly learning the CUBE IP address and its associated
MAC addresses.
• From release Cisco IOS-XE 3.11 onwards, upon failover, you can move the previously active CUBE to
a PROTECTED state to avoid the reload.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
747
High Availability
Restrictions
• While deploying High Availability pair with Application Centric Infrastructure (ACI), perform one of
the following:
• Disable IP data plane learning on the VRF.
Refer to IP Data-plane Learning for details.
• Use an intermediate Layer 3 switch between the High Availability pair and the ACI deployment.
This Layer 3 switch prevents the ACI from directly learning the CUBE IP address and its associated
MAC addresses.
Restrictions
• IPv6 is not supported.
• All SCCP-based media resources (Conference bridge, Transcoding, Hardware MTP, and Software MTP)
are not supported.
• Cisco Unified Survivable Remote Site Telephony (Cisco Unified SRST) or TDM Gateway colocation
on CUBE HA is not supported.
• Routers connected through Metropolitan Area Network (MAN) Ethernet regardless of latency are not
supported.
• Out-of-band DTMF (Notify or KPML) is not supported post switchover. Only rtp-nte to rtp-nte and
voice-inband to voice-inband DTMF works after the switchover.
• Media-flow around and UC Services API (Cisco Unified Communications Manager Network-Based
Recording) are not supported.
• You cannot terminate Wide Area Network (WAN) on CUBE directly or Data HA on either side. Both
active and standby routers must be in the same Data Center and connected to the same physical switch.
• The Courtesy Callback (CCB) feature is not supported if a callback was registered with Cisco Unified
Customer Voice Portal (CVP) and then a switchover was done on CUBE.
• You cannot configure a secondary IP address for the interfaces.
• If the redundancy group ID is same for the two different CUBE HA pairs, then the keepalive interface
that is used for checkpointing RG control and data traffic must be in a different subnet or VLAN.
• One CUBE must have lower IPs across all the three interfaces on the same CUBE platform. For instance,
CUBE-1 must have lower IP addresses in Gig0/0/0 interface compared with CUBE-2 Gig0/0/0 interface.
• CUBE box-to-box high availability requires same priority and threshold to be configured on both CUBE-1
and CUBE-2.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
748
High Availability
How to Configure CUBE High Availability on Cisco ASR 1000 Series Router
Procedure
Router>enable
Router#configure terminal
Router(config)#redundancy
Router(config-r)#mode sso
Router(config-r)#end
Router(config)#copy run start /* This is to save the configuration */
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
749
High Availability
Configure Box-to-Box High Availability
DETAILED STEPS
Procedure
Router>enable
Router#configure terminal
Router(config)#redundancy
Router(config-r)#mode none
Example:
Disable the inbox redundancy if you are using ASR1006 router:
Router>enable
Router#configure terminal
Router(config)#redundancy
Router(config-r)#mode rpr
Router>enable
Router#copy running-configuration bootflash:<filename>
Router>enable
Router#configure terminal
Router(config)#config-register 0x0
Router(config)#write erase
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
750
High Availability
Configure Box-to-Box High Availability
Example:
Router>enable
Router#reload
e) At ROMMON prompt, reset the IOSXE_Dual_IOS variable to disable the software redundancy.
Example:
rommon1>IOSXE_DUAL_IOS=0
rommon2>sync
f) Boot the image from the bootflash or harddisk, or from the network.
Example:
rommon1>boot bootflash:[Link]
g) When the router is up, reapply the old configuration by copying the configuration file to the running-configuration.
Example:
Router>enable
Router#copy bootflash:sampleconfig running-configuration
Router>enable
Router#Config-register 0x2102
Router>enable
Router#configure terminal
Router(config)#redundancy
Router(config-r)#mode none
Router(config-red)#application redundancy
Router(config-red-app)#group 1
where 100 is the priority value and 75 is the threshold value. Both routers should have the same priority and threshold
values.
d) Configure the timers for delay and reload.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
751
High Availability
Configure Box-to-Box High Availability
Example:
Router(config-red-app-grp)#timers delay 30 reload 60
Delay timer which is the amount of time to delay the RG group’s initialization and role negotiation after the interface
comes up.
Default: 30 seconds. Range is 0-10000 seconds.
Reload timer is the amount of time to delay RG group initialization and role-negotiation after a reload.
Default: 60 seconds. Range is 0-10000 seconds.
e) Configure the interface used to exchange keepalive and hello messages between the router pair.
Example:
Router(config-red-app-grp)#control GigabitEthernet0/0/2 protocol 1
where GigabitEthernet0/0/2 is the interface and protocol 1 is the protocol instance that is attached to the interface.
f) Configure the interface that is used for checkpointing of data traffic.
Example:
Router(config-red-app-grp)#data GigabitEthernet0/0/2
Router(config-red-app-grp)#track 1 shutdown
Router(config-red-app-grp)#track 2 shutdown
Router(config-red-app-grp)#track 3 shutdown
h) Specify the protocol instance that will be attached to a control interface and enters redundancy application protocol
configuration mode.
Example:
Router(config-red-app-grp)#protocol 1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
752
High Availability
Configure Box-to-Box High Availability
The track command is used in RG to track the voice traffic interface state so that the active router initiates switchover
after the traffic interface is down.
Configure the following commands at the global level to track the status of the interface.
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 1
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 2
Router(config)#interface GigabitEthernet0/0/2
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
753
High Availability
Configure Box-to-Box High Availability
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 1
Router(config-if)#redundancy group 1 ip [Link] exclusive
Router(config-if)#h323-gateway voip interface
Router(config-if)#h323-gateway voip bind srcaddr [Link]
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#media-type rj45
Router(config-if)#negotiation auto
Router(config-if)#redundancy rii 2
Router(config-if)#redundancy group 1 ip [Link] exclusive
Router(config-if)#h323-gateway voip interface
Router(config-if)#h323-gateway voip bind srcaddr [Link]
Example:
Router(config)#platform punt-policer 60 40000
In the preceding example, the punt-rate of the virtual IP address (punt-cause 60) is increased from the default value of
2000–40000.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
754
High Availability
Configure Box-to-Box High Availability
Keyword Description
Note
The default punt rate value of the virtual IP address and the physical IP address varies with the router platform.
Note
The default and maximum setting are platform-specific. Default value is optimal for most deployments. Change the
rate only when suggested by Cisco Support.
Step 8 Configure the RG group under voice service voip. This enables Box-to-box CUBE HA.
Example:
SIP and H.323 call legs are cleared once the RTCP timer expires.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
755
High Availability
Configuration Examples
Once all the preceding configurations are completed, you must save the configurations, and reload the router.
Example:
Router>enable
Router#relaod
Step 12 Point the attached devices to the CUBE Virtual IP (VIP) address.
The IP-PBX, Unified SIP Proxy, or service provider must route the calls to CUBE’s Virtual IP address.
HA configuration does not handle SIP and H.323 messages to the CUBE’s physical IP addresses.
For H.323 calls, you must disable the keepalive messages in Unified CM configuration.
a. Go to System menu, and choose Service Parameters. At the bottom of the Service Parameters, enable Advanced.
b. Set the Allow TCP KeepAlives for H323 to False.
c. After this setting is saved, restart the CallManager Services.
Configuration Examples
The following sample configuration assumes interfaces Gig0/0/0 is used for incoming calls, and
Gig0/0/1 is used for outgoing calls, and Gig0/0/2 is used for redundancy.
Active Router Configurations
Router1# show run
Building configuration...
Current configuration : 3082 bytes
!
! Last configuration change at 21:33:13 UTC Sun Sep 19 2010
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname b2bred2
!
boot-start-marker
boot system flash bootflash:asr1000rp2-adventerprisek9.BLD_MCP_DEV_LATEST_201008
24_091509.bin
boot-end-marker
!
!
vrf definition Mgmt-intf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
756
High Availability
Configuration Examples
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
757
High Availability
Configuration Examples
interface GigabitEthernet0/0/2
ip address [Link] [Link]
media-type rj45
negotiation auto
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
negotiation auto
!
!
no ip http server
no ip http secure-server
ip rtcp report interval 9000
ip route [Link] [Link] [Link]
!
logging esm config
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
!
!
!
control-plane
!
!
!
dial-peer voice 10 voip
destination-pattern 140854.....
session protocol sipv2
session target ipv4:y.y.y.y
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
codec g711ulaw
no vad
!
dial-peer voice 20 voip
session protocol sipv2
session target ipv4:[Link]
incoming called-number 140854.....
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
codec g711ulaw
no vad
!
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 1200
!
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
758
High Availability
Configuration Examples
line con 0
exec-timeout 0 0
stopbits 1
line vty 0 4
no login
!
exception data-corruption buffer truncate
end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
759
High Availability
Configuration Examples
!
!
voice iec syslog
!
!
!
track 1 interface GigabitEthernet0/0/0 line-protocol
track 2 interface GigabitEthernet0/0/1 line-protocol
!
!
!
redundancy
mode none
application redundancy
group 1
name voice-b2bha
priority 100 failover threshold 75
timers delay 30 reload 60
control GigabitEthernet0/0/2 protocol 1
data GigabitEthernet0/0/2
track 1 shutdown
track 2 shutdown
protocol 1
timers hellotime 3 holdtime 10
!
!
ip ftp username bhks
ip ftp password bhks
!
!
interface GigabitEthernet0/0/0
ip address [Link] [Link]
media-type rj45
negotiation auto
redundancy rii 1
redundancy group 1 ip [Link] exclusive
h323-gateway voip interface
h323-gateway voip bind srcaddr [Link]
!
interface GigabitEthernet0/0/1
ip address [Link] [Link]
media-type rj45
negotiation auto
redundancy rii 2
redundancy group 1 ip [Link] exclusive
h323-gateway voip interface
h323-gateway voip bind srcaddr [Link]
interface GigabitEthernet0/0/2
ip address [Link] [Link]
media-type rj45
negotiation auto
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
shutdown
negotiation auto
!
!
no ip http server
no ip http secure-server
ip rtcp report interval 9000
ip route [Link] [Link] [Link]
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
760
High Availability
Verify Your Configuration
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
761
High Availability
Verify Redundancy State on Active and Standby Routers
RF Domain: btob-one
RF state: ACTIVE
Peer RF state: STANDBY HOT
RG Protocol RG 1
------------------
Role: Active
Negotiation: Enabled
Priority: 100
Protocol state: Active
Ctrl Intf(s) state: Up
Active Peer: Local
Standby Peer: address [Link], priority 100, intf Gi0/0/2
Log counters:
role change to active: 1
role change to standby: 0
disable events: rg down state 1, rg shut 0
ctrl intf events: up 1, down 2, admin_down 1
reload events: local request 0, peer request 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
762
High Availability
Verify Call State After Switchover
Group ID:1
Group Name:voice-b2bha
RF Domain: btob-one
RF state: STANDBY HOT
Peer RF state: ACTIVE
RG Protocol RG 1
------------------
Role: Standby
Negotiation: Enabled
Priority: 100
Protocol state: Standby-hot
Ctrl Intf(s) state: Up
Active Peer: address [Link], priority 100, intf Gi0/0/2
Standby Peer: Local
Log counters:
role change to active: 0
role change to standby: 1
disable events: rg down state 1, rg shut 0
ctrl intf events: up 1, down 2, admin_down 1
reload events: local request 0, peer request 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
763
High Availability
Verify Call State After Switchover
• Native and non-native (preserved) calls when both call types are present
• Presence of leaked RTP, HA, SPI sessions
Active Router
Router#show voice high-availability summary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
764
High Availability
Verify Call State After Switchover
Standby Router
Router#show voice high-availability summary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
765
High Availability
Verify Call State After Switchover
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
766
High Availability
Verify SIP IP Address Bindings
Queue Failed for MEDIA EVENT - move entry 2 sync pending db: 0
Queue Failed for CREATE - move entry to sync pending db: 0
Queue Failed for MODIFY - move entry to sync pending db: 0
Queue Failed for DELETE - move entry to sync pending db: 0
No Entry Found when processing Tick Queue Event: 0
Entry Deleted - never checkpointed :0
Added Element to Multi Delete List: 0
Standby received Delete as part of Multi-Delete Message: 0
Active Sent Multi Delete Message to Standby: 0
Standby Callback Invoked by CF: 0
Standby Callback Invoked by CF - Negotiation Message: 0
Standby Callback Invoked by CF - No Msg Header: 0
Standby Callback Invoked by CF - ISSU Xform Fail: 0
Standby Callback Invoked by CF - malloc VOIP Buffer fail: 0
Standby Callback Invoked by CF - enqueue to voip ha fail: 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Checkpoint overflow: 0
HA DB elememnt pool overrun count: 0
HA DB aux element pool overrun count: 0
HA DB insertion failure count: 0
HA DB deletion failure count: 0
Tick event pool overrun count: 0
Tick event queue overrun count: 0
Checkpoint send failure count - ISSU Transform Failure: 0
Checkpoint send failure count - CF failed: 0
Checkpoint get buffer failure count: 0
Checkpoint Received IPC Flow ON from CF: 0
Checkpoint Received IPC Flow OFF from CF: 0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
767
High Availability
Force a Manual Failover for Testing
Note A switchover involves the active router reloading, while the standby router takes over and becomes the new
active router, processing incoming calls and maintaining the media streams and signaling information for
calls until they are complete. The new active router continues to act as such until another switchover occurs.
There is no pre-emption mechanism on Box-to-box redundancy.
Procedure
• Initiate the manual switchover by using the CLI redundancy application reload group RG ID self on
the active router.
• Reload of the active router
• Power cycle the active router
• Pull out any RG configured interface of the active router
• Shutdown any RG configured interface of the active router
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
768
High Availability
Troubleshoot High Availability Issues
Note On every switchover after reload, you must enable the debugs on the new standby router.
Note Do not turn on many debugs on a system carrying high volume of active call traffic.
Troubleshooting Tips
• Check for proper HA states on both the active and standby router in the output of the show commands,
like show redundancy application group.
• Perform incoming and outgoing ping tests with the VIPs employed.
• In the presence of active calls, look for the use of any physical interface’s IP address in the output of
show voip rtp connections on both the active and standby routers. VIP must be used in both the show
outputs and the debugs.
• In the output of show voip rtp connection | inc Found and show call active voice compact | inc Total
on both the active and standby routers, check for any large number of mismatched calls.
• To debug problems, enable the corresponding debug options:
• VoIP RTP
• VoIP FPI
• VoIP HA
• SPIs (SIP, H.323, SCCPAPP)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
769
High Availability
Troubleshoot High Availability Issues
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
770
CHAPTER 57
High Availability on Cisco CSR 1000V or C8000V
Cloud Services Routers
Note Cisco Cloud Services Router 1000V Series (CSR 1000V) is no longer supported from Cisco IOS XE Bengaluru
17.4.1a onwards. If you are using CSR 1000V, you have to upgrade to Cisco Catalyst 8000V Edge Software
(Catalyst 8000V). For End-of-Life information on CSR 1000V, see End-of-Sale and End-of-Life Announcement
for the Select Cisco CSR 1000v Licenses.
The High Availability (HA) feature allows you to benefit from the failover capability of Cisco Unified Border
Element (CUBE) on two routers, one active and one standby. When the active router goes down for any
reason, the standby router takes over seamlessly, preserving and processing your calls.
Figure 74: Cisco CUBE High Availability
• About vCUBE High Availability on CSR 1000V or C8000V Cloud Services Routers, on page 771
• How to Configure vCUBE High Availability on Cisco CSR 1000v or C8000V, on page 778
• Troubleshoot High Availability Issues, on page 781
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
771
High Availability
Box-to-Box Redundancy
Box-to-Box Redundancy
Box-to-box redundancy enables configuring a pair of routers to act as back up for each other. In the router
pair, the active router is determined based on the failover conditions. The router pair continuously exchange
status messages. CUBE session information is checkpointed across the active and standby router. This enables
the standby router to immediately take over all CUBE call processing responsibilities when the active router
becomes unavailable.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
772
High Availability
Network Topology
Network Topology
Figure 76: Virtual CUBE High Availability
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
773
High Availability
Network Topology
We recommend that you keep the following in mind when enabling this topology:
• Connect the Cisco CSR 1000v or C8000V running on the server to the virtual switch within the virtualized
host. Then connect the virtual switches to external switches using the physical host interfaces. The virtual
switch routes the traffic internally between the virtual machines and also connects the external networks.
• Configure high-availability connectivity using redundancy on virtual switch to avoid checkpointing
failures.
In a scenario where the physical switch is down and there is no redundancy configured on virtual switch,
the active router continues to process calls as it tracks only the status of virtual switch (which is up). At
the same time, the standby router assumes the role of active router as it does not receive keepalive
messages from the active router through the physical switch. Hence checkpointing fails. To avoid such
scenarios, we recommend you to configure high availability connectivity using redundancy on virtual
switch.
• Do not track the switches that are used to connect non-networking end devices or LAN, to determine
uplink failures.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
774
High Availability
Considerations and Restrictions
• Connect the redundancy group control and data interfaces in the CUBE HA pair to the same physical
switch to avoid any latency in the network.
• The RG control and data interfaces of the CUBE HA pair can be connected through a back-to-back cable
or using a switch. However, it is recommended to use Portchannel for the RG control and data interfaces
for redundancy. A single connection using back-to-back cable or switch presents a single point of failure
due to a faulty cable, port, or switch, resulting in error state where both routers are Active.
• If the RG ID is the same for the two different CUBE HA pairs, keepalive interface for check-pointing
the RG control and data, and traffic must be in a different subnet or VLAN.
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• You can configure a maximum of two redundancy groups. Hence, there can be only two Active and
Standby pairs within the same network.
Note This recommendation is applicable only if you connect using a switch, not by
back-to-back cables.
• Source all signaling and media from and to the virtual IP address.
• Always save the running configuration to avoid losing it due to router reload during a failover.
• Virtual Routing and Forwarding
• Define Virtual Router Forwarding (VRF) in the same order on both Active and Standby routers for
an accurate synchronization of data.
• You can configure VRFs only on the traffic interface (SIP and RTP). Do not configure VRF on
redundancy group control and data interface.
• VRF configurations on both the Active and Standby router must be identical. VRF IDs checkpoints
for the calls before and after switchover (includes VRF-based RTP port range).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
775
High Availability
Considerations
Considerations
Before you configure High Availability feature on Cisco UBE, understand its behavior, and also know the
Cisco IOS XE Software version that is required for supporting the call processing features to work seamlessly
after switchover.
• Checkpoint only active calls (Calls that are connected with 200 OK or ACK transaction completed).
• When you apply and save the configuration for the first time, the platform must be reloaded.
• For H.323 calls, media preservation is supported after the failover, but session signaling is not preserved.
• If you have Cisco Unified Customer Voice Portal (CVP) in your network, we recommend that you
configure TCP session transport for the SIP trunk between CVP and CUBE.
• Upon failover, the previously active CUBE reloads by design.
• CUBE uses the virtual IP address to communicate Smart Licensing information.
• For SIP-SIP TLS calls, configure both the active and standby CUBE as trust points to a common external
CA Server.
• TCP sessions are not preserved during the failover. However, the signaling state at SIP layer is still
preserved. Remote user agents must reestablish the TCP sessions (using port 5060) before sending
subsequent messages.
• Call Admission Control (CAC) state is maintained through switchover. After Stateful Switchover, no
calls are allowed if the CAC limit is reached before the switchover.
• Up to six multimedia lines in the SDP are checkpointed for CUBE high availability. From Cisco IOS
XE Release 3.17 onwards, SDP Passthru (up to two m-lines) calls are also checkpointed.
• [Link] preservation is supported from Cisco IOS XE Release 3.17 onwards for Unified Customer
Voice Portal (CVP) deployments.
• SRTP-RTP, SRTP-SRTP, and SRTP Passthru are supported.
Note Redundancy control traffic that is exchanged between CUBE-1 and CUBE-2 is
not secured natively and displays SRTP encryption keys in cleartext. If SRTP is
used, you must secure this traffic by configuring a transport IPsec tunnel between
the two interfaces that are used as the redundancy control link.
• Set the port channel configuration to match upstream switches to prevent the device from entering standby
mode unexpectedly.
• Port channel is supported for both RG control data and traffic interfaces only from Cisco IOS XE 16.3.1
onwards.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
776
High Availability
Restrictions
• While deploying High Availability pair with Application Centric Infrastructure (ACI), perform one of
the following:
• Disable IP data plane learning on the VRF.
Refer to IP Data-plane Learning for details.
• Use an intermediate Layer 3 switch between the High Availability pair and the ACI deployment.
This Layer 3 switch prevents the ACI from directly learning the CUBE IP address and its associated
MAC addresses.
Restrictions
• Geographic stateful switchover is not supported.
• Calls in the transient state at the time of switchover are not preserved.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
777
High Availability
How to Configure vCUBE High Availability on Cisco CSR 1000v or C8000V
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
778
High Availability
Configure High Availability
Keyword Description
60 punt-cause—Punt cause.
Range is 1–107. Punt cause
of the virtual interface is 60.
Note
The default punt rate value of the virtual IP address and
the physical IP address varies with the router platform.
Note
The default and maximum setting are platform-specific.
Default value is optimal for most deployments. Change
the rate only when suggested by Cisco Support.
Step 5 Configure the Redundancy Group under voice service voip. For enabling protected mode:
This Reduncy Group creation enables Box-to-Box CUBE
high availability. Router#voice service voip
Router(conf-voi-serv)#no redundancy-reload
Example:
Step 6 Configure the Media Inactivity timer. The Media Inactivity Timer enables the Active and Standby
router pair to monitor and disconnect calls if no Real-Time
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
779
High Availability
Configuration Example
Step 7 Reload the router. Once all the preceding configurations are completed, you
must save the configurations, and reload the router.
Example:
Router>enable
Router#relaod
Step 8 Configure the peer router. Follow the preceding steps to configure the standby router.
Make sure that you use the correct IP addresses.
Step 9 Point the attached devices to the CUBE Virtual IP (VIP) The IP-PBX, Unified SIP Proxy, or service provider must
address. route the calls to CUBE’s virtual IP address.
High availability configuration does not handle SIP
messages to the CUBE’s physical IP addresses.
Configuration Example
Active Router:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
780
High Availability
Troubleshoot High Availability Issues
name cube_b2b_ha_1
authentication text sol_ha1
!
track 1 interface GigabitEthernet1 line-protocol
!
interface GigabitEthernet1
ip address [Link] [Link]
negotiation auto
no mop enabled
no mop sysid
redundancy rii 102
redundancy group 1 ip [Link] exclusive
!
interface GigabitEthernet2
ip address [Link] [Link]
negotiation auto
no mop enabled
no mop sysid
Standby Router:
voice service voip
no ip address trusted authenticate
allow-connections sip to sip
redundancy-group 2
sip
bind control source-interface GigabitEthernet1
bind media source-interface GigabitEthernet1
!
redundancy
application redundancy
group 2
name cube_b2b_ha_1
priority 100 failover threshold 75
timers delay 30 reload 60
control GigabitEthernet2 protocol 1
data GigabitEthernet2
track 1 shutdown
protocol 1
name cube_b2b_ha_1
authentication text sol_ha1
!
track 1 interface GigabitEthernet1 line-protocol
!
interface GigabitEthernet1
ip address [Link] [Link]
negotiation auto
no mop enabled
no mop sysid
redundancy rii 102
redundancy group 2 ip [Link] exclusive
!
interface GigabitEthernet2
ip address [Link] [Link]
negotiation auto
no mop enabled
no mop sysid
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
781
High Availability
Troubleshoot High Availability Issues
Note Do not turn on a large number of debugs on a system carrying high volume of active call traffic.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
782
CHAPTER 58
High Availability on Cisco Integrated Services
Routers (ISR-G2)
The High Availability (HA) feature allows you to benefit from the failover capability of Cisco Unified Border
Element (CUBE) on two routers, one active and one standby. When the active router goes down for any
reason, the standby router takes over seamlessly, preserving and processing your calls.
Figure 79: Cisco CUBE High Availability
Box-to-Box Redundancy
Box-to-box redundancy enables configuring a pair of routers to act as back up for each other. In the router
pair, active router is determined based on the failover conditions. The router pair continuously exchange status
messages. Cisco UBE session information is checkpointed across the active and standby router. This enables
the standby router to immediately take over all Cisco UBE call processing responsibilities when the active
router becomes unavailable.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
783
High Availability
Hot Standby Router Protocol (HSRP)
Note For redundant solutions that use HSRP, CDRs are only generated by the active router.
HSRP Features
• Preemption—The HSRP preemption feature enables the router with the highest priority to immediately
become the active router. Priority is determined as follows.
1. Priority value that you configure.
2. IP address.
Network Topology
This section describes how to configure the following dual-attached and single-attached network topology.
The dual-attached network topology is the most common configuration, in which an active and standby pair
of routers is used in a SIP trunk deployment between a Cisco Unified Communications Manager (Unified
CM) and a service provider (SP) SIP trunk for PSTN access. It is also possible to configure CUBE HSRP
Box-to-box redundancy with a single-attached network topology.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
784
High Availability
Configure CUBE High Availability Using HSRP
In these topologies, both active and standby routers have the same configuration and both platforms are
connected through a physical switch across similar interfaces. This is required for Cisco UBE HA to work.
For example, the CUBE-1 and CUBE-2 interface towards WAN must terminate on the same switch. Multiple
interfaces or sub-interfaces can be used on either LAN or WAN side. Also, one Cisco UBE has a lower IP
address across all three interfaces on the same Cisco UBE paltform. This criteria decides the HSRP active
state.
We recommend that you keep the following in mind when configuring these topologies:
• Configure all interfaces of an HSRP group with the same priority.
• The active and standby router pair, and interface combination on a particular LAN must have a unique
HSRP group number.
Components used:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
785
High Availability
Configure CUBE High Availability Using HSRP
• Minimum software release of CUBE 8.5 (Cisco IOS Release 15.1.2T), implemented on a Cisco 2900 or
3900 Series Integrated Service Router Generation 2 (ISR G2).
• Two identical ISR G2s equipped with the UC Technology Package license (SL-29-UC-K9 or
SL-39-UC-K9) installed, 1G DRAM memory, and Cisco IOS Software Release 15.1.2T or later.
• Both routers must be physically located on the same Ethernet LAN.
• The CUBE configuration of both routers is identical and must be manually copied from one router to the
other.
• SIP-SIP call flows.
SUMMARY STEPS
1. Enable CUBE and CUBE Redundancy.
2. Enable HSRP.
3. Configure HSRP Communication Transport.
4. Configure HSRP on Interfaces.
5. Configure HSRP Timers.
6. Configure Media Inactivity Timer.
7. Configure SIP Binding to HSRP Address
8. Reload Routers.
9. Point Attached Softswitches to CUBE HSRP Virtual Address
DETAILED STEPS
Procedure
Example:
voice service voip
redundancy
Step 2 Enable HSRP. Enables router redundancy schemes on both routers, where:
Example: • Scheme — redundancy state tracking scheme.
redundancy inter-device
scheme standby SB
• Standby — enable standby (HSRP) state tracking
scheme.
• SB — the HSRP standby group name.
Step 3 Configure HSRP Communication Transport. Enables the HSRP Inter-Device Communication Transport.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
786
High Availability
Configure CUBE High Availability Using HSRP
XFR-2(config)#ipc zone default • local-port port_num — Defines the local SCTP port
XFR-2(config-ipczone)#association 1 number to use in order to communicate with the
XFR-2(config-ipczone-assoc)#no shutdown redundant peer.
XFR-2(config-ipczone-assoc)# protocol sctp
Pod4-3925(config-ipc-protocol-sctp)#local-port 5000 • local-ip ip_addr — Defines the local router's IP address
XFR-2(config-ipc-local-sctp)#local-ip [Link]
XFR-2(config-ipc-local-sctp)#exit to use in order to communicate with the redundant
XFR-2(config-ipc-protocol-sctp)#remote-port 5000 peer. The local IP address must match the remote IP
XFR-2(config-ipc-remote-sctp)#remote-ip [Link] address on the redundant router.
XFR-2(config-ipc-remote-sctp)#end
• remote-port port_num — Defines the remote SCTP
port number to use in order to communicate with the
redundant peer.
• remote-ip ip_addr — Defines the remote IP address
of the peer router used to communicate with the local
device. All remote IP addresses must point to the same
device.
Note
The local-port and the remote-port must be set to 5000
on the Active and Standby routers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
787
High Availability
Configure CUBE High Availability Using HSRP
Step 5 Configure HSRP Timers. There are two important HSRP timers:
• Hello Timer: The interval between successive HSRP
Hello messages from a given router. This timer can be
configured in seconds or milliseconds under the HSRP
interface. The default value is 3 seconds.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
788
High Availability
Configure CUBE High Availability Using HSRP
Step 6 Configure Media Inactivity Timer. The Media Inactivity Timer enables the Active/Standby
router pair to monitor and disconnect calls if no Real-Time
Protocol (RTP) packets are received within a configurable
time period.
When RTP packets for a call are not received by the
Active/Standby router, the SIP Media Inactivity Timer
releases the session. This is used to guard against any hung
sessions that might have resulted from the failover in the
event that a normal call disconnect does not clear the call.
The same duration for the Media Inactivity Timer must be
configured on both routers. The default value is 28 seconds.
This timer is configured as follows:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
789
High Availability
Configure CUBE High Availability Using HSRP
Note
The media inactivity detection timer is defined with two
CLI commands. One command configures the Real-time
Transport Control Protocol (RTCP) report interval, and
another defines the multiplying factor M (this also
identifies the mode of detection with Cisco IOS Release
12.4(4)T). The controlling mechanism is accomplished
through the configuration of application CLI.
Media inactive timer = M * ip rtcp report interval
The inactivity detection is supported in two modes based
on which timer multiplying factor configuration (M factor)
is used:
timer receive-rtcp: Beginning from Cisco IOS Release
12.3(4)T, this mode detects inactivity with the use of no
DSP statistics (either an RTP or RTCP packet received is
considered active). No explicit enabling is needed. This
timer is the default. When this timer is used, the call is
disconnected when a silent call is detected. This behavior
is not DSP-based, but is the default behavior when no
application CLI is configured.
timer media-inactive: This mode is available in Cisco
IOS Release 12.4(4)T, where detection is based on DSP
statistics (it uses RTP-only mechanism; packets sent or
received are considered active). If both directions are
absent, it is considered inactive. This timer is enabled or
disabled with the use of application CLI, which can also
be used in order to control notification.
Step 7 Configure SIP Binding to HSRP Address Configures the CUBE SIP messaging in order to use the
HSRP virtual address in SIP messaging:
dial-peer voice 100 voip
description to-SIP
voice-class sip bind control source-interface
GigabitEthernet0/0
voice-class sip bind media source-interface
GigabitEthernet0/0
!
dial-peer voice 200 voip
description to-CUCM
voice-class sip bind control source-interface
GigabitEthernet0/1
voice-class sip bind media source-interface
GigabitEthernet0/1
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
790
High Availability
Configure CUBE High Availability Using HSRP
Step 8 Reload Routers. Once all the above configurations have been completed,
the redundancy show output is as follows:
XFR-2#show redundancy inter-device
Redundancy inter-device state:
RF_INTERDEV_STATE_INIT
Pending Scheme: Standby (Will not take effect
until next reload)
Pending Groupname: b2bha
Scheme: <NOT CONFIGURED>
Peer present: UNKNOWN
Security: Not configured
Step 9 Point Attached Softswitches to CUBE HSRP Virtual The CUCM, IP-PBX, SIP proxy or SP SBCs or SP
Address softswitches that route calls to CUBE must use the HSRP
virtual address in their SIP messaging. SIP messages to the
CUBE physical IP addresses are not handled with an HSRP
configuration.
Example
Sample Configurations for Dual-Attached CUBE HSRP Redundancy
In these configurations, the HSRP Hello and Hold timers use their default values of 3 and 8 seconds
respectively, and are not shown explicitly in the CLI output.
Active Configuration:
ipc zone default
association 1
no shutdown
protocol sctp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
791
High Availability
Configure CUBE High Availability Using HSRP
local-port 5000
local-ip [Link]
remote-port 5000
remote-ip [Link]
!
voice service voip
mode border-element
allow-connections sip to sip
redundancy
!
redundancy inter-device
scheme standby SB
!
redundancy
!
interface GigabitEthernet0/0
ip address [Link] [Link]
duplex auto
keepalive
speed auto
standby delay minimum 30 reload 60
standby version 2
standby 0 ip [Link]
standby 0 preempt
standby 0 priority 50
standby 0 track 2 decrement 10
standby 0 name SB
!
interface GigabitEthernet0/1
ip address [Link] [Link]
duplex auto
speed auto
media-type rj45
standby delay minimum 30 reload 60
standby version 2
standby 6 ip [Link]
standby 6 priority 50
standby 6 track 1 decrement 10
!
ip rtcp report interval 3000
!
track 1 interface GigabitEthernet0/0 line-protocol
!
track 2 interface GigabitEthernet0/1 line-protocol
!
dial-peer voice 100 voip
description to-SIP
destination-pattern 9T
session protocol sipv2
session target ipv4:x.x.x.x
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
!
dial-peer voice 200 voip
description to-CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:y.y.y.y
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
!
gateway
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
792
High Availability
Configure CUBE High Availability Using HSRP
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 1200
Standby Configuration:
ipc zone default
association 1
no shutdown
protocol sctp
local-port 5000
local-ip [Link]
remote-port 5000
remote-ip [Link]
!
voice service voip
mode border-element
allow-connections sip to sip
redundancy
!
redundancy inter-device
scheme standby SB
!
redundancy
!
interface GigabitEthernet0/0
ip address [Link] [Link]
duplex auto
keepalive
speed auto
standby delay minimum 30 reload 60
standby version 2
standby 0 ip [Link]
standby 0 preempt
standby 0 priority 50
standby 0 name SB
standby 0 track 2 decrement 10
!
interface GigabitEthernet0/1
ip address [Link] [Link]
duplex auto
speed auto
media-type rj45
standby delay minimum 30 reload 60
standby version 2
standby 6 ip [Link]
standby 6 priority 50
standby 6 preempt
standby 6 track 1 decrement 10
!
ip rtcp report interval 3000
!
track 1 interface GigabitEthernet0/0 line-protocol
!
track 2 interface GigabitEthernet0/1 line-protocol
!
dial-peer voice 100 voip
description to-SIP
destination-pattern 9T
session protocol sipv2
session target ipv4:x.x.x.x
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
793
High Availability
Configure CUBE High Availability Using HSRP
!
dial-peer voice 200 voip
description to-CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:y.y.y.y
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 1200
!
ip rtcp report interval 3000
!
dial-peer voice 5 voip
description to-SIP-application
destination-pattern 9T
session protocol sipv2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
794
High Availability
Configure CUBE High Availability Using HSRP
!
ip rtcp report interval 3000
!
dial-peer voice 5 voip
description to-SIP-application
destination-pattern 9T
session protocol sipv2
session target ipv4:x.x.x.x
!
dial-peer voice 9 voip
description to-CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:y.y.y.y
!
gateway
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
795
High Availability
Verify Redundancy State
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 1200
SUMMARY STEPS
1. Use the show redundancy inter-Router and show redundancy state commands to verify the redundancy
state.
DETAILED STEPS
Procedure
client count = 14
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
796
High Availability
Verify Redundancy State
my state = 3 -NEGOTIATION
peer state = 13 -ACTIVE
Mode = Duplex
Unit ID = 0
client count = 14
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
my state = 13 -ACTIVE
peer state = 1 -DISABLED
Mode = Simplex
Unit ID = 0
client count = 14
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
797
High Availability
Verify Redundancy State
my state = 13 -ACTIVE
peer state = 8 -STANDBY HOT
Mode = Duplex
Unit ID = 0
client count = 14
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
798
High Availability
Verify Call State After a Switchover
client count = 14
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
-----------------------------
First a few entries in HA DB:
-----------------------------
---------------------------------------
First a few entries in Sync Pending DB:
---------------------------------------
----------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
799
High Availability
Verify Call State After a Switchover
Verify the media-inactivity count on the active router when the calls are over
In this example, 800 calls are cleared by the media-inactivity timer.
Router#show voice high-availability summary
-----------------------------
First a few entries in HA DB:
-----------------------------
---------------------------------------
First a few entries in Sync Pending DB:
---------------------------------------
----------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
800
High Availability
Verify Call State After a Switchover
Verify native and non-native (preserved) calls when both are present
The numbers of calls on the system are shown as follows:
• Total number of calls = "Number of calls in HA DB" + "Number of calls in HA sync pending DB". This
is 100 + 50 = 150 in the example output below.
• Total number of preserved (nonnative) calls = "Number of calls in HA preserved session DB". This is
70 in the example output below.
• Total number of native calls (calls set up since the failover and therefore not preserved over the failover)
is the difference in the previous two numbers. In this example, it is 150 - 70 = 80.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
801
High Availability
Considerations and Restrictions
Considerations
• There are slight differences in the HSRP configuration between active and standby routers.
• Configuration synchronization between the active and standby router is manual.
• HSRP virtual addresses support only IPv4 addressing.
• Only active calls are checkpointed (Calls that are connected with 200 OK or ACK transaction completed).
• Upon failover, the previously active CUBE reloads by design.
• Multiple traffic (SIP/RTP) interfaces require Preemption and Interface Tracking.
• In High Availability deployments, CUBE uses a primary IP address to communicate the Smart Licensing
information.
• Box-to-box redundancy configuration supports only SIP-SIP calls flows, the SIP transport can be either
UDP-UDP or UDP-TCP.
• Port channel interfaces are supported only from Cisco IOS Release 15.6(3)M onwards.
Figure 82: Additional Supported Options for CUBE HA
Restrictions
• IPv6 is not supported.
• All SCCP-based media resources (Conference bridge, Transcoding, Hardware MTP, and Software MTP)
are not supported.
• Cisco Unified Survivable Remote Site Telephony (Unified SRST) or TDM Gateway co-location on Cisco
UBE HA is not supported.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
802
High Availability
How to Configure CUBE High Availability on Cisco ISR-G2
• Calls that involve supplementary services such as transcoding, DTMF-interworking, IVR, SIP-TLS,
RSVP, STUN, RTP-SRTP conversion, or fax/modem features are not preserved during the failover.
• Box-to-box redundancy configuration supports multiple HSRP groups per router, but only a single HSRP
group per physical interface.
• Loopback addresses with HSRP are not supported, the SIP bind command must use the HSRP virtual
IP address.
• No support for media-flow around or UC Services API (Cisco Unified Communications Manager -
Network-Based Recording).
• WANs cannot terminate directly on the CUBE or on data HSRP on either sides.
• Call Progress Analysis (CPA) calls (before to being transferred to the agent), SCCP-based media resources,
Noise Reduction, Acoustic Shock Protection (ASP), and transrating calls are not checkpointed.
• Courtesy Callback (CCB) feature is not supported if a callback was registered with Cisco Unified Customer
Voice Portal (CVP) and then a switchover was done on CUBE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
803
High Availability
Configure High Availability
DETAILED STEPS
Procedure
Router(config)#redundancy inter-device
Router(config-red-interdevice)#scheme standby SB
The following table provides details of the CLIs used in the configuration.
Keyword Description
The router enters the interdevice configuration mode and names the redundancy scheme that is used between the two
routers. The CLIs listed in the preceding example create interdependency between theCUBE redundancy and HSRP.
Enables CUBE on the router and allows connections between the specific type of endpoints in a VoIP network.
Example:
Enable the CUBE redundancy and call checkpointing on both routers
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
804
High Availability
Configure High Availability
Example:
Standby CUBE configuration
The following table provides details of the CLIs used in the configuration.
Option Description
ipc zone default Configures the Inter-process Communication Protocol
(IPC) and enters IPC zone configuration mode. Use this
command to initiate the communication link between the
active and standby routers.
local-port port_num Defines the local SCTP port number for communication
with the redundant peer.
remote-port port_num Defines the remote SCTP port number for communication
with the redundant peer.
remote-ip ip_addr Defines the remote IP address for communication with the
redundant peer. All remote IP addresses must point to the
same router.
Allows the active CUBE to communicate with the standby CUBE about the state of the calls. Configuration must be
applied on the LAN side.
Note
The local-port and the remote-port must be set to 5000 on the active and standby routers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
805
High Availability
Configure High Availability
The following table provides details of the CLIs used in the configuration.
Option Description
ip vrf vrf-name Creates a VRF with the specified name.
Note
Space is not allowed in the VRF name.
CUBE High Availability with HSRP supports VRF. Traffic interfaces (SIP/RTP) can have VRFs configured. VRF IDs
are checkpointed for the calls before and after the switchover. VRF configurations including VRF-based RTP port
range, must be identical on both active and standby routers.
Example:
Standby CUBE configuration
CUBE-2(config)#interface GigabitEthernet0/0
CUBE-2(config-if)#description “Enterprise LAN”
CUBE-2(config-if)#ip vrf forwarding LAN-VRF
CUBE-2(config-if)#ip address [Link] [Link]
CUBE-2(config-if)#standby version 2
CUBE-2(config-if)#standby 1 ip [Link]
CUBE-2(config-if)#standby delay minimum 30 reload 60
CUBE-2(config-if)#standby 1 preempt
CUBE-2(config-if)#standby 1 track 2 decrement 10
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
806
High Availability
Configure High Availability
Example:
Standby CUBE configuration
CUBE-2(config)#interface GigabitEthernet0/1
CUBE-2(config-if)#description “Enterprise WAN”
CUBE-2(config-if)#ip vrf forwarding WAN-VRF
CUBE-2(config-if)#ip address [Link] [Link]
CUBE-2(config-if)#standby version 2
CUBE-2(config-if)#standby 10 ip [Link]
CUBE-2(config-if)#standby delay minimum 30 reload 60
CUBE-2(config-if)#standby 10 preempt
CUBE-2(config-if)#standby 10 track 2 decrement 10
CUBE-2(config-if)#standby 10 track 3 decrement 10
CUBE-2(config-if)#standby 10 priority 50
c) Configure the HSRP interface (between the active and standby CUBE).
Example:
Active CUBE configuration
CUBE-1(config)#interface GigabitEthernet0/2
CUBE-1(config-if)#description “HSRP Interface”
CUBE-1(config-if)#ip address [Link] [Link]
CUBE-1(config-if)#standby version 2
CUBE-1(config-if)#standby 100 ip [Link]
CUBE-1(config-if)#standby delay minimum 30 reload 60
CUBE-1(config-if)#standby 100 preempt
CUBE-1(config-if)#standby 100 name SB
CUBE-1(config-if)#standby 100 track 2 decrement 10
CUBE-1(config-if)#standby 100 track 3 decrement 10
CUBE-1(config-if)#standby 100 priority 50
Example:
Standby CUBE configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
807
High Availability
Configure High Availability
CUBE-2(config)#interface GigabitEthernet0/2
CUBE-2(config-if)#description “HSRP Interface”
CUBE-2(config-if)#ip address [Link] [Link]
CUBE-2(config-if)#standby version 2
CUBE-2(config-if)#standby 100 ip [Link]
CUBE-2(config-if)#standby delay minimum 30 reload 60
CUBE-2(config-if)#standby 100 preempt
CUBE-2(config-if)#standby 100 name SB
CUBE-2(config-if)#standby 100 track 2 decrement 10
CUBE-2(config-if)#standby 100 track 3 decrement 10
CUBE-2(config-if)#standby 100 priority 50
Note
ip vrf forwarding vrf-name is applicable only if you have configured VRF.
The HRSP interface cannot have VRFs associated with it. For a CUBE deployment that has VRFs configured for
SIP/RTP interfaces, you must have minimum of three interfaces. Otherwise, you can use any of the LAN interfaces as
an HSRP interface.
The following table provides details of the CLIs used in the configuration.
Option Description
interface type number Configures an interface type and enters the interface
configuration mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
808
High Availability
Configure High Availability
Option Description
standby delay minimum min-seconds reload Configures the delay period before the initialization of
reload-seconds HSRP group.
• The min-seconds value is the minimum time (in
seconds) to delay the HSRP group initialization after
an interface comes up. This minimum delay period
applies to all subsequent interface events.
• The reload-seconds value is the time period to delay
after the device has reloaded. This delay period
applies only to the first interface-up event after the
device has reloaded.
Note
The recommended min-seconds value is 30 and the
recommended reload-seconds value is 60.
standby group-number preempt Allows the router to become the active router when the
priority is higher than all other HSRP-configured routers
in the HSRP group. If you do not use the standby preempt
command in the configuration for a router, that router does
not become the active router, even if the priority is higher
than all other routers.
standby group-number track track-process-number Configures HSRP to track a device and change the HSRP
decrement value priority on the basis of the state of the device. Decrement
value specifies the value by which the HSRP priority of
the tracked device is decremented (or incremented) when
the device goes down (or becomes available).
standby x priority Defines the Hot Standby priority that is used in choosing
the active router. The range is 1–255, where 1 denotes the
lowest priority and 255 the highest priority.
Note
In cases where the standby priority is the same, the device
with the higher IP address assumes the role of the active
router.
ip vrf forwarding vrf-name Associates the specified VRF with the interface.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
809
High Availability
Configure High Availability
Option Description
track object-number interface interface-id line-protocol Enters tracking configuration mode.
• The object-number identifies the tracked object and
the range is 1–500.
• The interface-id represents the interface that is
tracked.
b) Bind traffic that is destined to the inside (Unified CM or IP PBX) to the inside physical interface.
Example:
Active and standby CUBE configuration
CUBE(config)#dial-peer voice 200 voip
CUBE(config-dial-peer)#description TO CUCM
CUBE(config-dial-peer)#destination-pattern 555...
CUBE(config-dial-peer)#session protocol sipv2
CUBE(config-dial-peer)#session target ipv4:[Link]
CUBE(config-dial-peer)#voice-class sip bind control source-interface GigabitEthernet0/0
CUBE(config-dial-peer)#voice-class sip bind media source-interface GigabitEthernet0/0
Binding the traffic to the respective interfaces ensures that all RTP and SIP packets are created with the virtual IP
associated with the respective physical interface.
The following table provides details of the CLIs used in the configuration.
Option Description
dial-peer voice number voip Defines a local dial peer.
• The number argument identifies the dial peer. Valid
entries are 1–2147483647.
destination-pattern string Defines the phone number that identifies the destination
pattern that is associated with the dial-peer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
810
High Availability
Configure High Availability
Option Description
session-protocol sipv2 Configures SIP as the session protocol type.
session target ip-address Configures the network address of the remote router to
which you want to send a call once a local voice-network
dial peer is matched.
voice-class sip bind control source-interface interface-id Sets a source interface for signaling and media packets.
voice-class sip bind media source-interface interface-id The binding applies to the specified interfaces only.
• control—Binds signaling packets.
• binds—Binds media packets.
• source-interface interface-id—Type of interface and
its ID.
the following table provides details of the CLIs used in the configuration.
Option Description
ip rtcp report interval time in milliseconds Configures the average reporting interval between
subsequent RTCP report transmissions.
media-inactivity-criteria all Specifies the use of both RTCP and RTP for detecting the
silence on a voice call.
timer receive-rtcp timer Enable the Real-Time Control Protocol (RTCP) timer and
configures a multiplication factor for the RTCP timer
interval for Session Initiation Protocol (SIP) or H.323.
• timer—Multiples of the RTCP report transmission
interval. Range is 0–1000. Default value is 0.
Recommended value is 5.
The Media Inactivity Timer enables the active/standby router pair to monitor and disconnect calls, if the router pair
does not receive Real-Time Protocol (RTP) packets within a configurable time period.
When the active or the standby router does not receive RTP packets for a call, the SIP Media Inactivity Timer releases
the session. The Media Inactivity Timer guards against any hung sessions resulting from the failover when a normal
call disconnect does not clear the call.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
811
High Availability
Configuration Examples
You must configure the same duration for the Media Inactivity Timer on both routers.
Step 10 Point the attached devices to the CUBE HSRP Virtual IP (VIP) address.
The IP-PBX, Cisco Unified SIP Proxy, or service provider must route the calls to CUBE’s virtual IP address. This HA
configuration does not handle SIP/H.323 messages to CUBE’s physical IP addresses.
Configuration Examples
Example Configuration for Dual-Attached CUBE HSRP Redundancy
This section provides sample configurations for both the active and standby CUBE routers. In these
configurations, the HSRP Hello and Hold timers use their default values of 3 and 8 seconds respectively, and
are not shown explicitly in the CLI output.
!
interface GigabitEthernet0/1
ip address [Link] [Link]
standby version 2
standby 10 ip [Link]
standby delay minimum 30 reload 60
standby 10 preempt
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
812
High Availability
Example Configuration for Dual-Attached CUBE HSRP Redundancy
!
interface GigabitEthernet0/2
ip address [Link] [Link]
standby version 2
standby 100 ip [Link]
standby delay minimum 30 reload 60
standby 100 preempt
standby 100 name SB
standby 100 track 2 decrement 10
standby 100 track 3 decrement 10
standby 100 priority 50
!
track 1 interface Gig0/0 line-protocol
track 2 interface Gig0/1 line-protocol
track 3 interface Gig0/2 line-protocol
!
dial-peer voice 100 voip
description TO SERVICE PROVIDER
destination-pattern 9T
session protocol sipv2
session target ipv4:y.y.y.y
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
!
dial-peer voice 200 voip
description TO CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:[Link]
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
!
ip rtcp report interval 3000
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 86400
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
813
High Availability
Example Configuration for Dual-Attached CUBE HSRP Redundancy
!interface GigabitEthernet0/0
ip address [Link] [Link]
standby version 2
standby 1 ip [Link]
standby delay minimum 30 reload 60
standby 1 preempt
standby 1 track 2 decrement 10
standby 1 track 3 decrement 10
standby 1 priority 50
!
interface GigabitEthernet0/1
ip address [Link] [Link]
standby version 2
standby 10 ip [Link]
standby delay minimum 30 reload 60
standby 10 preempt
standby 10 track 2 decrement 10
standby 10 track 3 decrement 10
standby 10 priority 50
!
interface GigabitEthernet0/2
ip address [Link] [Link]
standby version 2
standby 100 ip [Link]
standby delay minimum 30 reload 60
standby 100 preempt
standby 100 name SB
standby 100 track 2 decrement 10
standby 100 track 3 decrement 10
standby 100 priority 50
!
track 1 interface Gig0/0 line-protocol
track 2 interface Gig0/1 line-protocol
track 3 interface Gig0/2 line-protocol
!
dial-peer voice 100 voip
description TO SERVICE PROVIDER
destination-pattern 9T
session protocol sipv2
session target ipv4:y.y.y.y
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
!
dial-peer voice 200 voip
description TO CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:[Link]
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
!
ip rtcp report interval 3000
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 86400
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
814
High Availability
Example Configuration for Single-Attached CUBE HSRP Redundancy
!
ip rtcp report interval 3000
!
dial-peer voice 5 voip
description to-SIP-application
destination-pattern 9T
session protocol sipv2
session target ipv4:x.x.x.x
!
dial-peer voice 9 voip
description to-CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:y.y.y.y
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 86400
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
815
High Availability
Example Configuration for Single-Attached CUBE HSRP Redundancy
!
ip rtcp report interval 3000
!
dial-peer voice 5 voip
description to-SIP-application
destination-pattern 9T
session protocol sipv2
session target ipv4:x.x.x.x
!
dial-peer voice 9 voip
description to-CUCM
destination-pattern 555....
session protocol sipv2
session target ipv4:y.y.y.y
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 86400
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
816
High Availability
Verify Your Configurations
GigabitEthernet0/0
Protocol Pkts In Chars In Pkts Out Chars Out
Other 1 58 6 360
IP 406 178841 201 16394
ARP 569 34292 0 0
CDP 116 31672 22 7304
Note Check IP Pkts In and Pkts Out counters. These counters must be increasing at reasonable rate. For example,
if you are using G.711 20ms packetization and no VAD, you must see the packet counters increase by around
50 every second.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
817
High Availability
Force a Manual Failover for Testing
The show voip rtp connections command shows the number of active connections on both the active and
standby routers after a switchover.
The show call active voice brief command does not show any output on the standby router after a switchover
because the signaling information is not checkpointed.
Perform the following steps to configure and verify a single switch over:
SUMMARY STEPS
1. Configure HSRP Box-to-box redundancy as explained in the Configuration section.
2. Reload and keep both routers in rommon.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
818
High Availability
Force a Manual Failover for Testing
3. Boot up one router. After the router comes up, execute the show redundancy state command and make
sure it displays my state as active and peer state as Disabled. This can take a while after boot up.
4. Boot up the second router. After the router comes up, execute the show redundancy state command and
make sure it displays my state as standby-Hot and peer state as active.
5. Start one or more calls across the system. Execute the show voice high-availability summary and show
voip rtp connection commands on both the active and standby routers to make sure that the calls are up
and checkpointed.
6. Test switchover by reloading the active router. If you are using a phone to make calls, you can listen to
the phone to make sure that the media path is preserved. If you are using test equipment, you can use the
packet displays to determine if media for the calls are flowing.
7. Test Media Inactivity: Stop the call. Repeat show voip rtp connection . After the media-inactivity timer
expiry, there must be no more active RTP connections. You can also check this using the show voice
high-availability summary command.
DETAILED STEPS
Procedure
my state = 13 -ACTIVE
peer state = 1 -DISABLED
Step 4 Boot up the second router. After the router comes up, execute the show redundancy state command and make sure it
displays my state as standby-Hot and peer state as active.
Example:
Router#show redundancy states
Step 5 Start one or more calls across the system. Execute the show voice high-availability summary and show voip rtp
connection commands on both the active and standby routers to make sure that the calls are up and checkpointed.
Step 6 Test switchover by reloading the active router. If you are using a phone to make calls, you can listen to the phone to make
sure that the media path is preserved. If you are using test equipment, you can use the packet displays to determine if
media for the calls are flowing.
Example:
Router#show interfaces g0/0 accounting
GigabitEthernet0/0
Protocol Pkts In Chars In Pkts Out Chars Out
Other 1 58 6 360
IP 406 178841 201 16394
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
819
High Availability
Troubleshoot High Availability Issues
Step 7 Test Media Inactivity: Stop the call. Repeat show voip rtp connection . After the media-inactivity timer expiry, there
must be no more active RTP connections. You can also check this using the show voice high-availability summary
command.
Example:
Router#show voice high-availability summary | include media
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
820
High Availability
Troubleshoot High Availability Issues
Note Do not turn on a large number of debugs on a system carrying high volume of active call traffic.
Note On every switchover, after router reload, you must re-enable the debugs on the new standby router.
Each router in an HSRP group participates in the protocol by implementing a simple state machine. All routers
begin in the Initial state.
States Description
Initial This is the starting state and indicates that HSRP is
not running. This state is entered through
configuration change or when an Interface first comes
up.
Listen The router knows the virtual IP address, but is not the
active or standby router. It listens for Hello messages
from those routers.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
821
High Availability
Troubleshoot High Availability Issues
• Use the debug standby command to see if the routers are sending and receiving HSRP Hello packets.
If the peer is sending Hellos, but they are not being received then check show interface or show
controller commands to see if the interface is listening to the HSRP multicast address.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
822
CHAPTER 59
DSP High Availability Support
Cisco Unified Border Element (CUBE) DSP High Availability support for SIP-to-SIP calls is added for
Box-to-Box and Inbox configurations. Earlier, calls that required DSP resources were not checkpointed. As
a result, both the media and signaling sessions were not preserved after switchover resulting in call failure.
• Feature Information for DSP High Availability Support on CUBE, on page 823
• Prerequisites for DSP High Availability, on page 823
• Features Supported with DSP High Availability, on page 824
• Restrictions for DSP High Availability, on page 824
• Troubleshooting DSP HA Support on CUBE, on page 824
• Configuration Examples for DSP HA, on page 825
DSP HA Support on CUBE Cisco IOS 15.5(2)T Provides DSP High availability support for SIP-to-SIP
calls on Box-to-Box and Inbox redundancies.
Cisco IOS XE 3.15S
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
823
High Availability
Features Supported with DSP High Availability
• DSP HA is supported only on the following routers and its corresponding modules:
• Cisco ISR G2 series (PVDM3)
• Cisco ASR 1000 series (SPA-DSP)
• Cisco ISR 4000 series (PVDM4)
• Cisco Catalyst 8200 Edge series
• Cisco Catalyst 8300 Edge series
• The same type and capacity DSP modules must be used in the Active and Standby CUBE devices
(box-to-box)
• The DSP modules must be installed in the same slot and subslot in the Active and Standby CUBE devices
(box-to-box)
• The Active and Standby CUBE devices must have the same DSPFARM configurations (box-to-box)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
824
High Availability
Configuration Examples for DSP HA
Standby Configuration
-----------------
voice-card 0
dsp services dspfarm
The following example shows the DSP HA output for the active and standby configurations:
On Active:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
825
High Availability
Configuration Examples for DSP HA
On Standby:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
826
CHAPTER 60
Stateful Switchover Between Redundancy Paired
Intra- or Inter-box Devices
Stateful switchover provides protection for network edge devices with dual Route Processors (RPs) that
represent a single point of failure in the network design, and where an outage might result in loss of service
for customers.
• Feature Information for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices,
on page 827
• Prerequisites for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices, on page
828
• Restrictions for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices, on page
829
• Information About Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices, on page
829
Stateful Switchover Between Cisco IOS XE Provides protection for network edge devices with
Redundancy Paired Intra or Release 3.2S dual Route Processors (RPs) that represent a single
Inter-box Devices point of failure in the network design, and where an
outage might result in loss of service for customers.
Stateful Switchover Between Cisco IOS Release Provides protection for network edge devices with
Redundancy Paired Intra or 15.2(3)T dual Route Processors (RPs) that represent a single
Inter-box Devices point of failure in the network design, and where an
outage might result in loss of service for customers.
Stateful Switchover Between Cisco IOS XE Provides support for call escalation and de-escalation
Redundancy Paired Intra or Release 3.8S with stateful switchover.
Inter-box Devices (Call
15.3(1)T
Escalation and De-escalation
with Stateful Switchover)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
827
High Availability
Prerequisites for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices
Stateful Switchover Between Cisco IOS XE Provides support for media forking with high
Redundancy Paired Intra or Release 3.8S availability mechanism.
Inter-box Devices (Media
15.3(1)T
Forking with High Availability)
High Availability Protected Cisco IOS XE Provides support for enabling the PROTECTED
Mode and Box-to-Box HA Release 3.11S mode on a Voice HA-enabled ASR.
Support
OPTIONS PING Support under 15.4(3)M The OPTIONS ping with CUBE high availability
HA Configuration feature adds the ability to match the incoming
Cisco IOS XE
dial-peer in the context of the OPTIONS message,
Release 3.13S
allowing response with the virtual IP address shared
between the active and standby CUBEs. Box-to-box
high availability is supported using virtual IP
addresses for the signaling and media, by enhancing
the CUBE response to an inbound OPTIONS ping
message. This is possible because dial-peer matching
of a request URI that does not have a user part is
supported.
For configuration examples, see the Examples
section about configuring interfaces (ISR and ASR)
and configuring SIP binding.
Support for REFER and Cisco IOS 15.5(2)T REFER based supplementary services with high
BYE/Also after Software availability is supported on Cisco Unified Border
Cisco IOS XE
Switch-Over Element (Cisco UBE) after stateful switchover.
Release 3.15S
Support is also provided for SIP-to-SIP BYE/Also
calls.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
828
High Availability
Restrictions for Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices
For more information about the Stateful Switchover feature and for detailed procedures for enabling this
feature, see the "Configuring Stateful Switchover" chapter of the Cisco IOS High Availability Configuration
Guide, Release 12.2SR.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
829
High Availability
Call Escalation with Stateful Switchover
Note If the Cisco UBE switchover happens at any instance, then audio calls will be preserved before escalation and
video calls will be preserved after escalation.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
830
High Availability
Media Forking with High Availability
Note If the Cisco UBE switchover happens at any instance, then video calls will be preserved before de-escalation
and audio calls will be preserved after de-escalation.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
831
High Availability
Support for Box-to-Box High Availability with Virtual IP Addresses
Note • Use the same hardware for both the ASR boxes in the active or standby pair to ensure compatibility
before and after failover.
• A separate physical interface must be used for checkpointing calls between the active and standby devices.
Self-reload in a voice HA-enabled device helps to recover the box-to-box HA pair from out-of-sync conditions.
Instead of self-reload, you can configure the device to transition into protected mode. In protected mode:
• Bulk sync request, call checkpointing, and incoming call processing are disabled.
• The device in protected mode needs to be manually reloaded to come out of this state.
• In a high availability scenario, if CUBE in standby redundancy group (RG) state is already in VoIP HA
protected mode and a switchover occurs, causing the standby CUBE to become active on RG level, VoIP
functionality is disabled. This is because incoming call processing is disabled in VoIP HA protected
mode, so even when the standby CUBE assumes the active role on RG level, call processing remains
impaired. The only way to restore call processing is to manually reboot the affected CUBE instance to
exit protected mode.
To enabled the protected mode, use the no redundancy-reload command under “voice service voip”
configuration mode. The default is redundancy-reload, which reloads control when the redundancy group
(RG) fails.
Important When OPTIONS Ping SIP Trunk (from CUCM) is configured to CUBE that is running in HA mode, the SIP
Trunk goes down whenever the active interface goes down. The SIP Trunk comes back in service, when the
OPTIONS Ping next retry happens to CUBE HA node. The default retry time is 60 seconds.
Note For configuration examples, see the Examples section about configuring interfaces (ISR and ASR) and
configuring SIP binding.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
832
High Availability
Monitoring Call Escalation and De-escalation with Stateful Switchover
SUMMARY STEPS
1. enable
2. show call active voice compact
3. show call active video compact
4. show call active voice stats
5. show call active video stats
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
dur 00:00:16 tx:2238/85044 rx:1618/61484 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:58300 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
Transcoded: No
dur 00:00:16 tx:1618/61484 rx:2238/85044 dscp:0 media:0 audio tos:0xB8 video tos:0x0
IP [Link]:58400 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
833
High Availability
Monitoring Media Forking with High Availability
Transcoded: No
dur 00:00:00 tx:27352/1039376 rx:36487/1386506 dscp:0 media:0 audio tos:0xB8 video tos:0x88
IP [Link]:1697 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms H264 TextRelay: off Transcoded:
No
dur 00:00:00 tx:36487/1386506 rx:27352/1039376 dscp:0 media:0 audio tos:0xB8 video tos:0x88
IP [Link]:1699 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms H264 TextRelay: off Transcoded:
No
SUMMARY STEPS
1. enable
2. show call active voice compact
3. show voip rtp connections
4. show voip recmsp session
5. show voip rtp forking
6. show voip rtp forking
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
834
High Availability
Monitoring Media Forking with High Availability
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
835
High Availability
Verifying the High Availability Protected Mode
Displays the RTP media-forking connections. In the output shown, on the standby device, packets will not be sent. After
the switchover happens, packets will be sent from the new active device.
Example:
Device# show voip rtp forking
SUMMARY STEPS
1. enable
2. show voice high-availablity rf-client (active device)
3. show voice high-availablity rf-client (standby device)
DETAILED STEPS
Procedure
Step 1 enable
Example:
Router> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
836
High Availability
Support for REFER and BYE/Also after Stateful Switch-Over
-----
RF Domain: 0x0
Voice HA Client Name: VOIP RF CLIENT
Voice HA RF Client ID: 1345
Voice HA RF Client SEQ: 128
My current RF state ACTIVE (13)
Peer current RF state DISABLED (1)
-----
RF Domain: 0x2 [RG: 1]
Voice HA Client Name: VOIP RG CLIENT
Voice HA RF Client ID: 4054
Voice HA RF Client SEQ: 448
My current RF state ACTIVE (13)
Peer current RF state STANDBY HOT (8)
-----
RF Domain: 0x2 [RG: 1]
Voice HA Client Name: VOIP RG CLIENT
Voice HA RF Client ID: 4054
Voice HA RF Client SEQ: 448
My current RF state STANDBY HOT (8)
Peer current RF state ACTIVE (13)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
837
High Availability
Troubleshooting Tips
Use the show sip-ua handoff stats command to display the call handoff statistics for calls handed off
successfully after switchover. Following are the statistics displayed:
• Total number of calls handed off
• Total number of successful calls handoffs
• Total numbers of unsuccessful call handoffs
Troubleshooting Tips
Use the following commands to troubleshoot call escalation and de-escalation with stateful switchover:
• debug voip ccapi all
• debug voip ccapi service
• debug voice high-availability all
• debug voip rtp error
• debug voip rtp inout
• debug voip rtp high-availability
• debug voip rtp function
• debug ccsip all
Use the following commands to troubleshoot media forking support on high availability:
• debug ccsip all
• debug voip high-availability all
• debug voip ccapi inout
• debug voip recmsp all
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
838
High Availability
Example: Configuring the Interfaces for ISR-G2 Devices
Use the following debug commands to troubleshoot issues related to handling of REFER based supplementary
services:
• debug ccsip verbose
• debug voip application all
• debug voip ccapi all
• debug voice high-availability all
ISR-G2 (HSRP-based)
interface GigabitEthernet0/0/0
ip address [Link] [Link]
duplex auto
keepalive
speed auto
standby delay minimum 30 reload 60
standby version 2
standby 0 ip [Link]
standby 0 preempt
standby 0 priority 50
standby 0 track 2 decrement 10
standby 0 name SB
interface GigabitEthernet0/0/0
ip address [Link] [Link]
negotiation auto
redundancy rii 1
redundancy group 1 ip [Link] exclusive
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
839
High Availability
Example: Configuring SIP Binding
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
840
CHAPTER 61
CVP Survivability TCL support with High
Availability
Call survivability features are supported in Cisco Unified Border Element (CUBE) high availability mode for
all active calls handled by Cisco Voice Portal (CVP).
• Feature Information for CVP Survivability TCL support with High Availability, on page 841
• Prerequisites, on page 842
• Restrictions, on page 842
• Recommendations, on page 842
• CVP Survivability TCL support with High Availability, on page 842
• Configuring CVP Survivability TCL support with High Availability, on page 842
Table 82: Feature Information for CVP Survivability TCL support with High Availability
CVP Survivability TCL Cisco IOS 15.6(2)T This feature enables CUBE
support with High Availability support call survivability
Cisco IOS XE Denali 16.3.1
features in CUBE high
availability mode for all active
calls handled by CVP.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
841
High Availability
Prerequisites
Prerequisites
• CVP survivability TCL application is configured on incoming dial-peer
Restrictions
• If there is a courtesy callback (CCB) registered with CVP, then post switchover, CCB is not supported.
• Only call survivability TCL script is supported with CUBE high availability. Other TCL based services
are not supported.
• Only the active calls will be check pointed. (Calls which are connected - 200OK / ACK transaction
completed). Calls in transition state will not be check pointed.
Recommendations
• Configure TCP session transport for the SIP trunk between CUBE and CVP.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
842
PA R T XV
ICE-Lite Support on CUBE
• ICE-Lite Support on CUBE, on page 845
CHAPTER 62
ICE-Lite Support on CUBE
Interactive Connectivity Establishment (ICE) is a protocol for Network Address Translator (NAT) traversal
for UDP-based multimedia sessions established with the offer-answer model. ICE makes use of the Session
Traversal Utilities for NAT (STUN) protocol and its extension, Traversal Using Relay NAT (TURN), and
can be used by any protocol utilizing the offer-answer model, such as the Session Initiation Protocol (SIP).
The ICE-Lite Support on CUBE feature enables the remote peers of CUBE (that may be behind a NAT and
doing ICE) to use the ICE semantics in the session description protocol (SDP) and perform an offer-answer
exchange of SDP messages. The CUBE can also interwork with endpoints that support or do not support ICE.
ICE agents (devices) that are always attached to the public Internet have a special type of implementation
called Lite. CUBE will be in ICE-lite mode only. CUBE supports the ICE-lite feature from Cisco IOS Release
15.5(2)S.
• Feature Information for ICE-Lite Support on CUBE, on page 845
• Restrictions for ICE-lite Support on CUBE, on page 846
• Information About ICE-Lite Support on CUBE, on page 846
• How to Configure ICE-Lite Support on CUBE, on page 848
• Additional References, on page 858
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
845
ICE-Lite Support on CUBE
Restrictions for ICE-lite Support on CUBE
ICE-Lite Cisco IOS The ICE-Lite Support on CUBE feature enables the remote peers of
Support on 15.5(3)M CUBE (that may be behind a NAT and doing ICE) to use the ICE
CUBE semantics in the session description protocol (SDP) and perform an
Cisco IOS XE
offer-answer exchange of SDP messages. The CUBE can also
3.16S
interwork with endpoints that support or do not support ICE. ICE
agents (devices) that are always attached to the public Internet have
a special type of implementation called Lite. CUBE will be in ICE-lite
mode only.
The following commands were introduced or modified: debug voip
icelib, show voip ice global-stats, show voip ice instance call-id
call-id, show voip ice summary, and stun usage ice
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
846
ICE-Lite Support on CUBE
ICE Candidate
• Support for ICE-lite in the contact header with a media-tag option of REGISTER message (as per RFC
5768).
• ICE-lite feature is in compliance with section 4.2 of RFC 7584, with CUBE acting as ICE termination
Back-to-Back UA.
• CUBE accepts Full ICE Offer and responds in ICE-lite mode.
• CUBE responds to mid call updates or early dialog updates with changes to SDP parameters, and which
requires ICE to restart.
• For outbound offer from CUBE, a Session Description Protocol (SDP) with ICE-lite semantics is sent.
• ICE protocol verifies all types of media streams (audio, video, application media lines) and components
(RTP, RTCP), wherever applicable.
ICE Candidate
To execute ICE, an agent has to identify all of its address candidates. A candidate is a transport address—a
combination of IP address and port for a transport protocol, such as UDP. A candidate can be derived from
physical or logical network interfaces, or discoverable using STUN and TURN. A viable candidate is a
transport address obtained directly from a local interface; such a candidate is called a host candidate. The
local interface could be ethernet or WiFi, or it could be one that is obtained through a tunnel mechanism, such
as a Virtual Private Network (VPN) or Mobile IP (MIP). In all cases, such a network interface appears to the
agent as a local interface from which ports (and thus candidates) can be allocated.
Note Refer to RFC 5245 for more information about ICE candidates.
ICE Lite
ICE agents (devices) that are always attached to the public Internet have a special type of implementation
called Lite. For ICE to be used in a call, both the endpoints (agents) must support it. An ICE agent that supports
Lite neither gathers ICE candidates nor triggers ICE connectivity checks; however, the agent responds to
connectivity checks and includes only host candidates for any media stream. An ICE agent that supports the
lite mode is called an ICE-lite endpoint.
Note Refer to RFC 5245 for more information about ICE-lite implementation and connectivity checks.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
847
ICE-Lite Support on CUBE
How to Configure ICE-Lite Support on CUBE
• As no information related to ICE is checkpointed, in the standby device, the ICE valid list (created after
connectivity checks are done) is populated from currently used media address.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice class stun-usage tag
4. stun usage ice lite
5. end
DETAILED STEPS
Procedure
Step 3 voice class stun-usage tag Sets STUN usage global parameters, and enters voice class
configuration mode.
Example:
Device(config)# voice class stun-usage 5
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
848
ICE-Lite Support on CUBE
Verifying ICE-Lite on the CUBE (Success Flow Calls)
SUMMARY STEPS
1. show call active video compact
2. show voip rtp connections
3. show voip ice instance call-id call-id-1
4. show voip ice instance call-id call-id-2
5. show voip ice summary
6. show voip ice global-stats
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
849
ICE-Lite Support on CUBE
Verifying ICE-Lite on the CUBE (Success Flow Calls)
m-line:2
---------
ICE-State: ACTIVE
NominatedPairs:
LocalIP [Link] port 8002 type host RemoteIP [Link] port 2328 type host
LocalIP [Link] port 8003 type host RemoteIP [Link] port 2329 type host
m-line:3
---------
ICE-State: ACTIVE
NominatedPairs:
LocalIP [Link] port 8036 type host RemoteIP [Link] port 2454 type host
m-line:4
---------
ICE-State: ACTIVE
NominatedPairs:
LocalIP [Link] port 8004 type host RemoteIP [Link] port 2330 type host
LocalIP [Link] port 8005 type host RemoteIP [Link] port 2331 type host
m-line:5
---------
ICE-State: ACTIVE
NominatedPairs:
LocalIP [Link] port 8038 type host RemoteIP [Link] port 2332 type host
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
850
ICE-Lite Support on CUBE
Verifying ICE-Lite on the CUBE (Success Flow Calls)
m-line:2
---------
ICE-State: IDLE
No candidate has been nominated
m-line:3
---------
ICE-State: IDLE
No candidate has been nominated
m-line:4
---------
ICE-State: IDLE
No candidate has been nominated
m-line:5
---------
ICE-State: IDLE
No candidate has been nominated
CALL-ID ICE-STATE
------------------------------
25 COMPLETED
30 RUNNING
35 RUNNING
36 COMPLETED
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
851
ICE-Lite Support on CUBE
ICE-Lite on CUBE (Error Flow Calls)
SUMMARY STEPS
1. show call active voice compact
2. show voip rtp connections
3. show voip ice instance call-id call-id
4. show voip ice instance call-id call-id
5. show voip ice summary
6. show voip ice global-stats
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
852
ICE-Lite Support on CUBE
ICE-Lite on CUBE (Error Flow Calls)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
853
ICE-Lite Support on CUBE
ICE-Lite on CUBE (Error Flow Calls)
CALL-ID ICE-STATE
------------------------------
57 RUNNING
58 RUNNING
Total number of sessions: 2
The following are the sys logs for invalid message integrity and for sending ICE-controlled parameter.
Sys Log for invalid message integrity:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
854
ICE-Lite Support on CUBE
ICE-Lite on CUBE (Error Flow Calls)
0111002C2112A44201CD61B24C077331EDC27A5B0009000F0000040042616420526571756573740000080014D0E2E828944BF3D07CC5C06D026D8909B85EF3E9
004038: *Aug 8 14:25:30.876 IST: //57/91300134802E/STUN/Inout/stunSendMsgToNetwork: Exit
004039: *Aug 8 14:25:30.876 IST: //-1/xxxxxxxxxxxx/STUN/Detail/stunSendMsg:
** Sent Stun Packet to Network **
###STUN Message structure start###
Message Type : STUN_MSG_TYPE_BINDING_ERR_RESP
Magic Cookie : 2112A442
Transaction ID : 01CD61B24C077331EDC27A5B
Mapped Address : Not Set/Present
User Name : Not Set/Present
Error Code : Number = 400 ,Reason = Bad Request
Alternate Server : Not Set/Present
Realm : Not Set/Present
nonce : Not Set/Present
Xormapped Address : Not Set/Present
Server : Not Set/Present
ICE Priority : Not Set/Present
ICE Controlled : Not Set/Present
ICE Controlling : Not Set/Present
Cisco-flowdata :
cisco-flowdata is not present
Message Integrity : D0E2E828944BF3D07CC5C06D026D8909B85EF3E9
004040: *Aug 8 14:25:30.876 IST: Finger Print : Not Set/Present
###STUN Message structure End###
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
855
ICE-Lite Support on CUBE
ICE-Lite on CUBE (Error Flow Calls)
011100302112A442F1CF84958CE76D15C83059D90009001100000457526F6C6520436F6E666C6369740000000008001413402FC99C60296539026305739773476578806E
004165: *Aug 8 14:25:30.913 IST: //58/91300134802E/STUN/Inout/stunSendMsgToNetwork: Exit
004166: *Aug 8 14:25:30.913 IST: //-1/xxxxxxxxxxxx/STUN/Detail/stunSendMsg:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
856
ICE-Lite Support on CUBE
Troubleshooting ICE-Lite Support on CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
857
ICE-Lite Support on CUBE
Additional References
Additional References
Standards and RFCs
Standard/RFC Title
RFC 5389 Session Traversal Utilities for NAT (STUN)
RFC 5245 Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator
(NAT) Traversal for Offer/Answer Protocols
RFC 5766 Traversal Using Relays around NAT (TURN): Relay Extensions to Session Traversal Utilities
for NAT (STUN)
RFC 5768 Indicating Support for Interactive Connectivity Establishment (ICE) in the Session Initiation
Protocol (SIP)
RFC 3840 Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)
RFC 7584 Session Traversal Utilities for NAT (STUN) Message Handling for SIP Back-to-Back User
Agents (B2BUAs)
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including [Link]
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a [Link] user
ID and password.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
858
PA R T XVI
SIP Protocol Handling
• Mid-call Signaling Consumption, on page 861
• Early Dialog UPDATE Block, on page 873
• Consumption of Forked 18x Responses with SDP During Early Dialog, on page 879
• Support for Pass-Through of Unsupported Content Types in SIP INFO Messages, on page 885
• Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border Element, on
page 887
CHAPTER 63
Mid-call Signaling Consumption
The Cisco Unified Border Element BE Mid-call Signaling support aims to reduce the interoperability issues
that arise due to consuming mid-call RE-INVITES/UPDATES.
Mid-call Re-INVITEs/UPDATEs can be consumed in the following ways:
• Mid-call Signaling Passthrough - Media Change
• Mid-call Signaling Block
• Mid-call Signaling Codec Preservation
Note This feature should be used as a last resort only when there is no other option in CUBE. This is because
configuring this feature can break video-related features. For Delay-offer Re-INVITE, the configured codec
will be passed as an offer in 200 message to change the codec, the transcoder is added in the answer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
861
SIP Protocol Handling
Prerequisites
Prerequisites
• Enable CUBE application on a device
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
862
SIP Protocol Handling
Restrictions for Mid-Call Signaling Passthrough - Media Change
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
863
SIP Protocol Handling
Behavior of Mid-call Re-INVITE Consumption
• The following behavior is for INVITE with REPLACES Header consume scenario:
• CUBE consumes INVITE with REPLACES Header only when the handle-replaces CLI is configured
(under sip-ua or voice-class tenant). In this case, CUBE consumes the INVITE and handles it
locally. It triggers an outbound INVITE without replaces header and call gets connected with agent.
• If the handle-replaces CLI is enabled, the 'transfer-to' party must have the same codec that is used
for the original call setup. If there is a different codec offer, CUBE rejects the INVITE with 488
error.
• If the handle-replaces CLI is not configured, CUBE does not consume the INVITE with REPLACES
Header and the outgoing INVITE holds same replace header which CUBE is received.
• INVITE with REPLACES Header consumption does not support the following configurations:
• Delayed Offer INVITE
• Codec, DTMF attribute changes, and RSVP
• Mid-call Signaling block
• IPv6
• The following table provides the details of the behavior when the initial call is establish without 'sendrecv'
parameter, that means, the initial call is established with 'sendonly', 'recvonly' or 'inactive'.
Scenario Behavior
If an Offer is received with 'sendonly' and mid-call Offer is sent with 'sendrecv'.
block is configured on any or both call legs
If an Answer is received with 'sendonly' and the Answer is sent with 'sendonly'. Resume transaction
peer leg supports mid-call signaling is end-to-end.
If an Answer is received with 'sendonly' and the Answer is sent with 'sendrecv'. Resume transaction
peer leg does not supports mid-call signaling is consumed.
If Offer as well as Answer is received with Answer is sent with 'recvonly'. Resume from
'sendonly' and Offering leg does not support Offering leg is end-to-end. Resume from answering
mid-call signaling leg is consumed.
If Offer as well as Answer is received with Answer is sent with 'inactive'. Resume from
'sendonly' and Answering leg does not support Offering leg is consumed. Resume from answering
mid-call signaling leg is end-to-end.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
864
SIP Protocol Handling
Configuring Passthrough of Mid-call Signalling
Scenario Behavior
If Offer as well as Answer is received with Answer is sent with ' recvonly'. Resume transaction
'sendonly' and both legs do not support mid-call is consumed.
signaling
SUMMARY STEPS
1. enable
2. configure terminal
3. Configure passthrough of mid-call signaling changes only when bidirectional media is added.
• In Global VoIP SIP configuration mode
midcall-signaling passthru media-change
• In dial-peer configuration mode
voice-class sip midcall-signaling passthru media-change
4. end
DETAILED STEPS
Procedure
Step 3 Configure passthrough of mid-call signaling changes only Re-Invites are passed through only when bidirectional media
when bidirectional media is added. is added.
• In Global VoIP SIP configuration mode
midcall-signaling passthru media-change
• In dial-peer configuration mode
voice-class sip midcall-signaling passthru
media-change
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
865
SIP Protocol Handling
Example Configuring Passthrough SIP Messages at Dial Peer Level
Example:
In Dial-peer configuration mode:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip
midcall-signaling passthru media-change
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
866
SIP Protocol Handling
Restrictions for Mid-Call Signaling Block
SUMMARY STEPS
1. enable
2. configure terminal
3. Configure blocking of mid-call signaling changes:
• In Global VoIP SIP configuration mode
midcall-signaling block
• In dial-peer configuration mode
voice-class sip midcall-signaling block
4. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
867
SIP Protocol Handling
Example Blocking SIP Messages at Dial Peer Level
DETAILED STEPS
Procedure
Step 3 Configure blocking of mid-call signaling changes: Mid-call signaling is always blocked.
• In Global VoIP SIP configuration mode
midcall-signaling block
• In dial-peer configuration mode
voice-class sip midcall-signaling block
Example:
In Global VoIP SIP configuration mode:
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# midcall-signaling block
Example:
In Dial-peer configuration mode:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip
midcall-signaling block
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
868
SIP Protocol Handling
Example: Blocking SIP Messages at the Global Level
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following to disable midcall codec renegotiation:
• In Global VoIP SIP configuration mode
midcall-signaling preserve-codec
• In dial-peer configuration mode
voice-class sip midcall-signaling preserve-codec
4. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
869
SIP Protocol Handling
Example: Configuring Mid Call Codec Preservation at the Dial Peer Level
Step 3 Enter one of the following to disable midcall codec Disables codec negotiation in the middle of a call and
renegotiation: preserves the codec negotiated before the call.
• In Global VoIP SIP configuration mode
midcall-signaling preserve-codec
• In dial-peer configuration mode
voice-class sip midcall-signaling preserve-codec
Example:
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# midcall-signaling
preserve-codec
Example:
Device(config)# dial-peer voice 10 voip
Device(conf-dial-peer)# voice-class sip
midcall-signaling preserve-codec
Example: Configuring Mid Call Codec Preservation at the Dial Peer Level
Example: Configuring Mid Call Codec Preservation at the Dial Peer Level
dial-peer voice 107 voip
destination-pattern 74000
session protocol sipv2
session target ipv4:[Link]
incoming called-number 84000
voice-class codec 1 offer-all
!
dial-peer voice 110 voip
destination-pattern 84000
session protocol sipv2
session target ipv4:[Link]
incoming called-number 74000
voice-class codec 1 offer-all
voice-class sip midcall-signaling preserve-codec
!
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
870
SIP Protocol Handling
Example: Configuring Mid Call Codec Preservation at the Global Level
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
871
SIP Protocol Handling
Example: Configuring Mid Call Codec Preservation at the Global Level
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
872
CHAPTER 64
Early Dialog UPDATE Block
This feature enables CUBE to consume UPDATE requests with SDP, received during an early dialog. UPDATE
requests are blocked at CUBE and are not passed through from one leg to the other leg.
If the UPDATE request contains changes in caller-ID, transcoder insertion or deletion, or video escalation or
de-escalation, then, CUBE can renegotiate the capabilities by sending a DO invite after the call is established.
• Feature Information for Early Dialog UPDATE Block, on page 873
• Prerequisites, on page 874
• Restrictions, on page 874
• Information about Early Dialog UPDATE Block, on page 874
• Configuring Early Dialog UPDATE Block, on page 875
• Configuring Early Dialog UPDATE Block Renegotiate, on page 876
• Troubleshooting Tips, on page 877
Early Dialog UPDATE Block Cisco IOS 15.5(3)M This feature allows CUBE to
consume the UPDATE
Cisco IOS XE 3.16S
requests with SDP received
during an early dialog.
The following command is
introduced: early-media
update block.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
873
SIP Protocol Handling
Prerequisites
Prerequisites
• rel1xx require "100rel" command needs to be configured in global voice service voip sip configuration
mode.
Restrictions
• Switch over to fax calls are not supported.
• Session Description Protocol (SDP) passthrough is not supported.
• Alternative Network Address Types (ANAT) is not supported.
'Early Dialog UPDATE Block' and 'Early Dialog UPDATE Block Renegotiate' can be configured at dial peer
level and also at global voice service voip sip configuration level.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
874
SIP Protocol Handling
Configuring Early Dialog UPDATE Block
• When a video escalation is received via UPDATE, CUBE sends 200 OK with video port as ZERO. No
Video RTP or DP sessions are created.
• When a video de-escalation is received via UPDATE, CUBE sends 200 ok with video port as ZERO.
RTP or DP sessions for video are made as INACTIVE instead of deleting. So, effectively there will be
four RTP connections or 2 DP connections present with remote video port as ZERO.
• Early-media UPDATE renegotiation takes precedence over DO-EO renegotiation.
• If an early dialog UPDATE is received from one leg to change the caller-ID and the other leg supports
UPDATE method, CUBE sends across the caller-id UPDATE to other side and there wont be any
renegotiation.
• If Re-Invite is received before triggering DO invite, then DO is not triggered.
• If no update-callerid command is enabled and UPDATE request contains only caller-ID changes, then
re-negotiation does not happen for any early dialog caller-ID changes. If UPDATE request contains
transcoder changes or video escalation or de-escalation, re-negotiation happens even if no update-callerid
command is enabled.
• If mid-call signaling block is configured, DO invite is not triggered.
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands to block early dialog UPDATE requests:
• In the dial-peer configuration mode
voice-class sip early-media update block
• In the global VoIP SIP configuration mode
early media update block
4. end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
875
SIP Protocol Handling
Configuring Early Dialog UPDATE Block Renegotiate
Example:
In global VoIP SIP configuration mode
Step 4 end Exits VoIP SIP configuration mode and enters privileged
EXEC mode.
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands:
• In the dial-peer configuration mode
voice-class sip early-media update block re-negotiate
• In the global VoIP configuration mode
early media update block re-negotiate
4. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
876
SIP Protocol Handling
Troubleshooting Tips
DETAILED STEPS
Procedure
Step 3 Enter one of the following commands: Renegotiates the call if the UPDATE request contains
changes in caller ID, transcoder addition or deletion, or
• In the dial-peer configuration mode
video escalation or de-escalation.
voice-class sip early-media update block
re-negotiate
• In the global VoIP configuration mode
early media update block re-negotiate
Example:
In dial-peer configuration mode
Example:
In global VoIP SIP configuration mode
Step 4 end Exits VoIP SIP configuration mode and enters privileged
EXEC mode.
Troubleshooting Tips
Use the following command for debugging information:
• debug ccsip all
• debug voip ccapi inout
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
877
SIP Protocol Handling
Troubleshooting Tips
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
878
CHAPTER 65
Consumption of Forked 18x Responses with SDP
During Early Dialog
The Cisco Unified Border Element supports consumption of forked 18x responses with SDP, under certain
conditions during an early dialog, to reduce the interoperability issues that arise due to signaling forking.
When CUBE receives forked 18x responses with SDP, the media negotiation by default is end-to-end. This
means that CUBE has to send an UPDATE with SDP on the inbound leg to renegotiate the new media offer.
Under certain conditions, the inbound leg may not be able to support sending UPDATE messages with SDP
for media renegotiation. This results in CUBE consuming the forked 18x responses with SDP and may result
in DSP resources being used for media interworking. Media parameters such as direction change, and call
escalation or de-escalation is not propagated end-to-end. If required, these media changes can be renegotiated
end-to-end, after the calls are connected, using a DO re-INVITE.
• Feature Information for Consumption of Multiple Forked 18x Responses with SDP During Early Dialog,
on page 879
• Prerequisites, on page 880
• Restrictions, on page 880
• Information About Consumption of Forked 18x Responses with SDP During Early Dialog, on page 880
• Configuring Consumption of Forked 18x Responses with SDP During Early Dialog, on page 881
• Configuring Consumption of Forked 18x Responses with SDP During Early Dialog Renegotiate, on page
882
• Troubleshooting Tips, on page 884
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
879
SIP Protocol Handling
Prerequisites
Table 86: Feature Information for Consumption of Multiple Forked 18x Responses with SDP During Early Dialog
Support for Forked 18x Cisco IOS 15.6(3)M This feature allows CUBE to
Responses with SDP during consume multiple forked 18x
Cisco IOS XE Denali 16.3.1
Early Dialog responses with SDP received
during an early dialog.
Prerequisites
• Re-negotiation is triggered only if the renegotiate early media update block re-negotiate CLI is enabled
Restrictions
The following features or call-flows are not supported:
• SIP Delayed-Offer to Delayed-Offer call flows
• Session Description Protocol (SDP) passthrough mode
• Secure Real-Time Transport Protocol (SRTP) passthrough calls
• Alternative Network Address Types (ANAT)
• Media flow-around
• Media anti-trombone
• Early-dialog UPDATE block
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
880
SIP Protocol Handling
Configuring Consumption of Forked 18x Responses with SDP During Early Dialog
• If PRACK and UPDATE are supported and CUBE has to consume the forked 18x responses and initiate
renegotiation after call connect, then the early media update block renegotiate CLI must be enabled
• If mid-call signaling block or mid-call signaling passthrough media changes are configured, DO invite
is not triggered
Note CUBE utilizes the EARLY UPDATE BLOCK functionality to configure the forked 18x responses with SDP
during early dialog. The early media update block command is used to consume the forked 18x responses
and the early media update block renegotiate command is used to renegotiate the forked 18x responses
after the call connect.
Renegotiation (when enabled via configuration) is triggered for the forked 18x responses containing the
following changes:
• DSP Transcoder insertion
• Video escalation or de-escalation
• Media directional changes
Note It is recommended to configure the early media update block re-negotiate command whenever there are
transcoding, DTMF interworking, or video changes.
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands to block the forked 18x responses with SDP during early dialog:
• In the dial-peer configuration mode
voice-class sip early-media update block
• In the global VoIP SIP configuration mode
early media update block
4. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
881
SIP Protocol Handling
Configuring Consumption of Forked 18x Responses with SDP During Early Dialog Renegotiate
DETAILED STEPS
Procedure
Example:
In global VoIP SIP configuration mode
Step 4 end Exits VoIP SIP configuration mode and enters privileged
EXEC mode.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
882
SIP Protocol Handling
Configuring Consumption of Forked 18x Responses with SDP During Early Dialog Renegotiate
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following commands:
• In the dial-peer configuration mode
voice-class sip early-media update block re-negotiate
• In the global VoIP configuration mode
early media update block re-negotiate
4. end
DETAILED STEPS
Procedure
Step 3 Enter one of the following commands: Renegotiates the call if the forked 18x responses with SDP
during early dialog contains changes in transcoder addition,
• In the dial-peer configuration mode
or video escalation or de-escalation.
voice-class sip early-media update block
re-negotiate
• In the global VoIP configuration mode
early media update block re-negotiate
Example:
In dial-peer configuration mode
Example:
In global VoIP SIP configuration mode
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
883
SIP Protocol Handling
Troubleshooting Tips
Step 4 end Exits VoIP SIP configuration mode and enters privileged
EXEC mode.
Troubleshooting Tips
Use the following command for debugging information:
• debug ccsip verbose
• show voip rtp connections detail
• show call active voice brief
• show dspfarm dsp active
• show voice dsmp stream brief
• show platform hardware qfp active feature sbc global
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
884
CHAPTER 66
Support for Pass-Through of Unsupported Content
Types in SIP INFO Messages
This feature allows the CUBE to pass-through all unsupported content types in a SIP INFO message.
• Feature Information, on page 885
• Configure SIP INFO Message with Unsupported Content Type, on page 885
• Information About Pass-Through of Unsupported Content Types in SIP INFO Messages, on page 886
Feature Information
The following table provides release information about the feature or features described in this module. This
table lists only the software release that introduced support for a given feature in a given software release
train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support.
To access Cisco Feature Navigator, go to [Link] An account on [Link] is not required.
Support for Cisco IOS 15.5(3)M This feature allows CUBE to pass-through
pass-through of SIP INFO methods or request message
Cisco IOS XE 3.16S
unsupported content types with unsupported content types.
types in SIP INFO Media negotiation and media exchange is
messages completely end-to-end.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
885
SIP Protocol Handling
Information About Pass-Through of Unsupported Content Types in SIP INFO Messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
886
CHAPTER 67
Support for PAID PPID Privacy PCPID and PAURI
Headers on the Cisco Unified Border Element
The figure below shows a typical network topology where the Cisco Unified Border Element is configured
to route messages between a call manager system (such as the Cisco Unified Call Manager) and a Next
Generation Network (NGN).
Figure 85: Cisco Unified Border Element and Next Generation Topology
Devices that connect to an NGN must comply with the User-Network Interface (UNI) specification. The Cisco
Unified Border Element supports the NGN UNI specification and can be configured to interconnect NGN
with other call manager systems, such us the Cisco Unified Call Manager.
The Cisco Unified Border Element supports the following:
• the use of P-Preferred Identity (PPID), P-Asserted Identity (PAID), Privacy, P-Called Party Identity
(PCPID), in INVITE messages
• the translation of PAID headers to PPID headers and vice versa
• the translation of RPID headers to PAID or PPID headers and vice versa
• the configuration and/or pass through of privacy header values
• the use of the PCPID header to route INVITE messages
• the use of multiple PAURI headers in the response messages (200 OK) it receives to REGISTER messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
887
SIP Protocol Handling
However, some call manager systems, such as Cisco Unified Call Manager 5.0, use the Remote-Party Identity
(RPID) value to send calling party information. Therefore, the Cisco Unified Border Element must support
building the PPID value for an outgoing INVITE message to the NGN, using the RPID value or the From:
value received in the incoming INVITE message. Similarly, CUBE supports building the RPID and/or From:
header values for an outgoing INVITE message to the call manager, using the PAID value received in the
incoming INVITE message from the NGN.
In non-NGN systems, the Cisco Unified Border Element can be configured to translate between PPID and
PAID values, and between From: or RPID values and PAID/PPID values, at global and dial-peer levels.
In configurations where all relevant servers support the PPID or PAID headers, the Cisco Unified Border
Element can be configured to transparently pass the header.
Note If the NGN sets the From: value to anonymous, the PAID is the only value that identifies the caller.
The table below describes the types of INVITE message header translations supported by the Cisco Unified
Border Element. It also includes information on the configuration commands to use to configure P-header
translations.
The table below shows the P-header translation configuration settings only. In addition to configuring these
settings, you must configure other system settings (such as the session protocol).
From: RPID To enable the translation to RPID headers in the outgoing header, use the
remote-party-id command in SIP user-agent configuration mode. For example:
Router(config-sip-ua)# remote-party-id
This is the default system behavior.
Note
If both, remote-party-id and asserted-id commands are configured, then the
asserted-id command takes precedence over the remote-part-id command.
PPID PAID To enable the translation to PAID privacy headers in the outgoing header at a
global level, use the asserted-id pai command in voice service VoIP SIP
configuration mode. For example: Router(conf-serv-sip)# asserted-id pai
To enable the translation to PAID privacy headers in the outgoing header on a
specific dial peer, use the voice-class sip asserted-id pai command in dial peer
voice configuration mode. For example: Router(config-dial-peer)# voice-class
sip asserted-id pai
PPID RPID To enable the translation to RPID headers in the outgoing header, use the
remote-party-id command in SIP user-agent configuration mode. For example:
Router(config-sip-ua)# remote-party-id
This is the default system behavior.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
888
SIP Protocol Handling
PAID PPID To enable the translation to PPID privacy headers in the outgoing header at a
global level, use the asserted-id ppi command in voice service VoIP SIP
configuration mode. For example: Router(conf-serv-sip)# asserted-id ppi
To enable the translation to PPID privacy headers in the outgoing header on a
specific dial peer, use the voice-class sip asserted-id ppi command in dial peer
voice configuration mode. For example: Router(config-dial-peer)# voice-class
sip asserted-id ppi
PAID RPID To enable the translation to RPID headers in the outgoing header, use the
remote-party-id command in SIP user-agent configuration mode. For example:
Router(config-sip-ua)# remote-party-id
This is the default system behavior.
RPID PPID To enable the translation to PPID privacy headers in the outgoing header at a
global level, use the asserted-id ppi command in voice service VoIP SIP
configuration mode. For example: Router(conf-serv-sip)# asserted-id ppi
To enable the translation to PPID privacy headers in the outgoing header on a
specific dial peer, use the voice-class sip asserted-id ppi command in dial peer
voice configuration mode. For example: Router(config-dial-peer)# voice-class
sip asserted-id ppi
RPID PAID To enable the translation to PAID privacy headers in the outgoing header at a
global level, use the asserted-id pai command in voice service VoIP SIP
configuration mode. For example: Router(conf-serv-sip)# asserted-id pai
To enable the translation to PAID privacy headers in the outgoing header on a
specific dial peer, use the voice-class sip asserted-id pai command in dial peer
voice configuration mode. For example: Router(config-dial-peer)# voice-class
sip asserted-id pai
RPID From: By default, the translation to RPID headers is enabled and the system translates
PPID headers in incoming messages to RPID headers in the outgoing messages.
To disable the default behavior and enable the translation from PPID to From:
headers, use the no remote-party-id command in SIP user-agent configuration
mode. For example: Router(config-sip-ua)# no remote-party-id
Note Privacy functions are not initialized on Unified Border Element without configuring asserted-id pai or
asserted-id ppi. Ensure that you configure asserted-id pai or asserted-id ppi to support privacy functions
on Unified Border Element.
The CUBE can be configured to transparently pass the PAID and PPID headers in the incoming and outgoing
Session Initiation Protocol (SIP) requests or response messages from end-to-end.
• Requests include: INVITEs and UPDATEs
• Responses include:18x and 200OK
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
889
SIP Protocol Handling
Note The priority of P-headers are in the following order: PAID, PPID, and RPID.
Table 88: PAID and PPID header configuration settings for mid-call requests and responses
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
890
SIP Protocol Handling
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
891
SIP Protocol Handling
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
892
SIP Protocol Handling
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
893
SIP Protocol Handling
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
894
SIP Protocol Handling
Privacy
If the user is subscribed to a privacy service, the Cisco Unified Border Element can support privacy using
one of the following methods:
• Using prefixes
The NGN dial plan can specify prefixes to enable privacy settings. For example, the dial plan may specify
that if the caller dials a prefix of 184, the calling number is not sent to the called party.
The dial plan may also specify that the caller can choose to send the calling number to the called party by
dialing a prefix of 186. Here, the Cisco Unified Border Element transparently passes the prefix as part of the
called number in the INVITE message.
The actual prefixes for the network are specified in the dial plan for the NGN, and can vary from one NGN
to another.
• Using the Privacy header
If the Privacy header is set to None, the calling number is delivered to the called party. If the Privacy header
is set to a Privacy:id value, the calling number is not delivered to the called party.
• Using Privacy values from the peer call leg
If the incoming INVITE has a Privacy header or a RPID with privacy on, the outgoing INVITE can be set to
Privacy: id. This behavior is enabled by configuring privacy pstn command globally or voice-class sip
privacy pstn command on the selected dial-per.
Incoming INVITE can have multiple privacy header values, id, user, session, and so on. Configure the
privacy-policy passthru command globally or voice-class sip privacy-policy passthru command to
transparently pass across these multiple privacy header values.
Some NGN servers require a Privacy header to be sent even though privacy is not required. In this case the
Privacy header must be set to none. The Cisco Unified Border Element can add a privacy header with the
value None while forwarding the outgoing INVITE to NGN. Configure the privacy-policy send-always
globally or voice-class sip privacy-policy send-always command in dial-peer to enable this behavior.
If the user is not subscribed to a privacy service, the Cisco Unified Border Element can be configured with
no Privacy settings.
Note For the Privacy functions to work as intended, the command asserted-id {pai|ppi} must be configured.
Note The PCPID header supports the use of E.164 numbers only.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
895
SIP Protocol Handling
P-Associated URI
The Cisco Unified Border Element supports the use of PAURI headers sent as part of the registration process.
After the Cisco Unified Border Element sends REGISTER messages using the configured E.164 number, it
receives a 200 OK message with one or more PAURIs. The number in the first PAURI (if present) must match
the contract number. The Cisco Unified Border Element supports a maximum of six PAURIs for each
registration.
Note The Cisco Unified Border Element performs the validation process only when a PAURI is present in the 200
OK response.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
896
SIP Protocol Handling
Feature Information for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border Element
• Prerequisites for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified
Border Element, on page 898
• Restrictions for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border
Element, on page 899
• Configuring P-Header and Random-Contact Support on the Cisco Unified Border Element, on page 899
Table 89: Feature Information for PAID and PPID Headers on Cisco Unified Border Element (CUBE)
PAID and PPID Headers in Cisco IOS 15.5(3)M This feature enables CUBE platforms to
mid-call re-INVITE and support:
Cisco IOS XE 3.16S
UPDATE request and
• P-Preferred Identity (PPID) and
responses on Cisco Unified
P-Asserted Identity (PAID) in mid-call
Border Element
re-INVITE messages and responses from
end-to-end.
• P-Preferred Identity (PPID) and
P-Asserted Identity (PAID) in mid-call
UPDATE messages and responses from
end-to-end.
• Configuration and/or pass through of
PAID and PPID header values.
Feature History Table entry for the Cisco Unified Border Element and Cisco Unified Border Element
(Enterprise).
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
897
SIP Protocol Handling
Prerequisites for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border Element
Table 90: Feature Information for PAID, PPID, Privacy, PCPID, and PAURI Headers on CUBE
PAID, PPID, Privacy, 12.4(22)YB This feature enables CUBE platforms to support:
PCPID, and PAURI 15.0(1)M
• P-Preferred Identity (PPID), P-Asserted Identity (PAID),
Headers on the Cisco
Cisco IOS XE Privacy, P-Called Party Identity (PCPID), in INVITE
Unified Border
Release 3.1S messages
Element
• Translation of PAID headers to PPID headers and vice versa
• Translation of From: or RPID headers to PAID or PPID
headers and vice versa
• Configuration and/or pass through of privacy header values
• PCPID header to route INVITE messages
• Multiple PAURI headers in the response messages (200 OK)
it receives to REGISTER messages
• P-Preferred Identity and P-Asserted Identity Headers
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
898
SIP Protocol Handling
Restrictions for Support for PAID PPID Privacy PCPID and PAURI Headers on the Cisco Unified Border Element
Restrictions for Support for PAID PPID Privacy PCPID and PAURI
Headers on the Cisco Unified Border Element
• To enable random-contact support, you must configure the Cisco Unified Border Element to support SIP
registration with random-contact information. In addition, you must configure random-contact support
in VoIP voice-service configuration mode or on the dial peer.
• If random-contact support is configured for SIP registration only, the system generates the random-contact
information, includes it in the SIP REGISTER message, but does not include it in the SIP INVITE
message.
• If random-contact support is configured in VoIP voice-service configuration mode or on the dial peer
only, no random contact is sent in either the SIP REGISTER or INVITE message.
• Passing of “+" is not supported with PAID PPID Privacy PCPID and PAURI Headers.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. asserted-id header-type
6. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
899
SIP Protocol Handling
Configuring P-Header Translation on an Individual Dial Peer
Router> enable
Router(conf-voi-serv)# sip
Step 5 asserted-id header-type Specifies the type of privacy header in the outgoing SIP
requests and response messages.
Example:
Router(conf-serv-sip)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. voice-class sip asserted-id header-type
5. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
900
SIP Protocol Handling
Configuring P-Called-Party-Id Support on a Cisco Unified Border Element
DETAILED STEPS
Procedure
Router> enable
Step 3 dial-peer voice tag voip Defines the dial peer, specifies the method of voice
encapsulation, and enters dial peer voice configuration
Example:
mode.
Router(config)# dial-peer voice 2611 voip
Step 4 voice-class sip asserted-id header-type Specifies the type of privacy header in the outgoing SIP
requests and response messages, on this dial peer.
Example:
Router(config-dial-peer)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. call-route p-called-party-id
6. random-request-uri validate
7. exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
901
SIP Protocol Handling
Configuring P-Called-Party-Id Support on an Individual Dial Peer
DETAILED STEPS
Procedure
Router> enable
Router(conf-voi-serv)# sip
Step 5 call-route p-called-party-id Enables the routing of calls based on the PCPID header.
Example:
Step 6 random-request-uri validate Enables the validation of the random string in the Request
URI of the incoming INVITE message.
Example:
Router(conf-serv-sip)# exit
SUMMARY STEPS
1. enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
902
SIP Protocol Handling
Configuring Privacy Support on a Cisco Unified Border Element
2. configure terminal
3. dial-peer voice tag voip
4. voice-class sip call-route p-called-party-id
5. voice-class sip random-request-uri validate
6. exit
DETAILED STEPS
Procedure
Router> enable
Step 3 dial-peer voice tag voip Defines the dial peer, specifies the method of voice
encapsulation, and enters dial peer voice configuration
Example:
mode.
Router(config)# dial-peer voice 2611 voip
Step 4 voice-class sip call-route p-called-party-id Enables the routing of calls based on the PCPID header on
this dial peer.
Example:
Step 5 voice-class sip random-request-uri validate Enables the validation of the random string in the Request
URI of the incoming INVITE message on this dial peer.
Example:
Router(config-dial-peer)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
903
SIP Protocol Handling
Configuring Privacy Support on a Cisco Unified Border Element
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. privacy privacy-option
6. privacy-policy privacy-policy-option
7. exit
DETAILED STEPS
Procedure
Router> enable
Router(conf-voi-serv)# sip
Step 5 privacy privacy-option Enables the privacy settings for the header.
Example:
Router(conf-serv-sip)# privacy id
Step 6 privacy-policy privacy-policy-option Specifies the privacy policy to use when passing the privacy
header from one SIP leg to the next.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
904
SIP Protocol Handling
Configuring Privacy Support on an Individual Dial Peer
Router(conf-serv-sip)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. voice-class sip privacy privacy-option
5. voice-class sip privacy-policy privacy-policy-option
6. exit
DETAILED STEPS
Procedure
Router> enable
Step 3 dial-peer voice tag voip Defines the dial peer, specifies the method of voice
encapsulation, and enters dial peer voice configuration
Example:
mode.
Router(config)# dial-peer voice 2611 voip
Step 4 voice-class sip privacy privacy-option Enables the privacy settings for the header on this dial peer.
Example:
Step 5 voice-class sip privacy-policy privacy-policy-option Specifies the privacy policy to use when passing the privacy
header from one SIP leg to the next, on this dial peer.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
905
SIP Protocol Handling
Configuring Random-Contact Support on a Cisco Unified Border Element
Router(config-dial-peer)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. credentials username username password password realm domain-name
5. registrar ipv4: destination-address random-contact expires expiry
6. exit
7. voice service voip
8. sip
9. random-contact
10. exit
DETAILED STEPS
Procedure
Router> enable
Router(config)# sip-ua
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
906
SIP Protocol Handling
Configuring Random-Contact Support for an Individual Dial Peer
Step 5 registrar ipv4: destination-address random-contact Enables the SIP gateways to register E.164 numbers on
expires expiry behalf of analog telephone voice ports (FXS), IP phone
virtual voice ports (EFXS), and Skinny Client Control
Example:
Protocol (SCCP) phones with an external SIP proxy or SIP
registrar.
Router(config-sip-ua)# registrar ipv4:[Link]
random-contact expires 200 • The random-contact keyword configures the Cisco
Unified Border Element to send the random string
from the REGISTER message to the registrar.
Router(config-sip-ua)# exit
Router(conf-voi-serv)# sip
Router(conf-serv-sip)# random-contact
Router(conf-serv-sip)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
907
SIP Protocol Handling
Configuring Random-Contact Support for an Individual Dial Peer
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. credentials username username password password realm domain-name
5. registrar ipv4: destination-address random-contact expires expiry
6. exit
7. dial-peer voice tag voip
8. voice-class sip random-contact
9. exit
DETAILED STEPS
Procedure
Router> enable
Router(config)# sip-ua
Step 4 credentials username username password password Sends a SIP registration message from the Cisco Unified
realm domain-name Border Element.
Example:
Step 5 registrar ipv4: destination-address random-contact Enables the SIP gateways to register E.164 numbers on
expires expiry behalf of FXS, EFXS, and SCCP phones with an external
SIP proxy or SIP registrar.
Example:
• The random-contact keyword configures the Cisco
Router(config-sip-ua)# registrar ipv4:[Link] Unified Border Element to send the random string
random-contact expires 200 from the REGISTER message to the registrar.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
908
SIP Protocol Handling
Configuring Random-Contact Support for an Individual Dial Peer
Router(config-sip-ua)# exit
Step 7 dial-peer voice tag voip Defines the dial peer, specifies the method of voice
encapsulation, and enters dial peer voice configuration
Example:
mode.
Router(config)# dial-peer voice 2611 voip
Step 8 voice-class sip random-contact Enables random-contact support on this dial peer.
Example:
Router(config-dial-peer)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
909
SIP Protocol Handling
Configuring Random-Contact Support for an Individual Dial Peer
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
910
PA R T XVII
SIP Supplementary Services
• Dynamic Refer Handling, on page 913
• Cause Code Mapping, on page 919
CHAPTER 68
Dynamic Refer Handling
When a dial-peer match occurs, CUBE passes the REFER message from an in leg to an out leg. Also, the host
part of the Refer-to header is modified with the IP address.
The Dynamic REFER handling feature provides configurations to pass across or consume the REFER message.
When an endpoint invokes a supplementary service such as a call transfer, the endpoint generates and sends
an in-dialog REFER request towards the Cisco UBE. If the REFER message is consumed, an INVITE is sent
towards refer-to dial-peer
• Feature Information for Dynamic REFER Handling, on page 913
• Prerequisites, on page 914
• Restrictions, on page 914
• Configuring REFER Passthrough with Unmodified Refer-to , on page 914
• Configuring REFER Consumption, on page 916
• Troubleshooting Tips, on page 918
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
913
SIP Supplementary Services
Prerequisites
Prerequisites
• Transcoding configuration is required on the CUBE for midcall transcoder insertion, deletion, or
modification during call transfers.
Restrictions
• Only Session Initiation Protocol (SIP)-to-SIP call transfers are supported.
• Call escalation and de-escalation are not supported.
• Video transcoding is not supported.
• Session Description Protocol (SDP) pass-through is not supported.
• In REFER consume scenario, if TCL script is enabled, then supplementary-service media-renegotiate
command should not be configured.
yes REFER is passed through from the in leg to the out leg
Note This configurations in this task can be overridden by the refer consume command. Refer to the Configuring
REFER Consumption task for more information.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
914
SIP Supplementary Services
Configuring REFER Passthrough with Unmodified Refer-to
SUMMARY STEPS
1. enable
2. configure terminal
3. Configure REFER passthrough:
• supplementary-service sip refer in global VoIP configuration mode.
• supplementary-service sip refer in dial-peer configuration mode.
4. (Optional) Configure unmodified Refer-to:
• referto-passing in Global VoIP SIP configuration mode.
• voice-class sip referto-passing [system] in dial-peer configuration mode.
5. end
DETAILED STEPS
Procedure
Device> enable
Step 3 Configure REFER passthrough: Configures REFER passthrough. A REFER is sent towards
the inbound dial peer
• supplementary-service sip refer in global VoIP
configuration mode.
• supplementary-service sip refer in dial-peer
configuration mode.
Example:
In Global VoIP configuration mode:
Example:
In dial-peer configuration mode:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
915
SIP Supplementary Services
Configuring REFER Consumption
Example:
In dial-peer configuration mode:
Device(config)# dial-peer voice 22 voip
Device(config-dial-peer)# voice-class sip
referto-passing
SUMMARY STEPS
1. enable
2. configure terminal
3. Enter one of the following:
• no supplementary-service sip refer in global VoIP configuration mode.
• no supplementary-service sip refer in dial-peer configuration mode.
4. refer consume in global VoIP configuration mode.
5. (Optional) supplementary-service media-renegotiate in global VoIP configuration mode.
6. (Optional) Enter one of the following:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
916
SIP Supplementary Services
Configuring REFER Consumption
DETAILED STEPS
Procedure
Device> enable
Step 3 Enter one of the following: Configures REFER consumption. An INVITE is sent
towards the Refer-to dial peer.
• no supplementary-service sip refer in global VoIP
configuration mode.
• no supplementary-service sip refer in dial-peer
configuration mode.
Example:
In global VoIP configuration mode:
Example:
In dial-peer configuration mode:
Step 4 refer consume in global VoIP configuration mode. Configures REFER consumption.
Example:
In dial-peer configuration mode:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
917
SIP Supplementary Services
Troubleshooting Tips
Step 6 (Optional) Enter one of the following: To route the INVITE to refer-to host address.
• xfer target in global VoIP configuration mode.
• xfer target in voice class tenant configuration mode.
Example:
In global VoIP configuration mode:
router(config)#sip-ua
router(config-sip-ua)#xfer target refer-to
Example:
In voice class tenant configuration mode:
Router(config)#voice class tenant 1
Router(config-class)#xfer target refer-to
Troubleshooting Tips
Use any of the following debug commands:
• debug ccsip all
• debug voip ccapi inout
• debug sccp messages
• debug voip application supplementary-service
• debug voip application state
• debug voip application media negotiation
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
918
CHAPTER 69
Cause Code Mapping
With the Cause Code Mapping feature, the NOTIFY message sent by CUBE to a Customer Voice Portal
(CVP) contains a proper reason for failure of call transfer based on the information received by CUBE from
the caller instead of a 503 Service Unavailable message for all scenarios.
• Feature Information for Cause Code Mapping, on page 919
• Cause Code Mapping, on page 920
• Configuring Cause Code Mapping, on page 921
• Verifying Cause Code Mapping, on page 922
Cause Code Cisco IOS 15.5(1)T With the Cause Code Mapping feature, the NOTIFY message sent
Mapping by CUBE to a Customer Voice Portal (CVP) contains a proper
Cisco IOS XE 3.14S
reason for failure of call transfer based on the information received
Cisco IOS 15.5(1)T3 by CUBE from the caller. Following are the cause codes supported:
Cisco IOS 15.5(1)S3 • 17—486 Busy Here
Cisco IOS 15.5(2)T1 • 19—503 Service Unavailable
Cisco IOS 15.5(2)S1 • 21—403 Forbidden
Cisco IOS 15.4(3)M4 • 31—480 Temporarily Unavailable
Cisco IOS 15.4(3)S4
• 102—504 Server Time-out
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
919
SIP Supplementary Services
Cause Code Mapping
Cause Code Cisco IOS 15.6(1)T With the Cause Code Mapping (Enhancement) feature, additional
Mapping NOTIFY messages are introduced to inform CVP the proper reason
(Enhancement) for call failures based on the information received by CUBE from
the caller instead of a 503 Service Unavailable message for all
scenarios.
The following cause codes were introduced:
• 1—404 Not Found
• 20—480 Temporarily Unavailable
• 27—502 Bad Gateway
• 28—484 Address Incomplete
• 38—503 Service Unavailable
Previously, the NOTIFY message sent in step 4 included a 503 Service Unavailable message irrespective of
the reason for failure of call transfer in step 3.
With the Cause Code Mapping feature, the NOTIFY message contains proper reason for failure of call transfer
so that the CVP can take an appropriate action.
Status Message received by CUBE Cause Code Notify message sent to CVP
(Step 3) (Step 4)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
920
SIP Supplementary Services
Configuring Cause Code Mapping
Status Message received by CUBE Cause Code Notify message sent to CVP
(Step 3) (Step 4)
Note Cause code mappings for cause code 19 and 21 require configurations mentioned in Configuring Cause Code
Mapping, on page 921.
Note This mapping is only for the REFER consume scenario and not for REFER passthrough.
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
921
SIP Supplementary Services
Verifying Cause Code Mapping
Device> enable
Device(config)# sip-ua
Step 4 reason-header override Configures the sending of a proper reason for failure of call
transfer in the NOTIFY message so that the Customer Voice
Example:
Portal (CVP) can take an appropriate action.
Device(config-sip-ua)# reason-header override
Device(config-sip-ua)# end
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
922
SIP Supplementary Services
Verifying Cause Code Mapping
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
923
SIP Supplementary Services
Verifying Cause Code Mapping
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
924
PA R T XVIII
Hosted and Cloud Services
• Hosted and Cloud Services Delivery with CUBE, on page 927
• CUBE SIP Registration Proxy, on page 929
• Survivability for Hosted and Cloud Services, on page 945
• SUBSCRIBE-NOTIFY Passthrough, on page 965
CHAPTER 70
Hosted and Cloud Services Delivery with CUBE
Cisco Unified Border Element (CUBE) delivers hosted and cloud based communication services at customer
sites by managing registration traffic and ensuring uninterrupted service, when the remote call control platform
becomes unreachable.
Figure 87: Cisco UBE in Hosted and Cloud Services
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
927
Hosted and Cloud Services
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
928
CHAPTER 71
CUBE SIP Registration Proxy
The CUBE SIP Registration Proxy feature allows service providers to control the flow of registration messages
between a customer's private network and their hosted communications platform.
By controlling routine registration traffic at the customer site, service providers can ensure service availability
to local endpoints, while protecting core services from high message loads
• Registration Pass-Through Modes, on page 929
• Registration Overload Protection, on page 932
• Registration Rate-limiting, on page 932
• Prerequisites for SIP Registration Proxy on Cisco UBE, on page 933
• Restrictions, on page 933
• Configuring CUBE SIP Registration Proxy, on page 933
• Configuration Example—CUBE SIP Registration Proxy, on page 943
• Feature Information for CUBE SIP Registration Proxy, on page 943
End-to-End Mode
In the end-to-end mode, Cisco UBE collects the registrar details from the Uniform Resource Identifier (URI)
and passes the registration messages to the registrar. The registration information contains the expiry time for
rate-limiting, the challenge information from the registrar, and the challenge response from the user.
Cisco UBE also passes the challenge to the user if the register request is challenged by the registrar. The
registrar sends the 401 or 407 message to the user requesting for user credentials. This process is known as
challenge.
Cisco UBE ignores the local registrar and authentication configuration in the end-to-end mode. It passes the
authorization headers to the registrar without the header configuration.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
929
Hosted and Cloud Services
Peer-to-Peer Mode
Peer-to-Peer Mode
In the peer-to-peer registration pass-through mode, the outgoing register request uses the registrar details from
the local Cisco UBE configuration. Cisco UBE answers the challenges received from the registrar using the
configurable authentication information. Cisco UBE can also challenge the incoming register requests and
authenticate the requests before forwarding them to the network.
In this mode, Cisco UBE sends a register request to the registrar and also handles register request challenges.
That is, if the registration request is challenged by the registrar (registrar sends 401 or 407 message), Cisco
UBE forwards the challenge to the user and then passes the challenge response sent by the user to the registrar.
In the peer-to-peer mode, Cisco UBE can use the authentication command to calculate the authorization
header and then challenge the user depending on the configuration.
Note The registrar command must be configured in peer-to-peer mode. Otherwise, the register request is rejected
with the 503 response message.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
930
Hosted and Cloud Services
Registration in Different Registrar Modes
Primary-Secondary Mode
In the primary-secondary mode the register message is sent to both the primary and the secondary registrar
servers simultaneously.
The register message is processed as follows:
• The first successful response is passed to the phone as a SUCCESS message.
• All challenges to the request are handled by Cisco UBE.
• If the final response received from the primary and the secondary servers is an error response, the error
response that arrives later from the primary or the secondary server is passed to the phone.
• If only one registrar is configured, a direct mapping is performed between the primary and the secondary
server.
• If no registrar is configured, or if there is a Domain Name System (DNS) failure, the "503 service not
available" message is sent to the phone.
DHCP Mode
In the DHCP mode the register message is sent to the registrar server using DHCP.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
931
Hosted and Cloud Services
Registration Overload Protection
The registration overload protection functionality protects the network from the following:
• Avalanche Restart--All the devices in the network restart at the same time.
• Component Failures--Sudden burst of load is routed through the device due to a device failure.
Note The call flow for the DNS query on the Out Leg is the same for the end-to-end and peer-to-peer mode.
Registration Rate-limiting
The registration rate-limiting functionality enables you to configure different SIP registration pass-through
rate-limiting options. The rate-limiting options include setting the expiry time and the fail count value for a
Cisco UBE. You can configure the expiry time to reduce the load on the registrar and the network. Cisco UBE
limits the reregistration rate by maintaining two different timers--in-registration timer and out-registration
timer.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
932
Hosted and Cloud Services
Registration Rate-limiting Success--Call Flow
The initial registration is triggered based on the incoming register request. The expiry value for the outgoing
register is selected based on the Cisco UBE configuration. On receiving the 200 OK message (response to
the BYE message) from the registrar, a timer is started using the expiry value available in the 200 OK message.
The timer value in the 200 OK message is called the out-registration timer. The success response is forwarded
to the user. The expiry value is taken from the register request and the timer is started accordingly. This timer
is called the in-registration timer. There must be a significant difference between the in-registration timer and
the out-registration timer values for effective rate-limiting.
Restrictions
• IPv6 support is not provided.
SUMMARY STEPS
1. enable
2. configure terminal
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
933
Hosted and Cloud Services
Enabling Local SIP Registrar
DETAILED STEPS
Procedure
Device> enable
Device(conf-voi-serv)# sip
Step 5 registrar server [expires [max value] [min value]] Enables the local SIP registrar.
Example: • Optionally you can configure the expiry time of the
registrar using the following keywords:
Device(conf-serv-sip)# registrar server
• expires--Configures the registration expiry time.
• max--Configures the maximum registration
expiry time.
• min--Configures the minimum registration expiry
time.
Note
The registrar command must be configured in peer-to-peer
mode. Otherwise, the register request is rejected with the
503 response message.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
934
Hosted and Cloud Services
Configuring SIP Registration Proxy at the Global Level
Device(conf-serv-sip)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. registration passthrough [system | [static | dynamic [ local-fallback value] ] [rate-limit [expires
value] [fail-count value]] [reg-sync value] [registrar-index index]]
6. end
DETAILED STEPS
Procedure
Device> enable
Device(conf-voi-serv)# sip
Step 5 registration passthrough [system | [static | dynamic [ Configures the SIP registration pass-through options.
local-fallback value] ] [rate-limit [expires value]
• You can specify different SIP registration pass-through
[fail-count value]] [reg-sync value] [registrar-index
options using the following keywords:
index]]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
935
Hosted and Cloud Services
Configuring SIP Registration Proxy at the Tenant Level
Device(conf-serv-sip)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
936
Hosted and Cloud Services
Configuring SIP Registration Proxy at the Tenant Level
DETAILED STEPS
Procedure
Device> enable
Step 3 voice class tenant tag Enters the tenant configuration mode.
Example:
Step 5 registration passthrough [system | [static | dynamic [ Configures SIP registration pass-through options on a dial
local-fallback value] ] [rate-limit [expires value] peer on a dial peer.
[fail-count value]] [reg-sync value] [registrar-index
• You can specify different SIP registration pass-through
index]]
options using the following keywords:
Example:
• dynamic—SIP Registration uses the dynamic
registrar details (default).
Device(config-class)# registration passthrough
static
• local-fallback—Configures Local Fallback -
(e2e).
• rate-limit—Enables rate-limiting.
• reg-sync—Sends REGISTER messages when
registrar up (p2p).
• registrar-index—Configures a list of registrars
to be used for registration. For detailed
information, see Configuring Multiple Registrars
on SIP Trunks.
• static—SIP Registration Use static Registrar
Details.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
937
Hosted and Cloud Services
Configuring SIP Registration Proxy at the Dial Peer Level
Device(config-class)# exit
Step 7 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 8 voice-class sip tenant tag Associates the dial-peer with the tenant.
Example:
Device(config-class)# exit
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. voice-class sip registration passthrough [system | [static | dynamic [ local-fallback value] ] [rate-limit
[expires value] [fail-count value]] [reg-sync value] [registrar-index index]]
5. exit
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
938
Hosted and Cloud Services
Configuring Registration Overload Protection Functionality
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 4 voice-class sip registration passthrough [system | [static Configures SIP registration pass-through options on a dial
| dynamic [ local-fallback value] ] [rate-limit [expires peer on a dial peer.
value] [fail-count value]] [reg-sync value] [registrar-index
• You can specify different SIP registration pass-through
index]]
options using the following keywords:
Example:
• dynamic—SIP Registration uses the dynamic
registrar details (default).
Device(config-dial-peer)# voice-class sip
registration passthrough static
• local-fallback—Configures Local Fallback -
(e2e).
• rate-limit—Enables rate-limiting.
• reg-sync—Sends REGISTER messages when
registrar up (p2p).
• registrar-index—Configures a list of registrars
to be used for registration. For detailed
information, see Configuring Multiple Registrars
on SIP Trunks.
• static—SIP Registration Use static Registrar
Details.
• system—Use system registration passthrough
configuration.
Step 5 exit Exits dial peer voice configuration mode and returns to
global configuration mode.
Example:
Device(config-dial-peer)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
939
Hosted and Cloud Services
Configuring Cisco UBE to Route a Call to the Registrar Endpoint
SUMMARY STEPS
1. enable
2. configure terminal
3. sip-ua
4. registration spike max-number
5. end
DETAILED STEPS
Procedure
Device> enable
Device(config)# sip-ua
Device(config-sip-ua)# end
Note You must perform this configuration on a dial peer that is pointing towards the endpoint.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
940
Hosted and Cloud Services
Verifying the SIP Registration on Cisco UBE
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag {pots | voatm | vofr | voip}
4. session target registrar
5. exit
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag {pots | voatm | vofr | voip} Enters dial peer voice configuration mode.
Example:
Step 4 session target registrar Configures Cisco UBE to route the call to the registrar
endpoint.
Example:
Step 5 exit Exits dial peer voice configuration mode and returns to
global configuration mode.
Example:
Device(config-dial-peer)# exit
SUMMARY STEPS
1. enable
2. show sip-ua registration passthrough status
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
941
Hosted and Cloud Services
Verifying the SIP Registration on Cisco UBE
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
The following section will be added to the "Examples" section of the SIP to SIP chapter.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
942
Hosted and Cloud Services
Configuration Example—CUBE SIP Registration Proxy
Support for CUBE Cisco IOS XE CUBE SIP Registration Proxy supports sending outbound registrations
SIP Registration Fuji 16.9.1 from CUBE based on incoming registrations. This feature enables
Proxy direct registration of SIP endpoints with the SIP registrar in hosted
Unified Communications deployments. This feature also provides
various benefits for handling CUBE deployments with no IPPBX
support.
The following commands were introduced or modified:
authentication (dial peer), registrar server, registration
passthrough, registration spike, show sip-ua registration
passthrough status, voice-class sip registration passthrough static
rate-limit.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
943
Hosted and Cloud Services
Feature Information for CUBE SIP Registration Proxy
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
944
CHAPTER 72
Survivability for Hosted and Cloud Services
The Survivability for Hosted and Cloud Services on the CUBE is used to:
• Monitor the WAN status periodically from the CUBE.
• Route calls and handle line-side subscriptions locally when the WAN link is down.
• Synchronize the registrations with the server when the WAN link is up.
• Information About Survivability for Hosted and Cloud Services, on page 945
• How to Configure Survivability for Hosted and Cloud Services, on page 950
• Configuration Examples—Survivability for Hosted and Cloud Services , on page 962
• Feature Information for Survivability for Hosted and Cloud Services, on page 964
Local Fallback
• CUBE does not need to configure credentials, as the phones trigger registration. Although CUBE receives
REGISTER messages for each phone every 5 minutes; for example, it throttles and sends REGISTER
messages every 1 hour to the registrar server, avoiding high WAN bandwidth usage. This addresses the
issues 1, 2, and 3.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
945
Hosted and Cloud Services
Registration Synchronization
• In normal operation when the WAN link or registrar server is up, the phone’s primary server URL is the
registrar server (E2E) registration.
• "OPTIONS ping" is used to monitor the registrar server link status. When the detected link is down,
CUBE replies with a 500 message and when the phone receives this message, it sends the REGISTER
message to CUBE, which is the secondary server (P2P registration). CUBE replies with a 200 OK message
to P2P registration when the link is down. The dial-peer keeps the dynamic registrar session target and
the local call does not fail. This addresses issue 4.
Registration Synchronization
• If you configure the phones to send REGISTER messages every 1 hour (to help alleviate the WAN link),
the CUBE uses the credentials that were configured to respond to registrar server authentication challenge.
This addresses issue 3.
• When the WAN link or registration server is down (detected by OPTIONS ping), the CUBE keeps the
registration database of the SIP phones that were previously registered successfully, and it does not send
REGISTER messages out; CUBE replies with a 200 OK message and dial-peer keeps the dynamic
registrar session target. The local call does not fail, addressing issue 4.
• When the registrar link is up after a link flap, the CUBE sends REGISTER message for each phone that
was earlier successfully registered to the registrar server. This is throttled to avoid bulk REGISTER
messages flooding WAN link and the registrar. This addresses issues 1 and 2.
The addresses-of-record (AOR) sent in the REGISTER is an alias which is mapped to an extension and (or)
phone number by the service provider. The service provider returns the mapping details in the 200 OK response
sent to the REGISTER. CUBE has the ability to cache the alias mapping details in its call routing database.
When a call is made from the phone, the Request-URI of the INVITE contains the dialed number (short
extension or phone number).
If WAN is up, CUBE always routes the INVITE sent from the phone to the service provider without looking
up at the alias mapping cache.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
946
Hosted and Cloud Services
CUBE when WAN is UP
If WAN or the service provider is down, that is, in survivability mode, CUBE routes the INVITE locally by
looking up at the alias mapping cache.
2. The short extension or phone number is embedded in the AOR of the REGISTER. For example, AOR is
alice10000189_1111 and the short extension is 1111.
An inbound sip profile can be applied to the REGISTER which extracts the extension part from the AOR and
adds an X-CISCO-EXTENSION header.
The call flow scenario is as follows: Phone A initiates a call to the Phone B registered to the same server.
1. Phone A sends an initial INVITE request to Phone B to participate in a call session through CUBE.
2. CUBE sends this INVITE to the service provider.
3. The service provider in turn sends the INVITE to CUBE. Since the WAN link is up, the service provider
maps details of the user from the register server and provides details of the user, for example, alias of the
user, short extension number, and phone number.
4. CUBE sends INVITE with all the above mentioned information to Phone B.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
947
Hosted and Cloud Services
Example: Normal Mode (WAN is Up in P2P Mode)
Earlier, when WAN was down, User A could only contact User B using either the alias or the user-id of User
B, and not using their extensions or phone numbers.
Now, in the event the WAN link or registration server is down, when a local call is made, INVITE is sent to
CUBE. CUBE maps the details of the user like the extension number and phone-number stored during
registration. Local phones can now be reached on their short extensions or phone numbers by similar phones
that are subscribed to the server through the same CUBE.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
948
Hosted and Cloud Services
Example: Survivability Mode in P2P (regsync mode) when WAN is Down
It is possible to register multiple contacts for a single AOR; however, if multiple contacts are registered for
a single subscriber, the CUBE uses only the topmost registered contact to deliver the call to that subscriber.
For this reason, multiple contacts are not supported.
A few phone models, such as, Cisco IP Phone 7800 Series with Multiplatform Firmware and Cisco IP Phone
8800 Series with Multiplatform Firmware, sends register request to primary registrar only and do not send
secondary REGISTER request to the secondary registrar (CUBE) in E2E mode when primary registrar could
not be reached. In such scenarios, phone service goes down after it receives 500 response from CUBE for
REGISTER request toward primary registrar.
To avoid phones getting into such error condition, CUBE checks for the response from the primary registrar
side. When CUBE receives request timeout on WAN side or responses other than 200, 4XX, and 3XX from
primary registrar, survivability will be enabled.
To enable survivability on such phones, refer Configuring Survivability for Phones Sending Single Register
Request, on page 953.
Survivability Support for Public Switched Telephone Network Access When WAN Is Down
If WAN link going down or registrar service unavailable, you can access the phones in the Public Switched
Telephone Network (PSTN) through FXO or PRI cards that are configured on Cisco Unified Border Element.
Note Survivability support for Public Switched Telephone Network (PSTN) access is supported only for CUBE
running on Cisco 4000 Series Integrated Services Router.
Figure 91: Survivability Support for PSTN Access When WAN Is Down
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
949
Hosted and Cloud Services
Example: Survivability Mode in E2E (local fallback mode) when WAN is Down
Example: Survivability Mode in E2E (local fallback mode) when WAN is Down
CUBE# show sip-ua registration passthrough status
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice service voip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
950
Hosted and Cloud Services
Configuring Local Fallback or Registration Synchronization at the Tenant Level
Step 5 registration passthrough local-fallback tag Configures SIP registration passthrough for local fallback
mode; this will locally respond to REGISTER in p2p mode
Example:
when WAN is down. The tag is the WAN link or registrar
Device(conf-serv-sip)# registration passthrough server dial-peer tag.
local-fallback 10
• To configure the registration sync mode, you can use
the registration passthrough reg-sync tag command.
Use the static keyword to set the phone URL to p2p
registration.
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
951
Hosted and Cloud Services
Configuring Local Fallback or Registration Synchronization on a Dial Peer
Step 3 voice class tenant tag Enters voice class tenant configuration mode.
Example:
Device(config)# voice class tenant 1
Step 4 registration passthrough local-fallback tag Configures SIP registration passthrough for local fallback
mode; this locally responds to REGISTER in p2p mode
Example:
when WAN is down. The tag is the WAN link or registrar
Device(config-class)# registration passthrough server dial-peer tag.
local-fallback 10
• To configure the registration sync mode, you can use
the registration passthrough reg-sync tag command.
Use the static keyword to set the phone URL to p2p
registration.
Device(config-class)# exit
Step 6 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Step 7 voice-class sip tenant tag Associates the dial-peer with the tenant.
Example:
Device(config-class)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
952
Hosted and Cloud Services
Configuring Survivability for Phones Sending Single Register Request
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer VoIP configuration mode.
Example:
Device(config)# dial-peer voice 4 voip
Step 4 voice-class sip registration passthrough local-fallback Configures SIP registration passthrough for local fallback
tag mode; this will locally respond to REGISTER in p2p mode
when WAN is down. The tag is the WAN link or registrar
Example:
server dial-peer tag.
Device(config-dial-peer)# voice-class sip
registration passthrough local-fallback 10 • To configure the registration sync mode, you can use
the voice-class sip registration passthrough reg-sync
tag command.
SUMMARY STEPS
1. enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
953
Hosted and Cloud Services
Configuring Survivability for Phones Sending Single Register Request
2. configure terminal
3. voice service voip
4. sip
5. survivability single-register
6. end
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice service voip
Step 5 survivability single-register Enables CUBE to always check for the response from the
remote side. Request timeout on WAN side or response
Example:
other than 200, 4XX, and 3XX received by CUBE from
Device(conf-serv-sip)# survivability SBC enables the survivability.
single-register
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
954
Hosted and Cloud Services
Configuring OPTIONS Ping
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer configuration mode.
Example:
Device(config)# dial-peer voice 3 voip
Step 4 voice-class sip options-keepalive up-interval value Configures OPTIONS keepalive timer interval for DOWN
down-interval value and UP endpoints.
Example:
Device(config-dial-peer)# voice-class sip
options-keepalive up-interval 120 down-interval
120
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
955
Hosted and Cloud Services
Configuring Registration Timer
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. registrar server expires max value min value
6. end
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice service voip
Step 5 registrar server expires max value min value Configures the maximum and minimum time (in seconds)
for the registration expiry in CUBE.
Example:
Device(conf-serv-sip)# registrar server expires • If the phone sends expiry time as 600 seconds, then
max 300 min 200 the CUBE will reply with 200 OK message and expiry
time 300 seconds, and the phone will resend with
expiry 300.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
956
Hosted and Cloud Services
Configuring the REGISTER Message Throttling in CUBE
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. sip
5. registration passthrough rate-limit expires value local-fallback tag
6. end
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice service voip
Step 5 registration passthrough rate-limit expires value Configures the SIP registration passthrough rate-limit expiry
local-fallback tag value for local-fallback (e2e). Although CUBE receives the
REGISTER message every 5 minutes (300 seconds), it will
Example:
send only one register message every one hour.
Device(conf-serv-sip)# registration passthrough
rate-limit expires 3600 local-fallback 3 • Under dial peer configuration mode, you can use the
voice-class sip registration passthrough rate-limit
expires value reg-sync dial-peer-tag command.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
957
Hosted and Cloud Services
Configuring the Class of Restrictions (COR) List
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. corlist incoming dial-peer
5. corlist outgoing dial-peer
6. description string
7. destination-pattern number
8. session protocol sipv2
9. session target registrar
10. voice-class sip registration passthrough local-fallback tag
11. end
DETAILED STEPS
Procedure
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
958
Hosted and Cloud Services
Configuring the Class of Restrictions (COR) List
Step 3 dial-peer voice tag voip Enters dial peer configuration mode.
Example:
Device(config)# dial-peer voice 3 voip
Step 4 corlist incoming dial-peer Specifes the COR to be applied on an incoming dial peer
(for incoming calls).
Example:
Device(config-dial-peer)# corlist incoming
FromPhone
Step 5 corlist outgoing dial-peer Specifes the COR to be applied for outgoing dial peer (for
outgoing calls).
Example:
Device(config-dial-peer)# corlist outgoing FromSP
Step 7 destination-pattern number Specifies either the prefix or the full E.164 phone number
to be used for the dial peer.
Example:
Device(config-dial-peer)# destination-pattern 1111
Step 8 session protocol sipv2 Specifies the session protocol for SIP calls between local
and remote devices using the packet network.
Example:
Device(config-dial-peer)# session protocol sipv2
Step 9 session target registrar Specifies to route the call to the registrar endpoint for SIP
dial peers.
Example:
Device(config-dial-peer)# session target registrar
Step 10 voice-class sip registration passthrough local-fallback Configures SIP registration passthrough for local fallback
tag mode.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
959
Hosted and Cloud Services
Verifying Survivability for Hosted and Cloud Services
SUMMARY STEPS
1. enable
2. show dial-peer voice summary
3. show sip-ua registration passthrough status
4. show sip-ua register status
5. show voip rtp connections
6. show call active voice compact
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
960
Hosted and Cloud Services
Verifying Survivability for Hosted and Cloud Services
Ports
Ports Ports
Media-Address Range Available
Reserved In-use
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
961
Hosted and Cloud Services
Configuration Examples—Survivability for Hosted and Cloud Services
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# registration passthrough local-fallback 10
Device(config-serv-sip)# end
Device>enable
Device#configure terminal
Device(config)#voice class tenant 1
Device(config-class)#registration passthrough local-fallback 10
Device(config-class)#exit
Device(config)#dial-peer voice 444 voip
Device(config-dial-peer)#voice-class sip tenant 1
Device(config-class)# exit
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# voice-class sip registration passthrough local-fallback 10
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
962
Hosted and Cloud Services
Example: Configuring Survivability for Phones Sending Single Register Request
Example:ConfiguringSurvivabilityforPhonesSendingSingleRegisterRequest
In the following example, survivability is configured for phones sending single register request:
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# survivability single-register
Device(config-serv-sip)# end
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 3 voip
Device(config-dial-peer)# voice-class sip options-keepalive up-interval 120 down-interval
120
Device(config-dial-peer)# end
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# registrar server expires max 300 min 200
Device(conf-serv-sip)# end
Device>enable
Device#configure terminal
Device(config)#voice service voip
Device(conf-voi-serv)#sip
Device(conf-serv-sip)#registration passthrough rate-limit expires 3600 local-fallback 3
Device(conf-serv-sip)#end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
963
Hosted and Cloud Services
Example: Configuring the COR List
Device>enable
Device# configure terminal
Device(config)#dial-peer cor list FromPhone
Device(config-dp-corlist)#member 911
Device(config-dp-corlist)#member 1800
Device(config)#dial-peer cor list FromSP
Device(config-dp-corlist)#member 911
Device(config-dp-corlist)#member 1800
Device(config-dp-corlist)#exit
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# corlist incoming FromPhone
Device(config-dial-peer)# corlist outgoing FromSP
Device(config-dial-peer)# description registration
Device(config-dial-peer)# destination-pattern 1111
Device(config-dial-peer)# session protocol sipv2
Device(config-dial-peer)# session target registrar
Device(config-dial-peer)# voice-class sip registration passthrough local-fallback 5
Device(config-dial-peer)# end
Table 96: Feature Information for Survivability for Hosted and Cloud Services
Survivability for Hosted and Cloud Cisco IOS XE Fuji 16.9.1 Supports survivability for Hosted and Cloud
Services Services.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
964
CHAPTER 73
SUBSCRIBE-NOTIFY Passthrough
The SUBSCRIBE-NOTIFY mechanism is used for implementation of features such as Message Waiting
Indication (MWI), Shared Call Appearance, Multiple Caller Appearance, Busy Lamp Field, and so on.
In CUBE, the SUBSCRIBE-NOTIFY framework on Unified Communications (UC) products supports the
following:
• Configurable and Selective Passthrough of SUBSCRIBE and NOTIFY transactions from phones with
the normalization that is required for address or topology hiding and dialog content updates for “dialog”
event subscription.
• Survivability mode handling of incoming SUBSCRIBE request for critical events.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
965
Hosted and Cloud Services
Information About SUBSCRIBE-NOTIFY Passthrough
• Local subscribe handling of unsupported events when the remote registrar is unavailable. Local
subscribe handling is only applicable to cases where the inbound dial-peer matching the subscribe
has registration passthrough enabled with “local-fallback.”
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
966
Hosted and Cloud Services
SUBSCRIBE-NOTIFY Passthrough Survivability Mode
• First Pass: Outbound dial-peer match—An outbound VoIP dial-peer is first matched based on the request
headers (From, To, and Via), the Subscriber Number (userid in the To header), and the incoming dial-peer
Class of Restrictions (CoR) if any. If there is a match, the request is routed to the session target.
• Second Pass: Configured registrar for registration passthrough in peer-to-peer mode—If no outbound
dial-peer is found and the incoming dial-peer has registration passthrough enabled in static (peer-to-peer)
mode with a single registrar configured, then the request is routed to the registrar address.
• Third Pass: Configured registrar for registration passthrough in end-to-end mode—If no outbound
dial-peer is found and the incoming dial-peer has registration passthrough enabled in dynamic (end-to-end)
mode:
• If the request Uniform Resource Identifier (URI) has the CUBE IP address, the request is routed to
the configured registrar if only a single registrar is configured.
• If the request URI has a non-CUBE IP address, then the request is routed to that IP address.
• Fourth Pass: Request URI-based routing—If no outbound dial-peer is found and no registration passthrough
is configured, the request URI is used to route the request if it does not point to the CUBE’s IP address.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
967
Hosted and Cloud Services
Configuring SUBSCRIBE-NOTIFY Event Passthrough Globally
DETAILED STEPS
Procedure
Device> enable
Step 3 voice class sip-event number Enters voice class configuration mode and configures the
list of events to be passed through.
Example:
Device(config)# voice class sip-event 1
Step 4 event name Adds the name of the event to be added to the event list.
Example:
Device(config-class)# event message-summary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
968
Hosted and Cloud Services
Configuring SUBSCRIBE-NOTIFY Event Passthrough at the Dial-Peer Level
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice class voip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
969
Hosted and Cloud Services
Verifying SUBSCRIBE-NOTIFY Passthrough
DETAILED STEPS
Procedure
Device> enable
Step 3 dial-peer voice tag voip Enters dial peer voice configuration mode.
Example:
Device(config)# dial-peer voice 123 voip
Step 4 voice-class sip pass-thru subscribe-notify-events tag Configures SUBSCRIBE-NOTIFY passthrough event with
the SIP event list tag number to be linked globally.
Example:
Device(config-dial-peer)# voice-class sip pass-thru • You can use the voice-class sip pass-thru
subscribe-notify-events 1 subscribe-notify-events all command to configure
passthrough for all SUBSCRIBE-NOTIFY events.
SUMMARY STEPS
1. enable
2. show dial-peer voice number | inc pass
3. show subscription asnl session active
4. show subscription sip
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
970
Hosted and Cloud Services
Verifying SUBSCRIBE-NOTIFY Passthrough
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
971
Hosted and Cloud Services
Troubleshooting Tips
Troubleshooting Tips
Use the following commands to troubleshoot SUBSCRIBE-NOTIFY Passthrough:
• debug mpa events
• debug mpa error
• debug ccsip messages
• debug asnl events
• debug asnl error
• debug ccsip all
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
972
Hosted and Cloud Services
Example: Configuring SUBSCRIBE-NOTIFY Event Passthrough Globally
Device> enable
Device# configure terminal
Device(config)# voice class sip-event-list 1
Device(config-class)# event 1 message-summary
Device(config-class)# end
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# sip
Device(conf-serv-sip)# pass-thru subscribe-notify-events 1
Device(conf-serv-sip)# end
Device> enable
Device# configure terminal
Device(config)# dial-peer voice 123 voip
Device(config-dial-peer)# voice-class sip pass-thru subscribe-notify-events 1
Device(config-dial-peer)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
973
Hosted and Cloud Services
Feature Information for SUBSCRIBE-NOTIFY Passthrough
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
974
PA R T XIX
Cisco Unified Communications Manager
Line-Side Support
• Cisco Unified Communications Manager Line-Side Support , on page 977
CHAPTER 74
Cisco Unified Communications Manager
Line-Side Support
Note The Cisco Unified Communications Manager (Unified Communications Manager) Lineside feature is no
longer supported. The feature is deprecated for Cisco Unified Border Element on Cisco IOS 15.5(2)T Release
and later releases. To support this feature, you must configure Cisco Unified Border Element on Cisco IOS
15.4(2)T or prior releases.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
977
Cisco Unified Communications Manager Line-Side Support
Restrictions for Cisco Unified Communications Manager Line-Side Support
Table 98: Feature Information for Cisco Unified Communications Manager Line-Side Support
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
978
Cisco Unified Communications Manager Line-Side Support
Information About Cisco Unified Communications Manager Line-Side Support
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
979
Cisco Unified Communications Manager Line-Side Support
Line-Side Support for CUCM on CUBE
When Line Side Support for CUCM on CUBE feature is configured, the following supported, nonmandatory
headers are passed through automatically without the need for further configuration:
• Call-Info
• Content-ID
• Allow-Events
• Supported
• Remote-Party-ID
• Require
• Referred-By
Figure 93: Predefined Supported NonMandatory Headers
When Line Side Support for CUCM on CUBE is configured, predefined SIP profiles automatically remove
the Cisco-Guide header from the outgoing INVITE.
Figure 94: Predefined SIP Profile
Note If a user explicitly configures the above configurations, ensure that the configurations are merged with the
above automatic configurations.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
980
Cisco Unified Communications Manager Line-Side Support
Configuring a PKI Trustpoint
DETAILED STEPS
Procedure
Step 2 crypto pki trustpoint name Declares the trustpoint that the device should use and enters
ca-trustpoint configuration mode.
Example:
Step 4 subject-name [x.500-name] Specifies the subject name in the certificate request.
Example:
Device(config-ca-trustpoint)# subject-name
CN=ASR1006-CCN-4
Step 5 subject-alt-name sip-security-profile-name Specifies the alternative subject name in the certificate
request.
Example:
• Use the subject-alt-name command only when Cisco
Device(config-ca-trustpoint)# subject-alt-name UBE is interacting with CUCM in secure mode.
6961_SEC.[Link] 8941_SEC.[Link]
• The value of subject-alt-name must be the SIP
8945_SEC.[Link] 7975_SEC.[Link]
7970_SEC.[Link] security profile name under CUCM.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
981
Cisco Unified Communications Manager Line-Side Support
Importing the CUCM and CAPF Key
Step 7 rsakeypair key-label Specifies which RSA keypair to associate with the
certificate.
Example:
What to do next
Import the CUCM and CAPF key.
SUMMARY STEPS
1. crypto pki trustpoint name
2. revocation-check method1[method2 [method3]]
3. enrollment terminal
4. crypto pki authenticate name
DETAILED STEPS
Procedure
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
982
Cisco Unified Communications Manager Line-Side Support
Creating a CTL File
Step 4 crypto pki authenticate name Authenticates the trustpoint. At the prompt to enter the
certificate, copy the contents of the [Link] file
Example:
that you downloaded above and paste it at the prompt. At
the prompt to accept the file, enter “yes”.
Device(config-ca-trustpoint)# crypto pki
authenticate cucm_trustpoint Note
When you copy the certificate, ensure that you also copy
the BEGIN and END lines.
What to do next
Repeat the above steps for the CAPF key (the [Link] file).
DETAILED STEPS
Procedure
Device(config)#voice-ctl-file ct1
Step 2 record-entry selfsigned trustpoint trustpoint-name Configures the trustpoints to be used for creating the CTL
file.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
983
Cisco Unified Communications Manager Line-Side Support
Configuring a Phone Proxy
Device(config-ctl-file)#record-entry selfsigned
trustpoint self-trustpoint6s
Step 3 record-entry capf trustpoint trustpoint-name Specifies that the trustpoint is created using the CAPF
certificate imported from Cisco Unified Communications
Example:
Manager to the device.
Device(config-ctl-file)#record-entry capf
trustpoint capf-trustpoint6s
Step 4 record-entry cucm-tftp trustpoint trustpoint-name Specifies that the trustpoint is created using the specified
TFTP and Cisco Unified Communications Manager
Example:
certificate imported to the device.
Device(config-ctl-file)#record-entry cucm-tftp
trustpoint cucm-trustpoint
Device(config-ctl-file)# complete
DETAILED STEPS
Procedure
Device(config)# voice-phone-proxy pp
Step 2 voice-phone-proxy file-buffer size Configures the phone-proxy file buffering parameter, in
MB.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
984
Cisco Unified Communications Manager Line-Side Support
Attaching a Phone Proxy to a Dial Peer
Device(config-phone-proxy)# tftp-server-address
ipv4 [Link]
Step 5 access-secure Specifies that the secure (encrypted) mode is to be used for
access.
Example:
Device(config-phone-proxy)# access-secure
Device(config-phone-proxy)# complete
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
985
Cisco Unified Communications Manager Line-Side Support
Attaching a Phone Proxy to a Dial Peer
DETAILED STEPS
Procedure
Step 2 phone-proxy phone-proxy-name signal-addr ipv4 Configures the phone proxy for the related dial peer.
ipv4-address cucm ipv4 ipv4-address
Example:
Step 3 session protocol sipv2 Specifies a session protocol (SIPv2) for calls between local
and remote devices.
Example:
Step 4 session target registrar Specifies that a call from a VoIP dial peer is routed to the
registrar end point.
Example:
Step 5 session transport {udp | tcp [tls]} Configures the underlying transport layer protocol for SIP
messages to transport layer security over TCP (TLS over
Example:
TCP).
Device(config-dial-peer)# session transport tcp
tls
Step 6 incoming uri {from | request | to | via} tag Specifies the voice class used to match the VoIP dial peer
to the uniform resource identifier (URI) of an incoming
Example:
call. Any request matching “uri 11” is destined to this dial
peer.
Device(config-dial-peer)# incoming uri request 11
Step 7 destination uri tag Specifies the voice class used to match a dial peer to the
destination URI of an outgoing call. Any request matching
Example:
“uri 12” is destined to this dial peer.
Device(config-dial-peer)# destination uri 12
Step 8 voice-class sip call-route url Enables call routing based on the URL.
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
986
Cisco Unified Communications Manager Line-Side Support
Verifying CUCM Lineside Support
Step 9 voice-class sip profiles number Configures a SIP profile for a voice class.
Example:
Step 10 voice-class sip registration passthrough [registrar-index Configures the SIP registration pass-through options on
index] the dial peer.
Example:
Step 11 voice-class sip pass-thru headers Configures a list of headers for pass through by referring
to a globally configured list.
Example:
Step 12 voice-class sip copy-list {tag | system} Configures the list of entities to be sent to the peer call leg.
Example:
SUMMARY STEPS
1. enable
2. show dial-peer voice dial-peer-id | section voice class sip extension
3. show dial-peer voice
4. show voice class phone-proxy
5. show voice class phone-proxy sessions
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
987
Cisco Unified Communications Manager Line-Side Support
Verifying CUCM Lineside Support
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Device> enable
Step 2 show dial-peer voice dial-peer-id | section voice class sip extension
Example:
CUBE# show dial-peer voice 5678 | section voice class sip extension
Displays if extension cucm has not been configured for the dial peer.
Example:
CUBE# show dial-peer voice 5678 | section voice class sip extension
Displays if extension cucm has been configured for the dial peer.
Example:
CUBE# show dial-peer voice 5678 | section voice class sip extension
Displays if extension cucm has been removed for the dial peer using the no form of the command.
Phone-Proxy 'phone_proxy':
Description:
Access Secure: non-secure (default)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
988
Cisco Unified Communications Manager Line-Side Support
Verifying CUCM Lineside Support
Phone-Proxy 'phone_proxy_secure':
Description:
Access Secure: secure
Tftp-server address: [Link]
Capf server address: [Link]
CUCM service settings: preserve (default)
CTL file name: ctl_file
Session-timeout: 180 seconds
Max-concurrent-sessions: 30
Current sessions: 0
TFTP sessions: 0
HTTP download sessions: 0
HTTP application sessions: 0
CAPF sessions: 0
Config status: complete
SIP dial-peers associated:
Name
---------------
3
dialpeer4
-------------------------------------------------------------
Phone-Proxy 'phone_proxy_ipad':
Source Destination
------------------------------ Sessions of Dial-peer 5 -------------------------------
|Access: [Link] :45232 [Link] :6970
|
|Core : [Link] :45300 [Link] :6970
|
---------------------------------------------------------------------------------------------------
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
989
Cisco Unified Communications Manager Line-Side Support
Example: Configuring a PKI Trustpoint
Device(config)# crypto key generate rsa label pp_rsa modulus 1024 general-keys
Device(config)# crypto pki trustpoint callmg23
Device(config-ca-trustpoint)# enrollment selfsigned
Device(config-ca-trustpoint)# subject-name CN=ASR1006-CCN-4
Device(config-ca-trustpoint)# subject-alt-name 6961_SEC.[Link] 8941_SEC.[Link]
8945_SEC.[Link] 7975_SEC.[Link] 7970_SEC.[Link]
Device(config-ca-trustpoint)# revocation-check crl
Device(config-ca-trustpoint)# rsakeypair pp1
The following example shows how to import the CUCM and CAPF key after you have downloaded
the CUCM key (the [Link] file) and the CAPF key (the [Link] file) from the Cisco
Unified Communications Manager Operating System Administration web page.
Device(config)# voice-phone-proxy pp
Device(config-phone-proxy)# voice-phone-proxy pp
Device(config-phone-proxy)# voice-phone-proxy file-buffer size 30
Device(config-phone-proxy)# tftp-server address ipv4 [Link]
Device(config-phone-proxy)# ctl-file ct1
Device(config-phone-proxy)# access-secure
Device(config-phone-proxy)# complete
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
990
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Secure Line-Side
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
991
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Secure Line-Side
Add the Cube Service, Call Flow and Message manipulation configuration.
Device(config)# voice service voip
Device(config)# no ip address trusted authenticate
Device(config)# allow-connections sip to sip
Device(config)# fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
Device(config)# sip
Device(config-sip)# session transport tcp
Device(config-sip)# header-passing
Device(config-sip)# registrar server
Device(config-sip)# nat auto
Device(config-sip)# pass-thru headers unsupp
Device(config-sip)# pass-thru subscribe-notify-events all
Device(config-sip)# pass-thru content unsupp
Device(config-sip)# registration passthrough
Device(config-sip)# extension cucm
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
992
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Non-Secure Line-Side
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
993
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Non-Secure Line-Side
Add the Cube Service, Call Flow and Message manipulation configuration.
Device(config)# voice service voip
Device(config)# no ip address trusted authenticate
Device(config)# allow-connections sip to sip
Device(config)# fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
Device(config)# sip
Device(config-sip)# header-passing
Device(config-sip)# registrar server
Device(config-sip)# nat auto
Device(config-sip)# pass-thru headers unsupp
Device(config-sip)# pass-thru subscribe-notify-events all
Device(config-sip)# pass-thru content unsupp
Device(config-sip)# registration passthrough
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
994
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Non-Secure Line-Side
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
995
Cisco Unified Communications Manager Line-Side Support
Example: Configuring CUCM Non-Secure Line-Side
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
996
PA R T XX
Security
• SIP TLS Support on CUBE, on page 999
CHAPTER 75
SIP TLS Support on CUBE
The Cisco Unified Border Element (CUBE) supports SIP-to-SIP calls with Transport Layer Security (TLS).
TLS provides privacy and data integrity of SIP signaling messages between two applications that communicate.
CUBE uses TLS to secure SIP signaling messages. TLS is layered on top of a reliable transport protocol such
as TCP. CUBE can be configured at both the global and dial-peer levels for allowing TLS to establish sessions
with remote endpoints.
• Feature Information for SIP TLS Support on CUBE, on page 999
• Restrictions, on page 1000
• Information About SIP TLS Support on CUBE, on page 1001
• How to Configure SIP TLS Support on CUBE, on page 1002
• SIP TLS Configuration Examples, on page 1011
Server Name Cisco IOS XE Support for Server Name Indication (SNI), a TLS extension that
Indication (SNI) Amsterdam allows a TLS client to indicate the name of the server that it is trying
17.3.1a connect during the initial TLS handshake process.
Command—voice Cisco IOS XE Support for voice class TLS profile configuration. The tag associates
class tls-profile tag Amsterdam voice class TLS profile configuration to the command crypto
17.3.1a signaling.
Server identity Cisco IOS XE Support for server identity validation through Common Name (CN)
validation through Gibraltar Release and Subject Alternate Name (SAN) fields in the server certificate.
Common Name 16.11.1a
(CN) and Subject
Alternate Name
(SAN)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
999
Security
Restrictions
Elliptical Curve Cisco IOS XE Support for configuring Elliptic Curve for a TLS session.
Ciphers Gibraltar Release
16.10.1a
Change in the Cisco IOS XE Behavior of the command transport tcp tls is modified.
default SIP TLS 16.9.1
In the earlier releases, TLS version v1.0, v1.1 and v1.2 were enabled
Versions support on
by default. From this release onwards, only versions v1.1 and v1.2
CUBE
are enabled by default. TLS version v1.0 is excluded.
SIP TLS Version Cisco IOS Support is provided for SIP-to-SIP calls with Transport Layer
1.2 Support on 15.6(1)T Security (TLS) version 1.2.
CUBE
Cisco IOS XE The following cipher suites are introduced for release Cisco IOS
3.17S 15.6(1)T:
• TLS_DHE_RSA_WITH_AES_128_CBC_SHA1
• TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
• TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
• TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
• TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
SIP TLS Version Cisco IOS Support is provided for SIP-to-SIP calls with Transport Layer
1.0 Support on 12.4(6)T Security (TLS) version 1.0.
CUBE
The following cipher suites are introduced for release Cisco IOS
12.4(6)T :
• SSL_RSA_WITH_RC4_128_MD5
• TLS_RSA_WITH_AES_128_CBC_SHA
Restrictions
• ECDSA ciphers are not supported on TLS version 1.0.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1000
Security
Information About SIP TLS Support on CUBE
In a typical deployment, CUBE is placed between CUCM and the service provider. These devices are
authenticated and enrolled with a Certificate Authority (CA) server that issues certificates. The CA server can
be Cisco or a third party entity. When a call is made, a TLS handshake is initiated between CUCM and CUBE,
and the IOS PKI infrastructure is used to exchange certificates signed by a common trusted CA during the
handshake. During the TLS handshake, a dynamically generated symmetric key and cipher algorithms are
negotiated between the devices. After the successful TLS handshake, the devices establish a SIP session
between the service provider and CUBE. Keys exchanged during the TLS handshake process are used to
encrypt or decrypt all SIP signaling messages.
Note The use of PKI on the Cisco IOS software requires that the clock on the devices be synchronized with the
network time to ensure proper validation of certificates.
CUBE supports only the mandatory cipher suites for TLS implementation. From Cisco IOS15.6(1)T release
onwards, CUBE supports TLS v1.2 which is backward compatible. Following are the cipher suites added:
• TLS_DHE_RSA_WITH_AES_128_CBC_SHA1
• TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
• TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
• TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
• TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1001
Security
How to Configure SIP TLS Support on CUBE
Following cipher suites are added in the Cisco IOS XE Amsterdam 17.3.1a release:
• TLS_RSA_WITH_AES_256_CBC_SHA
• TLS_DHE_RSA_WITH_AES_128_CBC_SHA
• TLS_DHE_RSA_WITH_AES_256_CBC_SHA
Use the srtp pass-thru command to globally enable the transparent passthrough of all (supported and
unsupported) crypto suites. If SRTP pass-thru feature is enabled, media interworking features such as
transcoding, transrating, DTMF interworking, and so on, will not be supported. Ensure that you have symmetric
configuration on both the incoming and outgoing dial-peers to avoid media-related issues.
Note From IOS XE Release16.6.1 onwards, the key-pair information is encrypted in all the router platforms.
When you downgrade the router from IOS XE version 16.6.1 or a later release to a pre-16.6.1 release, ensure
that you disable the key encryption before the downgrade. Otherwise, the downgrade discards the encrypted
keys. To disable the encryption, use the command no service private-config-encryption in global configuration
mode.
SUMMARY STEPS
1. enable
2. configure terminal
3. crypto key generate rsa {general-keys | usage-keys}label key-label[exportable |][modulus
modulus-size][storage device:]
4. crypto key generate ec keysize {256 | 384}[label label][ ec key-label] ! Applicable only for TLS
version 1.2.
5. crypto pki trustpoint name
6. rsakeypair key-label [key-size [encryption-key-size]]
7. eckeypair keyname] ! Applicable only for TLS version 1.2.
8. serial-number [none]
9. ip-address {ip-address|interface|none]
10. subject-name [x.500-name]
11. enrollment [mode][retry period minutes][retry count number]url url[pem]
12. crl optional or revocation-check method1[method2[method3]]
13. password string
14. exit
15. crypto ca enroll name or crypto pki enroll name
16. crypto ca authenticate name or crypto pki authenticate name
17. crypto pki import <trustpoint> certificate
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1002
Security
Configuring SIP TLS on CUBE
18. sip-ua
19. transport tcp tls [v1.0 | v1.1 | v1.2 ]
20. crypto signaling{remote-addr ip address subnet mask|default}[ tls-profile tag | trustpoint
trustpoint-name[client-vtp trustpoint-name| [{ecdsa-cipher [curve-size 384] | strict-cipher}]|
cn-san-validate {server [client-vtp trustpoint-name | [{ecdsa-cipher [curve-size 384] | strict-cipher}]
}]! ECDSA ciphers are not supported on TLS version 1.0.
21. voice service {pots| voatm |vofr|voip}
22. transport tcp tls
23. url {sip| sips |tel}
24. end
DETAILED STEPS
Procedure
Device> enable
Step 3 crypto key generate rsa {general-keys | usage-keys}label Generates RSA key pairs. Arguments and keywords are
key-label[exportable |][modulus modulus-size][storage as follows:
device:]
• general-keys—Specifies that the general-purpose
Example: key pair should be generated.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1003
Security
Configuring SIP TLS on CUBE
Step 4 crypto key generate ec keysize {256 | 384}[label label][ Generates EC key pairs.
ec key-label] ! Applicable only for TLS version 1.2.
Example:
Step 5 Required: crypto pki trustpoint name Declares the trustpoint that your router should use.
Argument is as follows:
Example:
• name—Creates a name for the trustpoint that you
Router(config)# crypto pki trustpoint cube1 created.
• cube1—Represents the trustpoint name that the user
specifies.
Step 6 rsakeypair key-label [key-size [encryption-key-size]] Specifies which key pair to associate with the certificate.
Arguments are as follows:
Example:
• key-label—Name of the key pair, which is generated
Router(config)# rsakeypair kp1 during enrollment if it does not exist or if the
auto-enroll regenerate command is configured.
• key-size—(Optional) Size of the desired RSA key. If
not specified, the existing key size is used.
• encryption-key-size—(Optional) Size of the second
key, which is used to request separate encryption,
signature keys, and certificates.
Step 7 eckeypair keyname] ! Applicable only for TLS version Generates EC keys for ECDSA cipher suites.
1.2.
Example:
Step 8 serial-number [none] Specifies whether the router serial number should be
included in the certificate request. Keyword is as follows:
Example:
• none—(Optional) Specifies that a serial number will
Router(ca-trustpoint)# serial-number not be included in the certificate request.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1004
Security
Configuring SIP TLS on CUBE
Step 10 subject-name [x.500-name] Specifies the subject name in the certificate request.
Argument is as follows:
Example:
• x.500-name—(Optional) Specifies the subject name
Router(ca-trustpoint)# subject-name that is used in the certificate request.
CN=[Link]
Step 11 enrollment [mode][retry period minutes][retry count Specifies the enrollment parameters of a certificate
number]url url[pem] authority (CA). Arguments and keywords are as follows:
Example: • mode—(Optional) Registration authority (RA) mode,
if your CA system provides an RA. By default, RA
Router (ca-trustpoint)# enrollment url mode is disabled.
[Link]
• retry period minutes—(Optional) Specifies the
period in which the router waits before sending the
CA another certificate request. The default is 1 minute
between retries. (Specify from 1 through 60 minutes.)
• retry count number—(Optional) Specifies the
number of times a router resends a certificate request
when it does not receive a response from the previous
request. The default is 10 retries. (Specify from 1
through 100 retries.)
• url url—URL of the file system where your router
should send certificate requests. For enrollment
method options, see the enrollment url command.
• pem—(Optional) Adds privacy-enhanced mail (PEM)
boundaries to the certificate request.
Step 12 crl optional or revocation-check Allows the certificates of other peers to be accepted without
method1[method2[method3]] trying to obtain the appropriate CRL or checks the
revocation status of a certificate. Arguments are as follows:
Example:
• method1 [method2 [method3]]—Method used by the
Router(ca-trustpoint)# crl optional router to check the revocation status of the certificate.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1005
Security
Configuring SIP TLS on CUBE
Note
If the second and the third methods are specified, each
method will be used only if the previous method returns
an error, such as the server being down.
Step 13 password string (Optional) Specifies the revocation password for the
certificate. Argument is as follows:
Example:
• string—Name of the password
Router(ca-trustpoint)# password password
Router# exit
Step 15 crypto ca enroll name or crypto pki enroll name Obtains the certificates of your router from the certificate
authority. The CA server issues two certificates to the
Example:
trustpoint (CUBE): one to certify the CA server and the
other to certify the trustpoint (CUBE). Argument is as
Router(config)# crypto ca name cube1
follows:
or
• name—Specifies the name of the CA. Use the same
Router(config)# crypto pki name cube1 name when you declared the CA using the crypto
pki trustpoint command.
Step 16 crypto ca authenticate name or crypto pki authenticate Authenticates the CA (by getting the certificate of the CA).
name Argument is as follows:
Example: • name—Specifies the name of the CA. This is the same
name that is used when the CA was declared with the
Router(config)# crypto ca authenticate cube1 crypto CA identity command.
or
Note
Router(config)# crypto pki authenticate cube1 This is where you paste the remote root CA certificate
(PEM file format).
Step 17 crypto pki import <trustpoint> certificate Imports the certificate given by the CA.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1006
Security
Configuring SIP TLS on CUBE
Router(config)# sip-ua
Step 19 transport tcp tls [v1.0 | v1.1 | v1.2 ] Configures the specified TLS version.
Example: Note
TLS v1.1 and TLS v1.2 are the default TLS versions that
Router(config-sip-ua)# transport tcp tls v1.2 are configured. TLS v1.0 is also supported. However, to
configure TLS v1.0, you must explicitly specify the TLS
version.
For more information on the TLS version configuration,
see Transport command.
Step 20 crypto signaling{remote-addr ip address subnet Configures the SIP gateway to use its trustpoint when it
mask|default}[ tls-profile tag | trustpoint establishes or accepts TLS connection with a remote device
trustpoint-name[client-vtp trustpoint-name| with an IP address.
[{ecdsa-cipher [curve-size 384] | strict-cipher}]|
The trustpoint label refers to the CUBE’s certificate that
cn-san-validate {server [client-vtp trustpoint-name |
is generated with the Cisco IOS PKI commands as part of
[{ecdsa-cipher [curve-size 384] | strict-cipher}] }]!
the enrollment proces. strict-cipher means that the SIP
ECDSA ciphers are not supported on TLS version 1.0.
TLS process uses only those cipher suites that are
Example: mandated by the SIP RFC. When you use the strict-cipher
command argument, avoids changes to the configuration
Router(config-sip-ua)# crypto signaling default if SIP should mandate newer ciphers. The SSL layer in
trustpoint cube1 Cisco IOS does not support
TLS_RSA_WITH_3DES_EDE_CBC_SHA. Therefore,
CUBE actively uses only the
TLS_RSA_WITH_AES_128_CBC_SHA suite in strict
mode.
Keywords and arguments are as follows:
• remote-addr address—Associates an IP address to
a trustpoint.
• remote-addr subnet mask—Associates a subnet mask
to a trustpoint.
• default—Configures a default trustpoint.
• trustpoint string—Refers to the SIP gateways
certificate generated as part of the enrollment process
using Cisco IOS PKI commands
• ecdsa-cipher—Examples are the following:
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
and
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384.
Note
ecdsa-cipher is applicable only for the TLS version
1.2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1007
Security
Configuring SIP TLS on CUBE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1008
Security
Configuring SIP TLS on CUBE
Step 21 voice service {pots| voatm |vofr|voip} Specifies a voice encapsulation type and enters voice
service VoIP configuration mode.
Example:
Step 22 transport tcp tls Enters this command in SIP configuration mode to enable
the TLS port on TCP 5061 to listen.
Example:
Step 23 url {sip| sips |tel} Configures URLs to either the SIP, SIPS, or TEL format
for your VoIP SIP calls. Keywords are as follows:
Example:
• sip—Generate URLs in SIP format for VoIP calls.
Router(config-serv-sip)# url sips This is the default.
• sips—Generate URLs in SIPS format for VoIP calls.
• tel—Generate URLs in TEL format for VoIP calls.
Note
This SIP gateway is now configured to use TLS with
endpoints sharing the same CA.
Router(conf-serv-sip)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1009
Security
Verifying SIP TLS Configuration
Detail Output
===================================================================
router#show sip-ua connections tcp tls detail
Total active connections : 1
No. of send failures : 0
No. of remote closures : 3
No. of conn. failures : 0
No. of inactive conn. ageouts : 0
Max. tls send msg queue size of 0, recorded for [Link]:0
TLS client handshake failures : 0
TLS server handshake failures : 0
Remote-Agent:[Link], Connections-Count:1
Remote-Port Conn-Id Conn-State WriteQ-Size Local-Address
=========== ======= =========== =========== ==============
5061 1 Established 0 [Link]
==========================================================================
Sample output for the show sip-ua connections tcp tls command when TLS version is 1.2:
Detail Output
router# show sip-ua connections tcp tls detail
Total active connections : 2
No. of send failures : 0
No. of remote closures : 0
No. of conn. failures : 0
No. of inactive conn. ageouts : 0
Max. tls send msg queue size of 1, recorded for [Link]:5061
TLS client handshake failures : 0
TLS server handshake failures : 0
Remote-Agent:[Link], Connections-Count:2
Remote-Port Conn-Id Conn-State WriteQ-Size Local-Address TLS-Version
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1010
Security
SIP TLS Configuration Examples
Cipher Curve
============================== ======
ECDHE-ECDSA-AES256-GCM-SHA384 P-384
ECDHE-ECDSA-AES256-GCM-SHA384 P-384
Alternatively, the debug ccsip messages command can be used to verify the “Via:” header for TLS is included.
This output is a sample INVITE request of a call that uses SIP TLS and the “sips:” URI scheme:
INVITE sips:777@[Link] SIP/2.0
Via: SIP/2.0/TLS [Link]:5060;branch=z9hG4bK2C419
From: <sips:333@[Link]>;tag=581BB98-1663
To: <sips:5555555@[Link]>
Date: Wed, 28 Dec 2005 18:31:38 GMT
Call-ID: EB5B1948-770611DA-804F9736-BFA4AC35@[Link]
Remote-Party-ID: "Bob" <sips:+14085559999@[Link]>
Contact: <sips:123@host>
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO
Max-Forwards: 70
Cseq: 104 INVITE
Expires: 60
Timestamp: 730947404
Content-Length: 298
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 8437 1929 IN IP4 [Link]
s=SIP Call
c=IN IP4 [Link]
t=0 0
m=audio 18378 RTP/AVP 0 19
c=IN IP4 [Link]
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1011
Security
Example: SIP TLS Configuration
version 15.6
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
no service password-encryption
!
hostname CUBE
!
boot-start-marker
boot system flash:ctestimg
boot-end-marker
!
aqm-register-fnf
!
logging queue-limit 1000
logging buffered 9999999
no logging rate-limit
no logging console
!
no aaa new-model
ethernet lmi ce
clock timezone IST 5 30
!
!
!
!
!
ip traffic-export profile 1 mode capture
bidirectional
incoming access-list 123
outgoing access-list 123
!
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
crypto pki trustpoint ecdsacert1
enrollment terminal pem
subject-name cn=plutododsn
revocation-check none
eckeypair myeckey
!
crypto pki trustpoint selfsign
enrollment selfsigned
subject-name cn=plutododsn
revocation-check none
rsakeypair selfsign
!
crypto pki trustpoint ccm155RSA
enrollment terminal
revocation-check none
!
!
crypto pki certificate chain ecdsacert1
certificate 07
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1012
Security
Example: SIP TLS Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1013
Security
Example: SIP TLS Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1014
Security
Example: SIP TLS Configuration
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address [Link] [Link]
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address [Link] [Link]
ip traffic-export apply 1 size 5000000
duplex auto
speed auto
no clns route-cache
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip rtcp report interval 9000
ip route [Link] [Link] [Link]
ip route [Link] [Link] [Link]
!
!
!
access-list 123 permit udp any any
access-list 123 permit tcp any any
!
control-plane
!
call treatment on
!
!
!
!
!
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/1
sccp ccm [Link] identifier 1 version 7.0
!
!
!
dial-peer voice 1 voip
destination-pattern 6003
session protocol sipv2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1015
Security
Example: SIP TLS Configuration
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1016
PA R T XXI
Voice Quality in CUBE
• CUBE Call Quality Statistics Enhancement, on page 1019
• Voice Quality Monitoring, on page 1025
CHAPTER 76
CUBE Call Quality Statistics Enhancement
Call quality statistics in CUBE, such as packet loss, jitter, and round trip delay can be added to the call detail
record (CDR), and these voice metrics can be calculated in IOS. For more information, refer to Voice Quality
Enhancements on Cisco Unified Border Element.
The call quality statistics feature is enhanced to provide the following capabilities:
• Enable or disable Quality of Service (QoS) for CUBE.
• Enable or disable Real-time Transport Protocol (RTP) Control Protocol (RTCP) passthrough.
• Configure call quality criteria parameters.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1019
Voice Quality in CUBE
Restrictions for Call Quality Statistics Enhancement
Call Quality Cisco IOS XE Call quality statistics in CUBE, such as packet loss, jitter, and round
Statistics 3.14S trip delay can be added to the call detail record (CDR), and these voice
Enhancement metrics can be calculated in IOS. For more information, refer to Voice
Quality Enhancements on Cisco Unified Border Element.
The call quality statistics feature is enhanced to provide the following
capabilities:
• Enable or disable Quality of Service (QoS) for CUBE.
• Enable or disable Real-time Transport Protocol (RTP) Control
Protocol (RTCP) passthrough.
• Configure call quality criteria parameters.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1020
Voice Quality in CUBE
How to Configure Call Quality Parameters
For more information on how to calculate the voice quality metrics related to media(voice) quality, such as
conversational mean opinion score (MOS), jitter, and so on, see [Link]
ios/voice/cube/configuration/cube-book/[Link].
DETAILED STEPS
Procedure
Step 4 call-quality Enters call quality configuration mode; this is the global
call quality of service setup.
Example:
Device(conf-voi-serv)# call-quality
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1021
Voice Quality in CUBE
Troubleshooting Call Quality Statistics
Step 6 max-reorder number-of-packets Configures the acceptable out of sequence late packets.
The range is from 2 to 2000 packets. The default value is
Example:
100.
Device(conf-serv-call-quality)# max-reorder 500
Step 7 clock-rate payload-type-number frequency Sets the payload type number and frequency. Clock rate
is the RTP timestamp field's sampling frequency.
Example:
Device(conf-serv-call-quality)# clock-rate 5 1500
Step 8 clock-rate dynamic-default frequency (Optional) Changes the default clock rate for all the
dynamic payload types. The frequency range (in Hz) is
Example:
from 1000 to 192000.
Device(conf-serv-call-quality)# clock-rate
dynamic-default 10000 • You have several options to set the clock rate, such
as for the different codecs.
Step 10 rtcp all-pass-through (Optional) Passes through all RTCP in data path.
Example:
Device(conf-voi-serv)# rtcp all-pass-through
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1022
Voice Quality in CUBE
Configuration Example for Call Quality Statistics
• show platform hardware qfp active feature sbc data path call call-id
The following are some show command outputs that would be useful in troubleshooting:
• Device# show call active voice | include LostPackets
LostPackets=0
LostPackets=36 ---->//Lost packets detail present in show call active voice output. View the complete command
output based on the filters such as call-id to check the packet loss for a particular call leg.//
• Device# show call active voice | include PlayDelayJitter
PlayDelayJitter=0
PlayDelayJitter=38 ----->//Jitter detail present in show call active voice output. View the complete command
output based on the filters such as call-id to check the Jitter for a particular call leg.//
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1023
Voice Quality in CUBE
Configuration Example for Call Quality Statistics
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1024
CHAPTER 77
Voice Quality Monitoring
The Voice Quality Monitoring (VQM) feature gives information on the voice quality metrics related to media
(voice) quality, such as conversational mean opinion score (MOS), packet loss rate, and so on. VQM enables
you to monitor the quality of calls traversing your VoIP network, and you can diagnose the cause of voice
quality issues and troubleshoot them.
The Voice Quality Statistics feature provides information about the quality of the Time-Division Multiplexing
Internet Protocol (TDM-IP) voice call.
• Feature Information for Voice Quality Monitoring, on page 1025
• Prerequisites for Voice Quality Monitoring, on page 1026
• Restrictions for Voice Quality Monitoring and Voice Quality Statistics, on page 1027
• Information About Voice Quality Monitoring, on page 1027
• How to Configure Voice Quality Monitoring, on page 1028
• Configuration Examples for Voice Quality Monitoring, on page 1032
Table 101: Feature Information for Voice Quality Monitoring and Voice Quality Statistics
Voice Quality Statistics Cisco IOS XE Everest Voice quality statistics provides information
16.5.1b about the quality of the voice TDM-IP call.
This feature is already implemented on
ISR-G2, and the feature gap is filled in ISR
4000 series.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1025
Voice Quality in CUBE
Prerequisites for Voice Quality Monitoring
Voice Quality Monitoring Cisco IOS XE Denali The Voice Quality Monitoring (VQM)
16.3.1 feature provides information on the voice
quality metrics related to media (voice)
quality, such as conversational mean
opinion score (MOS), packet loss rate, and
so on. VQM enables you to monitor the
quality of calls traversing your VoIP
network, and you can diagnose the cause
of voice quality issues and troubleshoot
them.
Note The values of max-dropout and max-reorder must be configured based on the network loss and network
latency. In a lossy or high latency network, it’s recommended to configure higher values. In a loss less or low
latency network, lower values are fine. Packet loss and packet reorder are calculated based on RFC3550.
Sample Configuration
The following is a sample for the recommended voice quality monitoring configuration:
callmonitor
rtcpall-pass-through
media statistics
media bulk-stats
call-quality
max-dropout 100
max-reorder 100
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1026
Voice Quality in CUBE
Restrictions for Voice Quality Monitoring and Voice Quality Statistics
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1027
Voice Quality in CUBE
VQM Metrics
VQM Metrics
The following are the metrics exported by VQM:
MOS-Con The conversational quality MOS. Conversational quality indicates the impact
of the quality of the transmission on the dynamics of conversational exchanges
between two parties; such metrics take into account delay, echo, and recency.
round-trip-delay The instantaneous round-trip delay. This may be obtained from the RTCP
SR reports.
receive-delay The minimum delay that will be applied to the packets received when using
an adaptive jitter buffer.
voice-quality-total-packet-loss The total number of packets lost by the jitter buffer in the RTP stream.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. media statistics
5. end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1028
Voice Quality in CUBE
Verifying Voice Quality Monitoring
DETAILED STEPS
Procedure
Device> enable
Step 3 voice service voip Enters voice service VoIP configuration mode.
Example:
Device(config)# voice service voip
Step 4 media statistics Enables media statistics to estimate the values of packet
loss, jitter, and Round Trip Time (RTT) statistics.
Example:
Device(conf-voi-serv)# media statistics • The statistics are displayed using the show voice
history and show call active voice commands.
• If the media statistics command is disabled, the values
will be zero.
SUMMARY STEPS
1. enable
2. show call active voice | include LostPackets
3. show call active voice | include ReceiveDelay
4. show call active voice brief | sec RTT
5. show call active voice stats | sec MC
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1029
Voice Quality in CUBE
Verifying Voice Quality Monitoring
DETAILED STEPS
Procedure
Step 1 enable
Enables privileged EXEC mode.
Example:
Device> enable
Example:
Device# show call active voice brief | sec RTT
IP [Link]:7078 SRTP: off rtt:12ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw
TextRelay: off Transcoded: No ICE: Off
IP [Link]:18920 SRTP: off rtt:12ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw
TextRelay: off Transcoded: No ICE: Off
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1030
Voice Quality in CUBE
Troubleshooting Tips
DSP/RF: ML=4.2346, MC=4.2346, R1=92, R2=92, IF=0, ID=0, IE=0, BL=0, R0=93, VR=2.0
For more information on the SNMP MIB "cmqVoIPCallActiveRxPred107RMosConv", see SNMP Object
Navigator.
In the sample output, the following can be noted:
• ML for codec G.711ulaw is 4.2346.
• MC for codec G.711ulaw is 4.2346.
• IE for codec G.711 is 0.
• R0 is 93.
The following table defines the abbreviations used in the sample output.
Table 102: Router Output Definitions for the show call active voice stats command
Troubleshooting Tips
Use the following debug commands to troubleshoot the Voice Quality Monitoring feature:
• debug voip rtp packets
• debug performance monitor
• debug radius accounting
• debug aaa accounting
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1031
Voice Quality in CUBE
Configuration Examples for Voice Quality Monitoring
Device> enable
Device# configure terminal
Device(config)# voice service voip
Device(conf-voi-serv)# media statistics
Device(conf-voi-serv)# end
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1032
PA R T XXII
Smart Licensing
• CUBE Smart Licensing, on page 1035
CHAPTER 78
CUBE Smart Licensing
Cisco Smart Licensing using Policy is a software licensing model that provides visibility of ownership and
usage through the Cisco Smart Software Manager (CSSM) portal. CSSM is a central license repository that
manages licenses across all Cisco products that you own, including CUBE. Devices send license usage to
CSSM either directly or use an on-premises application. Your Smart Account Administrator controls your
access to CSSM. Use your Cisco credentials to access the CSSM portal through htttp://[Link].
Smart Licensing applies to all platform technology (UCK9, Security, DNA) and CUBE feature licenses that
the platform uses.
CSSM shows license usage across all devices that are registered to a virtual account. A Virtual Account
License Inventory displays the quantity of licenses that are purchased, those licenses in use, and a balance.
An Insufficient Licenses alert is displayed if the license balance is below 0.
For example, consider a smart account in CSSM with 50 CUBE trunk session licenses. If you have a single
registered CUBE router using 20 trunk sessions, the CSSM licenses page shows Purchased as 50, In Use as
20, and Balance as 30.
For more information on Smart Software Manager, see the Cisco Smart Software Manager User Guide.
• Smart License Operation, on page 1035
• Smart Software Licensing Task Flow for CUBE, on page 1037
• Verify Smart Licensing Operation for CUBE, on page 1039
• CUBE High Availability Configurations, on page 1043
• Syslog Messages, on page 1049
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1035
Smart Licensing
Smart License Operation
Submit the reports to CSSM directly or through a Smart Software Manager On-Prem server. The Cisco Smart
Licensing Utility (CSLU) application can also collect usage reports, providing more flexibility in managing
your license usage. When a device is not able to communicate directly with a licensing server, a signed usage
report can be generated and manually uploaded to CSSM. The CSSM generated acknowledgment must be
uploaded to the device within the license reporting policy period to ensure continued use.
Note Cisco routers configured to process calls between voice ports and IP destinations will report the use of these
sessions to CSSM, where they are listed as a “CUBE v14 Voice Gateway Session”. This usage is reported
using the CUBE_T_VGW Smart entitlement tag, which may also be viewed using the show license all
command and is provided for your information only. This reporting feature does not enforce voice port or IP
sessions and there would be no service interruption if the router is not registered to CSSM.
A quantity of purchased licenses equal to the number of reported sessions is automatically displayed in CSSM
to avoid compliance warnings. There is no requirement or option to purchase CUBE v14 Voice Gateway
Session licenses.
Note Cisco Smart Software Manager On-Prem Version 8 Release 202102 or later is required for any device using
SLP. Refer to the SLP feature documentation for further information (Smart Licensing Using Policy for Cisco
Enterprise Routing Platforms).
Warning When using any of the following Smart Licensing using Policy releases, CUBE shuts down if the router does
not receive a report acknowledgment from CSSM before the acknowledgment deadline set by the account
policy: 17.3.2, 17.3.3, 17.3.4a, 17.6.1a, or any 17.4 or 17.5 release. CUBE does not shut down in this way
with later releases.
License usage is calculated dynamically in the same way as earlier releases, with measurements recorded
periodically based on the periodicity timer. Measurements are stored locally until they are submitted to CSSM.
This historical usage reporting allows for more accurate aggregation of use across multiple devices over time.
The minimum value for the periodicity timer interval is 8 hours.
For example, consider a measurement periodicity of 8 hours and a reporting policy interval of 30 days. Call
load is measured every second. The average of the top three readings during each minute is recorded to mitigate
anomalies. Similarly, the average of the top three minute measurements is used to log usage over an hour.
After 8 hours, the maximum hourly measurement is used to record usage locally for that period. The 90
measurements that are recorded over a 30 day reporting period are sent to CSSM or a CSLU in a single report.
If the peak license usage for the current period is different by more or less than 25% of the previously reported
value, it is reported and the periodicity interval is reset. Use of CUBE Standard Trunk and CUBE Enhanced
Trunk licenses are monitored separately.
Note Smart License Reservation (SLR) for CUBE licenses is not compatible with SLP. Even if a reservation is in
place when upgrading, license use reporting will still be required in accordance with the device policy.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1036
Smart Licensing
Smart Software Licensing Task Flow for CUBE
Note From Cisco IOS XE Bengaluru 17.6.1a onwards, calls that are forked using WebSockets are marked as
consuming an Enhanced session license.
Procedure
Ensure that hostname and the PID of the platform are not the same. For example, if the hostname of an ASR1006 router
is configured as "ASR1006", registration is unsuccessful.
Configures valid DNS servers to ensure the correct resolution of the CSSM or satellite hostname.
Binds the platform HTTP client to the interface used to access the CSSM or satellite.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1037
Smart Licensing
Associate the Host Platform with CSSM
If necessary, configure a proxy-server for the platform when a direct HTTP connection to CSSM is not permitted.
Procedure
From Cisco IOS XE 16.10.1 through Cisco IOS XE Amsterdam 17.3.1a, use the following command for registering the
CUBE with the CSSM or satellite.
license smart register id_token id_token
Example:
Router# license smart register id_token XXXXXXXXXTnVhaUZlRHorQjJERT0%3D
Use the following command to register the CUBE platform with CSSM.
license smart trust id_token id_token...local [force]
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1038
Smart Licensing
Configure CUBE Licensed Features
Procedure
Data Privacy:
Sending Hostname: yes
Callhome hostname privacy: DISABLED
Smart Licensing hostname privacy: DISABLED
Version privacy: DISABLED
Transport:
Type: Callhome
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1039
Smart Licensing
Verify Smart Licensing Operation for CUBE
Policy:
Policy in use: Merged from multiple sources.
Installed Time: Jan 01 05:30:00 1970 IST
Reporting ACK required: yes
Perpetual Attributes:
First report requirement (days): 365 (CISCO default)
Reporting frequency (days): 90 (CISCO default)
Report on change (days): 90 (Product default)
Subscription Attributes:
First report requirement (days): 90 (CISCO default)
Reporting frequency (days): 90 (CISCO default)
Report on change (days): 80 (Product default)
Enforced License Attributes:
First report requirement (days): 90 (Customer Policy)
Reporting frequency (days): 90 (Customer Policy)
Report on change (days): 80 (Customer Policy)
Export License Attributes:
First report requirement (days): 90 (Customer Policy)
Reporting frequency (days): 90 (Customer Policy)
Report on change (days): 90 (Customer Policy)
Miscellaneus:
Custom Id: <empty>
Usage Reporting:
Last ACK received: <none>
Next ACK deadline: May 26 08:24:45 2020 IST
Reporting Interval: 30
Next ACK push check: <none>
Next report push: Jun 15 08:24:45 2020 IST
Last report push: <none>
Last report file write: <none>
Last report pull: <none>
• show voice sip license stats—Displays CUBE trunk license usage history.
License usage is recorded in tabular and graphical format for all the three types of trunk call count
(Enhanced, Standard, and Aggregate). Usage is recorded based on the peak value of concurrent calls for
a defined interval of time:
• Seconds Table—This table stores concurrent calls at every second for the last 60 seconds.
• Minutes Table—This table stores regularized peak value of concurrent calls at every minute for the
last 60 minutes. Regularized peak for a minute is the average of top 3 peak values that occurs in a
minute.
• Hours Table—This table stores peak value for each hour for the last 72 hours.
• Days Table—This table stores peak value for each day for the last 72 days.
The following example outputs are truncated to display 60-second and 60-minute tables only.
cube#show voice sip license stats table
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1040
Smart Licensing
Verify Smart Licensing Operation for CUBE
1-5 0 0
6-10 0 0
11-15 0 0
16-20 0 0
21-25 0 0
26-30 0 0
31-35 0 0
36-40 0 0
41-45 0 0
46-50 0 0
51-55 0 0
56-60 0 0
10
9
8
7
6
5
4
3
2
1
0....5....1....1....2....2....3....3....4....4....5....5....6
0 5 0 5 0 5 0 5 0 5 0
CUBE Trunk License Usage (last 60 seconds)
369863146641
8880900440044
3330922440011
910 **
820 #*
730 ##
640 *##* **
550 ###* ##
460 #### *##*
370 *#### *##*
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1041
Smart Licensing
Verify Smart Licensing Operation for CUBE
CUBE_Trunk_Standard_Session (CUBE_T_STD):
Description: Cisco Unified Border Element (CUBE) Trunk Standard Session License
Count: 10
Version: 1.0
Status: AUTHORIZED
Export status: NOT RESTRICTED
Registration:
Status: REGISTERED
Smart Account: BU Production Test
Virtual Account: CUBE Sat Test
Export-Controlled Functionality: Allowed
Last Renewal Attempt: None
Next Renewal Attempt: Aug 17 12:57:04 2019 UTC
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1042
Smart Licensing
CUBE High Availability Configurations
License Authorization:
Status: AUTHORIZED
Last Communication Attempt: SUCCEEDED
Next Communication Attempt: Apr 03 15:11:54 2019 UTC
License Usage:
License Entitlement tag Count Status
-----------------------------------------------------------------------------
CUBE_T_STD (CUBE_T_STD) 5 IN USE
uck9 (ISR_4351_UnifiedCommun...) 1 IN USE
CUBE_T_VGW (CUBE_T_VGW) 4 IN USE
The following commands are also available related to your Smart License:
• show license all—Displays all the information that is related to licensing.
• show license tech support—Displays the license technical support information.
• show call-home smart-licensing —Displays the destination URL that is configured.
• debug license feature cube all
Example:
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1043
Smart Licensing
Verify Smart Licensing Operation for Box-to-Box High Availability
Before Failover
• Establish a trust relationship for both platforms in the high availability configuration with the same CSSM
or satellite Smart Virtual Account.
• CSSM or satellite sets the reporting policy for each platform.
• Only the active platform submits license usage reports to CSSM.
After Failover
• The platform that switches to the active mode reports license usage to the CSSM.
• The new active platform starts a new license request interval timer. For example, if a periodicity of five
days is configured and failover occurs after three days, the next request will occur five days later.
Note Effective from Cisco IOS XE Amsterdam 17.2.1r, Licensed-Capacity and blocked
call information is no longer included in the output.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1044
Smart Licensing
Verify Smart Licensing Operation for Box-to-Box High Availability
Utility:
Status: DISABLED
Data Privacy:
Sending Hostname: yes
Callhome hostname privacy: DISABLED
Smart Licensing hostname privacy: DISABLED
Version privacy: DISABLED
Transport:
Type: Smart
URL: [Link]
Proxy:
Not Configured
Miscellaneous:
Custom Id: <empty>
Policy:
Policy in use: Installed On Apr 20 13:26:18 2021 UTC
Policy name: SLE Policy
Reporting ACK required: yes (Customer Policy)
Unenforced/Non-Export Perpetual Attributes:
First report requirement (days): 30 (Customer Policy)
Reporting frequency (days): 60 (Customer Policy)
Report on change (days): 60 (Customer Policy)
Unenforced/Non-Export Subscription Attributes:
First report requirement (days): 120 (Customer Policy)
Reporting frequency (days): 150 (Customer Policy)
Report on change (days): 120 (Customer Policy)
Enforced (Perpetual/Subscription) License Attributes:
First report requirement (days): 0 (CISCO default)
Reporting frequency (days): 90 (Customer Policy)
Report on change (days): 60 (Customer Policy)
Export (Perpetual/Subscription) License Attributes:
First report requirement (days): 0 (CISCO default)
Reporting frequency (days): 30 (Customer Policy)
Report on change (days): 30 (Customer Policy)
Usage Reporting:
Last ACK received: Oct 08 13:56:07 2021 UTC
Next ACK deadline: Dec 07 13:56:07 2021 UTC
Reporting push interval: 1 days
Next ACK push check: Oct 22 20:44:57 2021 UTC
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1045
Smart Licensing
Verify Smart Licensing Operation for Box-to-Box High Availability
License Usage
=============
network-advantage_1G (ESR_P_1G_A):
Description: network-advantage_1G
Count: 1
Version: 1.0
Status: IN USE
Export status: NOT RESTRICTED
Feature Name: network-advantage_1G
Feature Description: network-advantage_1G
Enforcement type: NOT ENFORCED
License type: Perpetual
dna-advantage_1G (DNA_P_1G_A):
Description: dna-advantage_1G
Count: 1
Version: 1.0
Status: IN USE
Export status: NOT RESTRICTED
Feature Name: dna-advantage_1G
Feature Description: dna-advantage_1G
Enforcement type: NOT ENFORCED
License type: Subscription
CUBE_T_STD (CUBE_T_STD):
Description: CUBE_T_STD
Count: 121
Version: 1.0
Status: IN USE
Export status: NOT RESTRICTED
Feature Name: CUBE_T_STD
Feature Description: CUBE_T_STD
Enforcement type: NOT ENFORCED
License type: Perpetual
Product Information
===================
UDI: PID:C8000V,SN:93POM8FF9IZ
Agent Version
=============
Smart Agent for Licensing: 5.1.21_rel/96
License Authorizations
======================
Overall status:
Active: PID:C8000V,SN:93POM8FF9IZ
Status: SMART AUTHORIZATION INSTALLED on Sep 21 13:48:56 2021 UTC
Last Confirmation code: 1fc54c75
Purchased Licenses:
No Purchase Information Available#
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1046
Smart Licensing
Smart Licensing with CUBE Inbox High Availability
Before Failover
• Smart License configuration is synchronized between the two Route Processors. Only the active Route
Processor registers with CSSM or satellite.
• The CSSM or satellite authorizes license usage requests for the active Route Processor.
Note For Smart License using Policy, the CSSM or satellite license usage requests for
the active Route Processor.
After Failover
• The Route Processor that switches to active mode, reports license usage to the CSSM or satellite.
• As the new report appears to come from the same device, the CSSM or satellite retains the original
reservation for the platform.
Note Effective from Cisco IOS XE Amsterdam 17.2.1r, Licensed-Capacity and blocked
call information is no longer included in the output.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1047
Smart Licensing
Verify Smart Licensing Operation for Inbox High Availability
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1048
Smart Licensing
Syslog Messages
Syslog Messages
• In B2BHA mode, syslog messages are generated by the active CUBE router and not the standby router.
The following is a syslog output for an active CUBE router in B2BHA mode:
%CUBE-5-LICENSE_INFO: Requesting for 3 CUBE Enhanced trunk licenses
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1049
Smart Licensing
Syslog Messages
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1050
PA R T XXIII
Serviceability
• VoIP Trace for CUBE, on page 1053
• Support for Session Identifier, on page 1059
CHAPTER 79
VoIP Trace for CUBE
VoIP Trace is a Cisco Unified Border Element (CUBE) serviceability framework, which provides a binary
trace facility for troubleshooting SIP call issues. The VoIP Trace framework records both successful and
failed calls. All call trace data is stored in system memory. In addition, data for calls with IEC errors is also
written to the logging location configured at the system level which includes logging to a buffer or a syslog
server.
• VoIP Trace for CUBE, on page 1053
• Prerequisites for Voip Trace, on page 1054
• Benefits of VoIP Trace, on page 1054
• Guide to using VoIP Trace Framework, on page 1055
• RTP Port Clear, on page 1056
• Feature Information for VoIP Trace, on page 1057
Within the VoIP Trace sub-mode (conf-serv-trace), you can configure the following CLI commands:
• memory-limit {platform | memory}
• [no] shutdown
VoIP Trace is used for event logging and debugging of VoIP calls. Using the VoIP Trace framework, the
following information is recorded:
• SIP messages for SIP trunk to SIP trunk calls
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1053
Serviceability
Prerequisites for Voip Trace
• Events and API calls from the SIP layer to other layers in CUBE.
• SIP Errors
• Call Control (Unified Communication flows processed by CUBE)
• FSM (Finite State Machine) states and events
VoIP Trace monitors and logs SIP signalling and call events in memory as they occur. In the event that a call
error is detected, or calls fail with 3xx, 4xx or 5xx cause codes, these event details are written to the logging
buffer after the call clears.
Note Traces for error calls are logged at the rate of up to five traces per second.
There’s a configurable memory limit allocated for storage of traces in a VoIP Trace framework for CUBE.
The configurable maximum memory limit is either available platform memory or 1000 MB, whichever is
lower. By default, VoIP Trace will use up to 10% of the total memory available to the IOS processor at the
time of configuring the command. For example, if CUBE is used on a platform with 8GB of memory, VoIP
Trace will use up to 800MB for trace data. Once the trace memory limit is reached, older traces are overwritten
and will no longer be available.
You can configure the trace memory limit using the CLI command memory-limit {platform | memory }
under trace configuration sub-mode:
Router(conf-serv-trace)#memory-limit ?
<10-1000> Specify maximum memory limit in MB
platform Use 10 percent of available memory
To display the traces for a call, use the following show command:
• show voip trace {call-id identifier | session-id identifier | sip-call-id identifier | correlator identifier |
all | cover-buffers | statistics [deatil]}
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1054
Serviceability
Guide to using VoIP Trace Framework
• Configuration of memory-limit more than the 10% of the available platform memory affects
the system performance. Configuration is successful with a warning message:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1055
Serviceability
RTP Port Clear
• Reducing the memory-limit from an existing limit resets the VoIP Trace data. Take copy of the
show voip trace statistics detail and show voip trace all output data before reducing the
memory-limit.
• A confirmation message is displayed when you reduce the memory-limit from an existing limit:
Reducing the memory-limit clears all VoIP Trace statistics and data.
If you wish to copy this data first, enter ‘no’ to cancel,
otherwise enter ‘yes’ to proceed.
• Increasing the memory-limit does not impact the VoIP Trace data.
Note • Unable to trace incoming calls if active calls exhaust the memory-limit.
• To change the Timestamps displayed in the VoIP Trace, configure the
following:
router(config)#monitor event-trace timestamps datetime ?
localtime Use local time zone for timestamps
msec Include milliseconds in timestamp
show-timezone Add time zone information to timestamp
The table that is used for allocating RTP ports is based on CUBE feature configuration. Ports are allocated
from the VRF table first (if available), and then from the media table. If neither of these tables are available,
the global table allocates ports.
Use the show voip rtp stats command to display the ports allocated from the different tables. In the current
behavior, this command displays ports that are allocated only from the global port table. From Cisco IOS XE
Bengaluru 17.4.1a onwards, this command displays ports that are allocated from all the three tables.
Sometimes, RTP ports can remain assigned after a call ends. Use the clear voip rtp port command to release
such hung ports.
The show voip rtp stats command displayed only the port values from the global table, even if the ports are
allocated from all the tables. From Cisco IOS XE Bengaluru 17.4.1a onwards, this command displays details
of allocated ports from all the three tables.
The clear voip rtp port table ID port number command releases the hung ports. Here, table ID is the identifier
of the table from which the port number is released.
A unique identifier is generated and printed for each table, which serves as a reference to clear voip rtp port
command.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1056
Serviceability
Feature Information for VoIP Trace
VoIP Trace for Cisco IOS XE Amsterdam 17.3.2, Cisco VoIP Trace is a Cisco Unified Border
CUBE IOS XE Bengaluru 17.4.1a Element (CUBE) Serviceability framework
Serviceability for Event Logging and Debug
Classification.
The following are the commands that are
introduced as part of this feature:
• trace
• memory-limit [platform | memory ]
• shutdown
• show voip trace {call-id identifier |
session-id identifier | sip-call-id
identifier | correlator identifier | all |
cover-buffers | statistics [detail]}
RTP Port Clear Cisco IOS XE Bengaluru 17.4.1a Sometimes, RTP ports can remain assigned
after a call end. This feature enhancement
releases such hung ports and makes
available for other calls. This release of
ports increases the efficiency of the device.
The feature introduces the following
commands:
show voip rtp stats - The enhanced
command enables you to print details for
in-use ports of other port ranges (along with
global port range).
Cisco IOS Voice Command Reference - S
commands
clear voip rtp port<table-id><port-num>
- Use this command to clear VoIP Real
Time Protocol (RTP) which are leaked
ports.
Cisco IOS Voice Command Reference - A
through C
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1057
Serviceability
Feature Information for VoIP Trace
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1058
CHAPTER 80
Support for Session Identifier
Cisco Unified Border Element (CUBE) supports “Session Identifier” for end-to-end tracking of a SIP session
in IP-based multimedia communication systems. Support for session identifier is in compliance with RFC
7206 and draft-ietf-insipid-session-id-15.
• Feature Information for Session Identifier Support, on page 1059
• Restrictions, on page 1060
• Information About Session Identifier, on page 1060
• Configuring Support for Session Identifier, on page 1061
• Troubleshooting Tips, on page 1061
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1059
Serviceability
Restrictions
Support for Session Identifier Cisco IOS 15.6(2)T This feature enables CUBE to
support “Session Identifier”
Cisco IOS XE Denali 16.3.1
for end-to-end tracking of a
SIP session in IP-based
multimedia communication
systems in compliance with
RFC 7206 and
draft-ietf-insipid-session-id-15.
A new keyword session-id is
added to the following
commands:
• show call active voice
• show call active video
• show call history voice
• show call history video
• show call active voice
brief
• show call active video
brief
Restrictions
• Session Identifier is not supported for SIP-H.323, H.323-SIP, and H.323-H.323 calls.
Note "Session Identifier" refers to the value of the identifier, whereas "Session-ID" refers to the header field used
to convey the identifier.
The Session-ID comprises of Universally Unique Identifier (UUID) for each user agent participating in a call.
Each call consists of two UUID known as local UUID and remote UUID. Local UUID is the UUID generated
from the originating user agent and remote UUID is generated from the terminating user agent. The UUID
values are presented as strings of lower-case hexadecimal characters, with the most significant octet of the
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1060
Serviceability
Feature Behavior
UUID appearing first. Session Identifier comprises of 32 characters and remains same for the entire session.
Refer to RFC 4122 for more information on UUID.
Remote UUID =
47755a9de7794ba387653f2099600ef2
Feature Behavior
• If all the user agents associated with CUBE support session-id, then CUBE allows pass-through of the
Session ID header in all SIP request and response messages for the session.
• CUBE looks for the Session ID header present in the SIP messages and validates the SessionID header
syntax as defined in draft-ietf-insipid-session-id-15. Session ID format earlier to
draft-ietf-insipid-session-id-15 is considered as unsupported.
• If some of the user agents do not support session ID, CUBE generates local UUID on behalf of the user
agent and sends the generated UUID in SIP request and response. CUBE generates UUID based on
version 5 (SHA-1).
• If a Session ID is received in the format as defined in RFC 7329, CUBE considers it as unsupported.
CUBE generates local UUID on behalf of the user agent and sends the generated UUID in SIP request
and response.
• In a mid call scenario, where user a session is switched from supporting session identifier to non-supporting
session identifier, CUBE saves the previous non-NULL session identifier and sends the saved non-NULL
session identifier in re-invite messages as needed.
• For high availability, session ID is check pointed in active and re-created in standby.
Troubleshooting Tips
The following show commands helps you to troubleshoot any issues with session identifier.
• show call active voice session-id WORD
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1061
Serviceability
Troubleshooting Tips
WORD can be complete session identifier (local, remote, or both), or wildcard pattern of local or remote
UUID. The valid wildcard patterns for search are *, 0-9, a-f, A-F.
Telephony call-legs: 0
SIP call-legs: 1
H323 call-legs: 0
.
.
.
SessionIDLocaluuid=db248b6cbdc547bbc6c6fdfb6916eeb
SessionIDRemoteuuid=4fd24d9121935531a7f8d750ad16e19
.
.
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 1
You can search for the session identifier using complete local UUID as shown below:
Device# show call active voice session-id db248b6cbdc547bbc6c6fdfb6916eeb
Telephony call-legs: 0
SIP call-legs: 1
H323 call-legs: 0
.
.
.
SessionIDLocaluuid=db248b6cbdc547bbc6c6fdfb6916eeb
SessionIDRemoteuuid=4fd24d9121935531a7f8d750ad16e19
.
.
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 1
You can search for the session identifier using complete remote UUID as shown below:
Device# show call active voice session-id 4fd24d9121935531a7f8d750ad16e19
Telephony call-legs: 0
SIP call-legs: 1
H323 call-legs: 0
.
.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1062
Serviceability
Troubleshooting Tips
.
SessionIDLocaluuid=db248b6cbdc547bbc6c6fdfb6916eeb
SessionIDRemoteuuid=4fd24d9121935531a7f8d750ad16e19
.
.
.
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 1
You can search for session id using wildcard pattern match as shown below:
Device# Device# show call active voice session-id 4fd2*
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
.
.
.
SessionIDLocaluuid=4fd24d9121935531a7f8d750ad16e19
SessionIDRemoteuuid=db248b6cbdc547bbc6c6fdfb6916eeb
SessionIDLocaluuid=db248b6cbdc547bbc6c6fdfb6916eeb
SessionIDRemoteuuid=4fd24d9121935531a7f8d750ad16e19
.
.
.
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1063
Serviceability
Troubleshooting Tips
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1064
Serviceability
Troubleshooting Tips
^[0-9a-fA-F*];remote=[0-9a-fA-F*]+$.
SessionIDLocaluuid=0000000000000000000000000000000
SessionIDRemoteuuid=4fd24d9121935531a7f8d750ad16e19
You can search for session identifier using the local UUID as shown below:
Device# show call active voice session-id d82c680a3eaecd5c29ac6ceeaa225061
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
.
.
.
.
VOIP:
ConnectionId[0x8CDAC180 0x10000 0x1B7 0x5B56400A]
IncomingConnectionId[0x8CDAC180 0x10000 0x1B7 0x5B56400A]
CallID=1022
GlobalCallId=[0xC3DAB665 0x770C11E5 0x80318550 0x5A000ED7]
SessionIDLocaluuid=d82c680a3eaecd5c29ac6ceeaa225061
SessionIDRemoteuuid=6497636d0b747785241cfbf5aa225064
CallReferenceId=0
CallServiceType=Unknown
RTP Loopback Call=FALSE
RemoteIPAddress=[Link]
RemoteUDPPort=16614
RemoteSignallingIPAddress=[Link]
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1065
Serviceability
Troubleshooting Tips
RemoteSignallingPort=5060
RemoteMediaIPAddress=[Link]
RemoteMediaPort=16614
CoderTypeRate=g711ulaw
.
.
.
.
GlobalCallId=[0xC3DAB665 0x770C11E5 0x80318550 0x5A000ED7]
SessionIDLocaluuid=6497636d0b747785241cfbf5aa225064
SessionIDRemoteuuid=d82c680a3eaecd5c29ac6ceeaa225061
RemoteIPAddress=[Link]
RemoteUDPPort=21978
RemoteSignallingIPAddress=[Link]
RemoteSignallingPort=5060
RemoteMediaIPAddress=[Link]
RemoteMediaPort=21978
From the above output, you get to know that 1022 (highlighted) is the call identifier associated with
the local session identifier d82c680a3eaecd5c29ac6ceeaa225061. You can now use this call identifier
to get further details and debugging of the desired call as shown below:
Device# show sip-ua calls callid 1022
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1066
Serviceability
Troubleshooting Tips
Call 2
SIP Call ID : C3DEFC15-770C11E5-80348550-5A000ED7@[Link]
State of the call : STATE_ACTIVE (7)
Substate of the call : SUBSTATE_NONE (0)
Calling Number : 4443332212
Called Number : 4443332211
Called URI : sip:4443332211@[Link]:5060
Bit Flags : 0xC04018 0x90000100 0x80080
CC Call ID : 1023
Source IP Address (Sig ): [Link]
Destn SIP Req Addr:Port : [[Link]]:5060
Destn SIP Resp Addr:Port: [[Link]]:5060
Destination Name : [Link]
Number of Media Streams : 1
Number of Active Streams: 1
RTP Fork Object : 0x0
Media Mode : flow-through
Media Stream 1
State of the stream : STREAM_ACTIVE
Stream Call ID : 1023
Stream Type : voice-only (0)
Stream Media Addr Type : 1
Negotiated Codec : g711ulaw (160 bytes)
Codec Payload Type : 0
Negotiated Dtmf-relay : inband-voice
Dtmf-relay Payload Type : 0
QoS ID : -1
Local QoS Strength : BestEffort
Negotiated QoS Strength : BestEffort
Negotiated QoS Direction : None
Local QoS Status : None
Media Source IP Addr:Port: [[Link]]:16426
Media Dest IP Addr:Port : [[Link]]:21978
Note All the search patterns listed above for voice calls are also valid for video calls.
You can search for the session identifier using complete UUID (local, remote, or both) or use a
wildcard pattern.
Device# show call active video session-id 6f*
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
GENERIC:
SetupTime=56399650 ms (*16:58:12.964 IST Thu Aug 20 2015)
Index=1
PeerAddress=sipp
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1067
Serviceability
Troubleshooting Tips
PeerSubAddress=
PeerId=1
PeerIfIndex=14
LogicalIfIndex=0
ConnectTime=56400660 ms (*16:58:13.974 IST Thu Aug 20 2015)
CallDuration=00:00:56 sec
CallState=4
CallOrigin=2
ChargedUnits=0
InfoType=video
TransmitPackets=0
TransmitBytes=0
ReceivePackets=0
ReceiveBytes=0
VOIP:
ConnectionId[0x6083CB92 0x466511E5 0xFFFFFFFF8018F617 0xFFFFFFFFA7C45A02]
IncomingConnectionId[0x6083CB92 0x466511E5 0xFFFFFFFF8018F617 0xFFFFFFFFA7C45A02]
CallID=11
GlobalCallId=[0x6083F24F 0x466511E5 0xFFFFFFFF801BF617 0xFFFFFFFFA7C45A02]
CallReferenceId=0
CallServiceType=Unknown
RTP Loopback Call=FALSE
SessionIDLocaluuid=6f0a93a3a79451aebeb6d83f79a3359f
SessionIDRemoteuuid=a55b0f45861551b88f57d1fb5bb23f89
RemoteIPAddress=[Link]
RemoteSignallingIPAddress=[Link]
RemoteSignallingPort=5061
RemoteMediaIPAddress=[Link]
RemoteMediaPort=6003
RoundTripDelay=0 ms
tx_DtmfRelay=inband-voice
FastConnect=FALSE
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1068
PA R T XXIV
Security Compliance
• Common Criteria (CC) and The Federal Information Processing Standards (FIPS) Compliance, on page
1071
CHAPTER 81
Common Criteria (CC) and The Federal
Information Processing Standards (FIPS)
Compliance
Cisco Unified Border Element is Common Criteria (CC) and The Federal Information Processing Standards
(FIPS) certified. The certification is applicable to Cisco Unified Border Element on Cisco CSR 1000v Series
Cloud Services Router platform only.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1071
Security Compliance
Feature Information for Common Criteria (CC) and the Federal Information Standards (FIPS) Compliance
Common Criteria (CC) Cisco IOS XE Fuji Release Common Criteria (CC) and The Federal Information
and The Federal 16.9.1 Standards (FIPS) Certification for Cisco Unified
Information Standards Border Element on Cisco CSR 1000v Series Cloud
(FIPS) Certification. Services Router.
Procedure
Step 1 enable
Example:
Router# enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1072
Security Compliance
SIP TLS Configuration
Step 3 cc-mode
Example:
Router(config)# cc-mode
What to do next
Common Criteria (CC) mode enforces certain security checks for cryptographic protocols such as Transport
Layer Security (TLS). CUBE uses TLS to secure signaling over SIP and HTTP client for XCC providers.
Configure SIP TLS and HTTP TLS in the Common Criteria (CC) mode.
Procedure
Step 1 enable
Example:
Router#enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1073
Security Compliance
Configure Certificate Authority Server
Generates a public RSA key that is used with your CSR certificate.
• The key-label specifies the name that is used for an RSA key pair when they are exported.
• The modulus-size specifies the size of the key modulus. By default, the modulus of a Certification Authority (CA)
key is 1024 bits. The size of the key modulus must be 2048 bits or higher, for it to be Common Criteria compliant.
Step 4 exit
Example:
Router(config)#exit
Procedure
Step 1 enable
Example:
Router# enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1074
Security Compliance
Configure Certificate Authority Server
Defines a label for the Certificate Server and enters the certificate server configuration mode.
Note
If you have generated the RSA key pair manually using the command crypto key generate rsa label key-label modulus
modulus-size , the cs-label must match with the key-label, otherwise a certificate with the default key size of 1024 bits
is generated.
Automatically grants reenrollment requests for subordinate Certificate Authority (CA) server or Registration Authority
(RA) mode Certificate Authority (CA).
Sets the hash function SHA-384 for the signature that the Cisco IOS Certificate Authority (CA) uses to sign all the
certificates that are issued by the server.
Step 7 no shut
Example:
Router(cs-server)#no shut
%Some server settings cannot be changed after CA certificate generation.
% Please enter a passphrase to protect the private key
% or type Return to exit
Password:
Re-enter password:
Enables or reenables the certificate server. If the subordinate certificate server is enabled for the first time, the certificate
server generates the key and receives its signing certificate from the root certificate server.
After entering the passphrase (when prompted), the certificate server is enabled. This passphrase protects the private key.
Step 8 exit
Example:
Router(cs-server)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1075
Security Compliance
Configure CSR Trustpoint
Procedure
Step 1 enable
Example:
Router#enable
Declares the trustpoint with the name specified and enters trustpoint configuration mode. This truspoint is used by your
Router application for the TLS communication.
Sets the hash function SHA-384 for the signature that the Cisco IOS Certificate Authority (CA) uses to sign all the
certificates that are issued by the server.
A trustpoint with sample CSR certificate with subject-name "CN=Secure-Router" and "rsakeypair Router" is given below.
The "rsakeypair label" must match with the label of the RSA keys that are generated in the earlier steps.
crypto pki trustpoint CUBE-TLS
enrollment url [Link]
serial-number none
fqdn none
ip-address none
subject-name CN=Secure-CUBE
revocation-check none
rsakeypair Router
Step 5 exit
Example:
Router(ca-trustpoint)# exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1076
Security Compliance
Configure Peer Trustpoint
Procedure
Step 1 enable
Example:
Router#enable
Declares the peer trustpoint with the name specified and enters trustpoint configuration mode.
Specifies manual certificate enrollment via the cut-and-paste method for trustpoint peers. The certificate request displayed
on the console terminal can be manually copied.
Step 6 exit
Example:
Router(ca-trustpoint)#exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1077
Security Compliance
Add Client Verification Trustpoint
Procedure
Step 1 enable
Example:
Router#enable
Step 3 sip-ua
Example:
Router(config)#sip-ua
Enters SIP User Agent configuration mode to configure SIP-UA related commands.
Step 4 crypto signaling remote-addr remote ip address remote ip mask trustpoint CUBEs trustpoint label client-vtp verification
trustpoint
Example:
Router(config-sip-ua)#crypto signaling remote-addr X.X.X.X [Link] trustpoint CUBE-TLS
client-vtp CUBE-VERIFY
Assigns a client verification trustpoint to SIP-UA. This client verification trustpoint is used to send Distinguished Name
(DN) of the Certificate Authority (CA) server in the CUBE's client certificate request.
Step 5 exit
Example:
Router(config-sip-ua)#exit
Procedure
Step 1 enable
Example:
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1078
Security Compliance
HTTPS TLS Configuration
Router#enable
Enters voice service configuration mode and specifies the encapsulation method as VoIP.
Step 4 srtp
Example:
Router(conf-voi-ser)#srtp
Step 5 exit
Example:
Router(conf-voi-ser)#exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1079
Security Compliance
Prepare Cisco CSR 1000v Router's HTTP Server to Run in CC Mode
Procedure
Step 1 enable
Example:
Router#enable
Enables the HTTP server on the Cisco CSR 1000v router, allowing the use of Cisco web browser UI to monitor the router
and issue commands to it.
Specifies the authentication method for HTTP server users. The keyword local indicates that the username, password,
and privilege level access combination that is specified in the local system configuration should be used for authentication
and authorization.
Specifies the trustpoint that is used for obtaining signed certificates for a secure HTTP server on the Cisco CSR 1000v
router.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1080
Security Compliance
Create Certificate Map for HTTPS Peer Trustpoint
Configures the HTTP server to request an X.509v3 certificate from the client to authenticate the client during the connection
process.
Configures the client verification trustpoint for the HTTP server on the Cisco CSR 1000v router. This peer verification
trustpoint is used to send Distinguished Name (DN) of Certificate Authority (CA) in the client certificate request during
the TLS handshake of HTTP.
Step 9 exit
Example:
Router(config)#exit
Procedure
Step 1 enable
Example:
Router#enable
Creates a certificate map that defines certificate-based Access Control Lists (ACLs) and enters the certificate map
configuration mode. The sequence-number orders the ACLs with the same label. ACLs with the same label are processed
from the lowest to the highest sequence number. When an ACL is matched, the processing stops with a successful result.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1081
Security Compliance
Configure HTTPS TLS Version
Specifies the certificate fields with their matching criteria in the certificate map configuration mode. The alternate subject
name that is specified in the map must be present in SAN extension of the peer id certificate.
Step 5 exit
Example:
Router(ca-certificate-map)#exit
Procedure
Step 1 enable
Example:
Router#enable
Configures the specified TLS version for HTTPS. Configure TLSv1.1 or TLSv1.2 to be Common Criteria compliant.
Step 4 exit
Example:
Router(config)#exit
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1082
Security Compliance
Configure Supported Cipher Suites
Procedure
Step 1 enable
Example:
Router#enable
Specifies the cipher suites that are used for encryption over the secure HTTP connection between the client and the HTTP
server. Common Criteria supports the cipher suites that are given in the preceding example. Configure all the cipher suites
if you are not aware of the client cipher support.
Step 4 exit
Example:
Router(config)#exit
Procedure
Step 1 enable
Example:
Router#enable
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1083
Security Compliance
NTP Configuration Restrictions in Common Criteria Mode
Declares the HTTPS peer trustpoint for the Cisco CSR 1000v router.
Associates the certificate map that is defined by using the crypto pki certificate map command with the HTTPS
trustpoint. The map name argument in the match certificate command must match the label argument that is specified
in the previously defined crypto pki certificate map command.
Allows the HTTPS peer which acts as a client and a server to validate a peer certificate only if the specified Extended
Key Usage (EKU) attribute is present in the certificate. If the Cisco CSR 1000v router is a client, then you must configure
server-auth. If Cisco CSR 1000v router is a server, then you must configure client-auth.
Step 6 exit
Example:
Router(ca-trustpoint)#exit
• Do not configure NTP broadcast. Following are the NTP broadcast commands.
• ntp broadcast delay delay-timer
• ntp broadcast client
• ntp broadcast destination ip-address
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1084
Security Compliance
FIPS Configuration on Cisco CSR 1000v
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1085
Security Compliance
Configuration Requirements for FIPS Compliance
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1086
PA R T XXV
Appendixes
• Additional References, on page 1089
• Glossary, on page 1093
CHAPTER 82
Additional References
The following sections provide references related to the CUBE Configuration Guide.
• Related References, on page 1089
• Standards, on page 1090
• MIBs, on page 1090
• RFCs, on page 1090
• Technical Assistance, on page 1092
Related References
Related Topic Document Title
Feature For information about platforms supported, and Cisco IOS software image support., search by Featur
Navigator Name listed in Feature Information Table in [Link]/go/cfn
Bug Search For information about latest caveats and feature information, see Bug Search Tool
Tool Kit
Cisco IOS For more information about Cisco IOS voice features, including feature documents, and troubleshooting
Voice information--at
Configuration
[Link]
Library
Related • Cisco Unified Communications Manager and Cisco IOS Interoperability Guide
Application
Guides • Cisco IOS SIP Configuration Guide
• Cisco Unified Communications Manager (CallManager) Programming Guides
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1089
Appendixes
Standards
[Link]
Standards
Standard Title
ITU-T G.711 —
MIBs
MIB MIBs Link
• CISCO-PROCESS MIB To locate and download MIBs for selected platforms, Cisco IOS
XE software releases, and feature sets, use Cisco MIB Locator
• CISCO-MEMORY-POOL-MIB found at the following URL:
• CISCO-SIP-UA-MIB [Link]
• DIAL-CONTROL-MIB
• CISCO-VOICE-DIAL-CONTROL-MIB
• CISCO-DSP-MGMT-MIB
• IF-MIB
• IP-TAP-MIB
• TAP2-MIB
• USER-CONNECTION-TAP-MIB
RFCs
RFC Title
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1090
Appendixes
RFCs
RFC Title
RFC 2782 A DNS RR for Specifying the Location of Services (DNS SRV)
RFC 2833 RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals
RFC 3264 An Offer/Answer Model with the Session Description Protocol (SDP)
RFC 3323 A Privacy Mechanism for the Session Initiation Protocol (SIP)
RFC 3325 Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within
Trusted Networks
RFC 3361 Dynamic Host Configuration Protocol (DHCP-for-IPv4) Option for Session Initiation
Protocol (SIP) Servers
RFC 3455 Private Header (P-Header) Extensions to the Session Initiation Protocol (SIP) for the
3rd-Generation Partnership Project (3GPP)
RFC 3608 Session Initiation Protocol (SIP) Extension Header Field for Service Route Discovery
During Registration
RFC 3925 Vendor-Identifying Vendor Options for Dynamic Host Configuration Protocol version 4
(DHCPv4)
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1091
Appendixes
Technical Assistance
Technical Assistance
Description Link
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1092
CHAPTER 83
Glossary
• Glossary, on page 1093
Glossary
AMR-NB —Adaptive Multi Rate codec - Narrow Band.
Allow header —Lists the set of methods supported by the UA generating the message.
bind — In SIP, configuring the source address for signaling and media packets to the IP address of a specific
interface.
call —In SIP, a call consists of all participants in a conference invited by a common source. A SIP call is
identified by a globally unique call identifier. A point-to-point IP telephony conversation maps into a single
SIP call.
call leg —A logical connection between the router and another endpoint.
CLI —command-line interface.
Content-Type header —Specifies the media type of the message body.
CSeq header —Serves as a way to identify and order transactions. It consists of a sequence number and a
method. It uniquely identifies transactions and differentiates between new requests and request retransmissions.
delta —An incremental value. In this case, the delta is the difference between the current time and the time
when the response occurred.
dial peer —An addressable call endpoint.
DNS -—Domain Name System. Used to translate H.323 IDs, URLs, or e-mail IDs to IP addresses. DNS is
also used to assist in locating remote gatekeepers and to reverse-map raw IP addresses to host names of
administrative domains.
DNS SRV —Domain Name System Server. Used to locate servers for a given service.
DSP —Digital Signal Processor.
DTMF —dual-tone multifrequency. Use of two simultaneous voice-band tones for dialing (such as touch-tone).
EFXS —IP phone virtual voice ports.
FQDN —fully qualified domain name. Complete domain name including the host portion; for example,
[Link] .
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1093
Appendixes
Glossary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1094
Appendixes
Glossary
session —A SIP session is a set of multimedia senders and receivers and the data streams flowing between
the senders and receivers. A SIP multimedia conference is an example of a session. The called party can be
invited several times by different calls to the same session.
session expiration —The time at which an element considers the call timed out if no successful INVITE
transaction occurs first.
session interval —The largest amount of time that can occur between INVITE requests in a call before a call
is timed out. The session interval is conveyed in the Session-Expires header. The UAS obtains this value from
the Session-Expires header of a 2xx INVITE response that it sends. Proxies and UACs determine this value
from the Session-Expires header in a 2xx INVITE response they receive.
SIP —Session Initiation Protocol. An application-layer protocol originally developed by the Multiparty
Multimedia Session Control (MMUSIC) working group of the Internet Engineering Task Force (IETF). Their
goal was to equip platforms to signal the setup of voice and multimedia calls over IP networks. SIP features
are compliant with IETF RFC 2543, published in March 1999.
SIP URL —Session Initiation Protocol Uniform Resource Locator. Used in SIP messages to indicate the
originator, recipient, and destination of the SIP request. Takes the basic form of user@host , where user is a
name or telephone number, and host is a domain name or network address.
SPI —service provider interface.
socket listener —Software provided by a socket client to receives datagrams addressed to the socket.
stateful proxy —A proxy in keepalive mode that remembers incoming and outgoing requests.
TCP —Transmission Control Protocol. Connection-oriented transport layer protocol that provides reliable
full-duplex data transmissions. TCP is part of the TCP/IP protocol stack. See also TCP/IP and IP.
TDM —time-division multiplexing.
UA —user agent. A combination of UAS and UAC that initiates and receives calls. See UASand UAC.
UAC —user agent client. A client application that initiates a SIP request.
UAS —user agent server. A server application that contacts the user when a SIP request is received and then
returns a response on behalf of the user. The response accepts, rejects, or redirects the request.
UDP —User Datagram Protocol. Connectionless transport layer protocol in the TCP/IP protocol stack. UDP
is a simple protocol that exchanges datagrams without acknowledgments or guaranteed delivery, requiring
that error processing and retransmission be handled by other protocols. UDP is defined in RFC-768.
URI —Uniform Resource Identifier. Takes a form similar to an e-mail address. It indicates the user’s SIP
identity and is used for redirection of SIP messages.
URL —Universal Resource Locator. Standard address of any resource on the Internet that is part of the World
Wide Web (WWW).
User Agent —A combination of UAS and UAC that initiates and receives calls. See UAS and UAC.
VFC —Voice Feature Card.
VoIP —Voice over IP. The ability to carry normal telephone-style voice over an IP-based Internet with
POTS-like functionality, reliability, and voice quality. VoIP is a blanket term that generally refers to the Cisco
standards-based approach (for example, H.323) to IP voice traffic.
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1095
Appendixes
Glossary
Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5
1096