Copying SIP Headers. Feature Information for Copying with SIP Profiles

Similar documents
Copying SIP Headers. Feature Information for Copying with SIP Profiles

Manipulating SIP Status-Line Header of SIP Responses

Figure 1: Incoming and Outgoing messages where SIP Profiles can be applied

Matching Inbound Dial Peers by URI

URI-Based Dialing Enhancements

URI-Based Dialing Enhancements

Server Groups in Outbound Dial Peers

Configuring Media Antitrombone

Cisco Unified Border Element Intercluster Lookup Service

Dynamic Payload Type Interworking for DTMF

The Dynamic Payload Type Interworking for DTMF and Codec Packets for SIP-to-SIP Calls feature provides

Configuring an Error Response Code upon an Out-of-Dialog OPTIONS Ping Failure

Hiding the Internal Topology Information Embedded Within the History-info Header at the Cisco UBE

Media Path. Feature Information for Media Path

Configuring SIP Registration Proxy on Cisco UBE

Cisco UBE Out-of-dialog OPTIONS Ping

Mid-call Signaling Consumption

Video Recording - Additional Configurations

AAC-LD MP4A-LATM Codec Support on Cisco UBE

Cisco Unified Border Element (CUBE) Integration Guide

Call Progress Analysis Over IP-to-IP Media Session

Call Progress Analysis Over IP-to-IP Media Session

Configuring Multi-Tenants on SIP Trunks

Network-Based Recording of Video Calls Using Cisco Unified Border Element

Expires Timer Reset on Receiving or Sending SIP 183 Message

Figure 1: Incoming and Outgoing messages where SIP Profiles can be applied

Configuring Support for SIP 181 Call is Being Forwarded Message

H.323-to-H.323 Interworking on CUBE

NanoCUBE -- Emergency Number Preemption

DSP-Based Functionality on the Cisco UBE EnterpriseIncludingTranscodingandTransrating

Domain-Based Routing Support on the Cisco UBE

Courtesy Call Back Configuration Quick Steps (Lab)

Multicast Music-on-Hold Support on Cisco UBE

Transparent Tunneling of QSIG and Q.931 over SIP TDM Gateway and SIP-SIP Cisco Unified Border Element

Configuring SIP Support for Hookflash

ICE-Lite Support on CUBE

Toll Fraud Prevention

Services Extended Media Forking

NAT Routemaps Outside-to-Inside Support

Cisco Unified Communications Gateway Services--Extended Media Forking

SIP-to-SIP Connections on a Cisco Unified Border Element

CUCM 10.5 / CUBE 9.5. BT SIP Trunk Configuration Guide. 1 BT SIP Trunk Configuration Guide

Cisco Unified Communications Manager with Cisco Unified Border Element (CUBE ) on ISR4321 [IOS-XE ] using SIP

BGP-VPN Distinguisher Attribute

Unified Border Element (CUBE) with Cisco Unified Communications Manager (CUCM) Configuration Example

Mid-call Re-INVITE/UPDATE Consumption

BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard

DTMF Events through SIP Signaling

DHCP Client. Finding Feature Information. Restrictions for the DHCP Client

Fine-Grain NBAR for Selective Applications

Common Components. Cisco Unified Border Element (SP Edition) Configuration Profile Examples 5 OL

Configuring SIP Support for Hookflash

Configuring VoIP Call Setup Monitoring

Codec Preference Lists

BGP Graceful Shutdown

SIP Binding. Feature Information for SIP Binding

Stateful Switchover Between Redundancy Paired Intra- or Inter-box Devices

Acoustic Shock Protection

Cisco Express Forwarding for IPv6 must be enabled. Virtual routing and forwarding (VRF) is not supported in IPv6 calls.

Gateway Options. PSTN Gateway, page 2

Automatic Line Selection

Negotiation of an Audio Codec from a List of Codecs

Cisco Unified Border Element Protocol-Independent Features and Setup Configuration Guide, Cisco IOS Release 15M&T

BGP Named Community Lists

Configuring SIP Call-Transfer Features

DMP 128 Plus C V DMP 128 Plus C V AT. Cisco CUCM Configuration Guide REVISION: 1.1 DATE: SEPTEMBER 1 ST 2017

DHCP Relay Server ID Override and Link Selection Option 82 Suboptions

Cisco Unified Communications Manager with Cisco Unified Border Element (CUBE ) on ISR 4K [IOS-XE 3.16] using SIP

BGP Route-Map Continue

Finding Feature Information

PracticeTorrent. Latest study torrent with verified answers will facilitate your actual test

Genesys Application Note. Cisco Unified Border Element (CUBE) SBC With Genesys SIP Server. Document Version 1.0

Configure Nuance TTS and ASR for Cisco Unified Contact Center Enterprise (UCCE)

VoIP for IPv6. Finding Feature Information. Prerequisites for VoIP for IPv6

Application Notes for Configuring SIP Trunking between Cincinnati Bell evantage and Avaya Aura Communication Manager Branch Issue 1.

Configuring SIP Bind Features

Support for Software Media Termination Point

Fine-Grain NBAR for Selective Applications

Configuring SIP Call-Transfer Features

Configuring Hosted NAT Traversal for Session Border Controller

Configuring SIP Connection-Oriented Media Forking and MLPP Features

Cisco Unified Communications Manager with Cisco Unified Border Element (CUBE ) on ISR4321/K9 [IOS 15.6(1)S] using SIP

Ringtones. Information About Ringtones. Distinctive Ringing

Table of Contents. Cisco Call manager Express SIP Integration. Last update 2011/10/14 DuVoice Versions 5.00 and above Switch Versions N/A

Cox SIP Trunking: Cisco Unified Communications Manager with Cisco Unified Border Element (CUBE ) on ISR4321 [IOS-XE 3.

Gateway Options. PSTN Gateway. PSTN Gateway, page 1

Call Blocking. Information About Call Blocking. Call Blocking Based on Date and Time (After-Hours Toll Bar)

SIP Trunking using Optimum Business SIP Trunk Adaptor and the Cisco Call Manager Express Version 8.5

IS-IS Inbound Filtering

Loose Checking Option for TCP Window Scaling in Zone-Based Policy Firewall

EIGRP Over the Top. Finding Feature Information. Information About EIGRP Over the Top. EIGRP Over the Top Overview

DMP 128 Plus C V DMP 128 Plus C V AT. Cisco CUCM Configuration Guide REVISION: DATE: MARCH 7 TH, 2018

Cisco Unified Communications Manager with Cisco Unified Border Element (CUBE ) on ISR 4321/K9 [IOS

BT SIP Trunk Configuration Guide

Configurable Number of Simultaneous Packets per Flow

Add Path Support in EIGRP

Cisco IOS Voice Commands: N

SIP Gateway Support for the bind Command

Configuring SIP Bind Features

VLANs over IP Unnumbered SubInterfaces

Transcription:

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, page 1 How to Copy SIP Header Fields to Another, page 2 Copying the To Header into the SIP-Req-URI, page 5 Feature Information for Copying with SIP Profiles 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 www.cisco.com/go/cfn. An account on Cisco.com is not required. Table 1: Feature Information for Copying with SIP Profiles Feature Name Releases Feature Information Support for conditional header manipulation of SIP headers 15.1(3)T This feature allows users to copy content from one header to the another. This is done by copying the content of messages into variables which can then be used to modify other SIP headers. Cisco IOS XE Release 3.6S This feature modifies the following commands: voice class sip-profiles, response, request, voice-class sip copy-list, sip-header 1

How to Copy SIP Header Fields to Another How to Copy SIP Header Fields to Another Copying From an Incoming Header and Modifying an Outgoing Header To copy content from an incoming header that a device receives to an outgoing header, configure a SIP copylist for that header and apply it to an incoming dial peer. A SIP profile is configured to copy this incoming header to a user-defined variable and apply it to an outgoing header. Before You Begin 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 inbound-dial-peer-tag voip 14. voice class sip-copylist tag 15. exit DETAILED STEPS Step 1 enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Enters global configuration mode. 2

Copying From an Incoming Header and Modifying an Outgoing Header Step 3 Step 4 Step 5 Step 6 Step 7 voice class sip-copylist tag Device(config)# voice class sip-copylist 100 Do one of the following: sip-header header-name sip-header SIP-Req-URI Device(config-class)# sip-header To exit dial-peer voice inbound-dial-peer-tag voip Device(config)# dial-peer voice 2 voip voice class sip-copylist tag Configures a list of entities to be sent to a peer call leg and enters voice class configuration mode. Specifies the SIP header to be copied to the peer call leg. sip-req-uri Configures Cisco Unified Border Element (UBE) to send a SIP request Uniform Resource Identifier (URI) to the peer call leg. header-name Configures Cisco Unified Border Element (UBE) to send the header name specified to the peer call leg. Exits voice class configuration mode. Enters the dial peer configuration mode for the specified inbound dial peer. Applies the copy list to the dial-peer. Step 8 Step 9 Step 10 Device(config-dial-peer)# voice class sip-copylist 100 exit voice class sip-profiles profile-id Device(config)# voice class sip-profiles 10 {request response} message peer-header sip header-to-copy copy header-value-to-match copy-variable Exits to global configuration mode. Creates a SIP Profiles and enters voice class configuration mode. Copies headers from the corresponding incoming dial peer into a copy variable. Step 11 Device(config-class)# request INVITE peer-header sip TO copy "sip:(.*)@" u01 {request response} message {sip-header sdp-header} header-to-modify modify header-value-to-match header-value-to-replace Modifies an outgoing SIP or SDP header using the copy variable defined in the previous step. 3

Copying From One Outgoing Header to Another Step 12 Device(config-class)# request INVITE sip-header SIP-Req-URI modify ".*@(.*)" "INVITE sip:\u01@\1" exit Exits to global configuration mode. Step 13 Step 14 dial-peer voice inbound-dial-peer-tag voip Device(config)# dial-peer voice 2 voip voice class sip-copylist tag Enters the dial peer configuration mode for the specified inbound dial peer. Applies the copy list to the dial-peer. Step 15 Device(config-dial-peer)# voice class sip-copylist 100 exit Exits to global configuration mode. What to Do Next Apply the SIP profile to an outbound dial peer. Copying From One Outgoing Header to Another SUMMARY STEPS 1. enable 2. configure terminal 3. voice class sip-profiles profile-id 4. {request response} message {sip-header sdp-header} header-to-copy copy header-value-to-match copy-variable 5. {request response} message {sip-header sdp-header} header-to-modify modify header-value-to-match header-value-to-replace 6. end DETAILED STEPS Step 1 enable Enables privileged EXEC mode. Enter your password if prompted. 4

Copying the To Header into the SIP-Req-URI Step 2 Step 3 Step 4 configure terminal voice class sip-profiles profile-id Device(config)# voice class sip-profiles 10 {request response} message {sip-header sdp-header} header-to-copy copy header-value-to-match copy-variable Enters global configuration mode. Creates a SIP profile and enters voice class configuration mode. Copies the contents of the specified header from an outbound message into a copy variable. Step 5 Device(config-class)# request INVITE sip-header TO copy "sip:(.*)@" u01 {request response} message {sip-header sdp-header} header-to-modify modify header-value-to-match header-value-to-replace Modifies an outgoing SIP or SDP header using the copy variable defined in the previous step. Step 6 Device(config-class)# request INVITE sip-header SIP-Req-URI modify ".*@(.*)" "INVITE sip:\u01@\1" end Device(config-class)# end Exits voice class configuration mode and enters privileged EXEC mode. What to Do Next Apply the SIP Profile to an outbound dial peer. Copying the To Header into the SIP-Req-URI Copying Contents from One Header to Another Given below is a scenario in an organization, where the provider has sent only a global reference number in the SIP-Req-URI header of the INVITE message, and has placed the actual phone destination number only in the To: SIP header. The CUCM typically routes on the SIP-Req-URI. 5

Copying the To Header into the SIP-Req-URI 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 1: Incoming SIP Message Given below is the SIP message that is required. Note that 43565432A5 has changed to 25555552 in the SIP INVITE. Figure 2: Modified SIP Message 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 Device# voice class sip-profiles 1!Copy the To header from the incoming dial peer into variable u01 Device(config-class)# request INVITE peer-header sip TO copy sip:(.*)@ u01!modify the outgoing SIP Invite with this variable. Device(config-class)# request INVITE sip-header SIP-Req-URI modify.*@(.*) INVITE sip:\u01@\1 Apply the SIP profile to the incoming dial peer. Device(config)# dial-peer voice 99 voip Device(config-dial-peer)# outgoing to CUCM Device(config-dial-peer)# destination-pattern 02555555. Device(config-dial-peer)# session protocol sipv2 Device(config-dial-peer)# session target ipv4:10.1.2.3!applying SIP profile to the dial peer Device(config-dial-peer)# voice-class sip profiles 1 Device(config-dial-peer)# voice-class code 1 Device(config-dial-peer)# dtmf-relay rtp-nte Device(config-dial-peer)# no vad 6

Copying the To Header into the SIP-Req-URI Additionally, if you would like to copy the To: Header from the inbound dial peer to the outbound dial peer, use a copy list.!create a copy List Device(config)# voice class sip-copylist 1 Device(config-class)# sip-header TO Device(config-class)# exit!apply the copy list to incoming dial peer. Device(config)# dial-peer voice 1 voip Device(config-dial-peer)# description incoming SIP Trunk Device(config-dial-peer)# session protocol sipv2 Device(config-dial-peer)# session target sip-server Device(config-dial-peer)# incoming uri to TRUNK Device(config-dial-peer)# voice-class code 1 Device(config-dial-peer)# voice-class sip copy-list 1 Device(config)# voice class uri TRUNK sip Device(config-class)# user-id 2555555. Device(config-class)# end 7

Copying the To Header into the SIP-Req-URI 8