Manipulating SIP Status-Line Header of SIP Responses

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

Copying SIP Headers. Feature Information for Copying with SIP Profiles

Matching Inbound Dial Peers by URI

Server Groups in Outbound Dial Peers

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

Configuring Media Antitrombone

URI-Based Dialing Enhancements

URI-Based Dialing Enhancements

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

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

Media Path. Feature Information for Media Path

Configuring SIP Registration Proxy on Cisco UBE

Cisco UBE Out-of-dialog OPTIONS Ping

Dynamic Payload Type Interworking for DTMF

Video Recording - Additional Configurations

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

NAT Routemaps Outside-to-Inside Support

Configuring Multi-Tenants on SIP Trunks

Cisco Unified Border Element Intercluster Lookup Service

BGP-VPN Distinguisher Attribute

Fine-Grain NBAR for Selective Applications

Mid-call Signaling Consumption

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

BGP Named Community Lists

BGP Graceful Shutdown

Expires Timer Reset on Receiving or Sending SIP 183 Message

BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard

AAC-LD MP4A-LATM Codec Support on Cisco UBE

DSP-Based Functionality on the Cisco UBE EnterpriseIncludingTranscodingandTransrating

BGP Route-Map Continue

Fine-Grain NBAR for Selective Applications

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

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

IS-IS Inbound Filtering

Automatic Line Selection

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

ICE-Lite Support on CUBE

Ringtones. Information About Ringtones. Distinctive Ringing

QoS Group Match and Set for Classification and Marking

Configuring VoIP Call Setup Monitoring

Toll Fraud Prevention

Using Flexible NetFlow Flow Sampling

Using Flexible NetFlow Flow Sampling

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

Domain-Based Routing Support on the Cisco UBE

Configuring Support for SIP 181 Call is Being Forwarded Message

Flexible NetFlow IPv6 Unicast Flows

SSL Custom Application

Per-User ACL Support for 802.1X/MAB/Webauth Users

EIGRP Route Tag Enhancements

BGP AS-Override Split-Horizon

Call Progress Analysis Over IP-to-IP Media Session

PPPoE Smart Server Selection

Call Progress Analysis Over IP-to-IP Media Session

802.1P CoS Bit Set for PPP and PPPoE Control Frames

PPPoE Smart Server Selection

Dial Peer Features and Configuration

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

NanoCUBE -- Emergency Number Preemption

QoS Tunnel Marking for GRE Tunnels

ACL Syslog Correlation

IP over IPv6 Tunnels. Information About IP over IPv6 Tunnels. GRE IPv4 Tunnel Support for IPv6 Traffic

8K GM Scale Improvement

Multicast Music-on-Hold Support on Cisco UBE

Flexible NetFlow IPFIX Export Format

Password Strength and Management for Common Criteria

Add Path Support in EIGRP

Configuring OSPF TTL Security Check and OSPF Graceful Shutdown

The ISG RADIUS Proxy Support for Mobile Users Hotspot Roaming and Accounting Start Filtering feature

SSH Algorithms for Common Criteria Certification

EIGRP Support for Route Map Filtering

IP Named Access Control Lists

Configurable Number of Simultaneous Packets per Flow

VLANs over IP Unnumbered SubInterfaces

DHCP Relay Server ID Override and Link Selection Option 82 Suboptions

Quality of Service for VPNs

Configuring Secure Shell (SSH)

AAA Server Groups. Finding Feature Information. Information About AAA Server Groups. AAA Server Groups

MPLS VPN Explicit Null Label Support with BGP. BGP IPv4 Label Session

NBAR2 HTTP-Based Visibility Dashboard

Marking Network Traffic

Nested Class Map Support for Zone-Based Policy Firewall

Sun RPC ALG Support for Firewalls and NAT

Sun RPC ALG Support for Firewalls and NAT

Mid-call Re-INVITE/UPDATE Consumption

Acoustic Shock Protection

OSPF Limit on Number of Redistributed Routes

Configuring SIP Support for Hookflash

Codec Preference Lists

Negotiation of an Audio Codec from a List of Codecs

MPLS VPN Route Target Rewrite

PIM Allow RP. Finding Feature Information. Restrictions for PIM Allow RP

IP SLAs TWAMP Responder

Restrictions for Disabling Flow Cache Entries in NAT and NAT64

COPS Engine Operation

BGP Monitoring Protocol

SIP Gateway Support for the bind Command

Information About Single Number Reach, on page 1 Configure Single Number Reach, on page 4 Feature Information for Single Number Reach, on page 16

Configuring System MTU

Multi-Level Priority Queues

Transcription:

Manipulating 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 1 Copying Incoming SIP Response Status Line to Outgoing SIP Response, on page 2 Modifying Status-Line Header of Outgoing SIP Response with User Defined Values, on page 5 Feature Information for Manipulating SIP Responses 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 Manipulating SIP Responses Feature Name Releases SIP Profile 15.4(1)T Enhancements for SIP Cisco IOS XE responses and error Release 3.12S codes Feature Information This feature extends SIP profiles to allow the following: Modification of the outgoing SIP response status line. Previously, only modification of outgoing SIP requests and 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. 1

Copying Incoming SIP Response Status Line to Outgoing SIP Response Feature Name Releases Feature Information Support for conditional header manipulation of SIP headers 15.1(3)T Cisco IOS XE Release 3.6S 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. This feature modifies the following commands: voice class sip-profiles, response, request, voice-class sip copy-list, sip-header Copying Incoming SIP Response Status Line to Outgoing SIP Response To copy content from the status line of an incoming SIP response that a device receives to an outgoing response, configure a SIP copylist for SIP status line and apply it to an incoming dial peer. A SIP profile must be configured to copy the status line of an incoming SIP response to a user-defined variable and apply it to an outgoing SIP response. Figure 1: Call Flow for Copying the Status Line from the Incoming SIP Response to the Outgoing SIP Response SUMMARY STEPS 1. enable 2. configure terminal 3. voice class sip-copylist tag 4. sip-header SIP-StatusLine 2

Copying Incoming SIP Response Status Line to Outgoing SIP Response 5. 6. dial-peer voice inbound-dial-peer-id voip 7. voice-class sip copy-list list-id 8. 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. DETAILED STEPS Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 enable Device> enable configure terminal Device# configure terminal voice class sip-copylist tag Device(config)# voice class sip-copylist 1 sip-header SIP-StatusLine Device(config-class)# sip-header SIP-StatusLine Device(config-class)# dial-peer voice inbound-dial-peer-id voip Device(config)# dial-peer voice 99 voip voice-class sip copy-list list-id Device(config-dial-peer)# voice-class sip copy-list 1 Enables privileged EXEC mode. Enter your password if prompted. Enters global Configures a list of entities to be sent to the peer call leg and enters voice class Specifies that the Session Initiation Protocol (SIP) status line header must be sent to the peer call leg. Exits voice class configuration mode and returns to global Specifies an inbound dial peer and enters dial peer Associates the SIP copy list with the inbound dial peer. Exits dial peer configuration mode and returns to global Device(config-dial-peer)# 3

Copying Incoming SIP Response Status Line to Outgoing SIP Response Step 9 voice class sip-profiles tag Enables dial peer-based VoIP SIP profile configurations and enters voice class Step 10 Device(config)# voice class sip-profiles 10 response response-code peer-header sip SIP-StatusLine copy match-pattern copy-variable Copies responses from the corresponding incoming call leg into a copy variable. Step 11 Device(config-class)# response ANY peer-header sip SIP-StatusLine copy "(.*)" u01 response response-code sip-header SIP-StatusLine modify match-pattern copy-variable Modifies an outgoing response using the copy variable defined in the previous step. Step 12 Device(config-class)# response ANY sip-header SIP-StatusLine modify ".*" "\u01" Exits voice class configuration mode and returns to global Device(config-class)# What to do next Apply the SIP profile to the outbound dial peer to copy the SIP response to the outbound leg. 4

Modifying Status-Line Header of Outgoing SIP Response with User Defined Values Modifying Status-Line Header of Outgoing SIP Response with User Defined Values Figure 2: Call Flow Configuring a New Status Line for an Outgoing SIP Response Based on an Incoming SIP Request 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. DETAILED STEPS Step 1 Step 2 enable Device> enable configure terminal Device# configure terminal Enables privileged EXEC mode. Enter your password if prompted. Enters global 5

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 Step 4 Device(config)# voice class sip-profiles 10 response response-code [method method-type] sip-header SIP-StatusLine modify match-pattern replacement-pattern Modifying status line of a SIP header to a user-defined response type: Modifies SIP status line of a SIP response with user-defined values. Step 5 Device(config-class)# response 404 sip-header SIP-StatusLine modify "404 Not Found" "404 MyError" Exits voice class Device(config-class)# What to do next Associate the SIP profile with an outbound dial peer. 6