/mcpThe information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command. Background Information SIP Profiles are used in order to manipulate header information in the SIP messages. They can also be used to make changes in the Session Description Protocol (SDP), which is used to negotiate media. Common SIP Message Normalization Scenarios This section provides several SIP message normalization scenarios that have been seen frequently. Each scenario includes the configuration required on Cisco IOS for your reference and a screenshot from the SIP Profile Test Tool that is mentioned in the Introduction. These scenarios can be used as references for other manipulation required on the SIP messages. Copy Value from Diversion Header to the From Header
voice class sip-profiles 1
request INVITE sip-header Diversion copy "<sip:(.)@." u01
request INVITE sip-header From copy ".<sip:(.)@.*" u02
request INVITE sip-header From modify "(.)<sip:.@(.*)" "\1<sip:\u01@\2"
request INVITE sip-header From modify "<sip:@" "<sip:\u02@"
Copy Number from To Header in an Incoming Invite to the REQ-URI Parameter (Prior to Cisco IOS Version 15.4)
