Setting, Modifying, Removing SIP Headers

It is possible to add, modify or remove sip headers by using the SIPHeaderInfo Call Variable in the Script Editor.

In the script editor, the Set node is used to set the call variable string for SIPHeaderInfo.

The amount of space available to send header data to Unified ICM is limited and is truncated to 255 bytes.
The SIP protocol RFC provides a function to represent common header field names in an abbreviated form.
The compact header format as defined in RFC 3261 (and other RFCs for newly defined headers) is used for
the header titles before passing the header to Unified ICM.

Extract from RFC 3261

   The compact form of the Call-ID header field is i.
   The compact form of the Contact header field is m (for "moved").
   The compact form of the Content-Encoding header field is e.
   The compact form of the header field is l.
   The compact form of the header field is c.
   The compact form of the From header field is f.
   The compact form of the Subject header field is s.
   The compact form of the Supported header field is k.
   The compact form of the To header field is t.
   The compact form of the Via header field is v.


In the Unified ICM script delimit the header, operation, and value with a tilde character, and use the bar
character to concatenate operations.

Reference:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/customer_voice_portal/srnd/10_5/CCVP_BK_C17804D9_00_cisco-unified-customer-voice-portal/CCVP_BK_C17804D9_00_cisco-unified-customer-voice-portal_chapter_01101.html#CCVP_RF_U5843FA3_00


Add a Header

"Call-Info~add~<sip:[email protected]>;parm1=value1"

Modify a Header

"User-To-User~mod~this is a test"

Remove a Header

"Call-ID~rem"

Example to modify Calling Party Name

concatenate("Remote-Party-ID~mod~Bob Bobster <sip:",Call.CallingLineID,"@cvp-gw>;party=calling;screen=no;privacy=off")

Retrieving the SIP header values

– Configure the SIP Header in the advanced section of CallServer SIP config.
– Retrieve the value stored in Call.SIPHeader

For a good example how to do this check out the below link
https://supportforums.cisco.com/discussion/11436406/cvp-custom-sip-header

  • vendors/cisco/uc/cvp/sip-headers.txt
  • Last modified: 2018/05/17 19:56
  • by gerardorourke