SIPREC XML Parsing
ESBC v9.1.0
In XML sent in SIPREC, am trying to extract a value and use it in another field.
I want to take the value from parameter "xgc" and replace value in "ucid" or add another ucid would also be fine.
The parameters were added via another HMR when the call is REFER'd.
HMR that I tried is as follows:
mime-rule
name storeXML
content-type application/rs-metadata+xml
msg-type request
methods INVITE
format hex-ascii
action store
comparison-type case-sensitive
match-value (.*xgc=)([a-zA-Z0-9]{16})(;.*$)
new-value
mime-rule
name addUUItoXML
content-type application/rs-metadata+xml
msg-type request
methods INVITE
format ascii-string
action find-replace-all
comparison-type case-sensitive
match-value </apkt:ucid>