HMR to pull custom headers out of INVITE and populate them in the 200 Ok
We need to pull information from two custom headers in our INVITE ( User-to-User and Cisco-Gucid) and populate the in the corresponding reply (200 Ok). This is what I've come up with so far.
header-rule
name getID
header-name User-to-User
action store
comparison-type case-sensitive
msg-type request
methods INVITE
match-value
new-value
element-rule
name storeUsertoUser
parameter-name User-to-User
type header-value
action store
match-val-type any
comparison-type pattern-rule
match-value
new-value
element-rule
name storeGUCID
parameter-name Cisco-Gucid
type header-value
action store
match-val-type any
comparison-type pattern-rule
match-value
new-value
header-rule
name addID
header-name User-to-User
action add
comparison-type pattern-rule
msg-type reply
methods INVITE
match-value
new-value
element-rule
name addUsertoUser
parameter-name
type header-value
action add