Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
vendors:cisco:uc:cvp:sip-headers [2024/05/27 09:48] gerardorourkevendors:cisco:uc:cvp:sip-headers [2025/09/18 17:11] (current) gerardorourke
Line 61: Line 61:
 For a good example how to do this check out the below link\\ For a good example how to do this check out the below link\\
 https://supportforums.cisco.com/discussion/11436406/cvp-custom-sip-header\\ https://supportforums.cisco.com/discussion/11436406/cvp-custom-sip-header\\
 +
 +==== Example of how to get a specific header value ====
 +Below shows you an ICM formula to get the header value for the SIP header "X-CardEasy-CID"
 +This approach works no matter how many sip headers you add (remember there is a lengthy limit)
 +If header is not the end one and there is more than one sip header CVP is getting - it will alwasy end with a '|'
 +But even if its the last one - and there is no pipe - it will then return the value **after("X-CardEasy-CID:",Call.SIPHeader)** - so this works and you just replace **X-CardEasy-CID** with the name of your SIP header.
 +I also recommend you use custom functions in your ICM script to get the SIP header values - in case your formula needs to be changed (but this one shouldn't).
 +
 +<code>
 +before("|",after("X-CardEasy-CID:",Call.SIPHeader))
 +</code>
  • vendors/cisco/uc/cvp/sip-headers.1716799685.txt.gz
  • Last modified: 2024/05/27 09:48
  • by gerardorourke