HMR for writing Contact from 300 message to CDR and removing commas.
Hello,
I am trying to write an Header Manipulation Rule in my Acme/Oracle SBC. This HMR is taken from the book and works at writing the value of the Contact header to the CDR.
sip-manipulation
name VSA200
description
split-headers
join-headers
header-rule
name storeContact
header-name from
action store
comparison-type pattern-rule
msg-type reply
methods
match-value .*
new-value
header-rule
name generateVSA200
header-name P-Acme-VSA
action add
comparison-type case-sensitive
msg-type any
methods INVITE
match-value
new-value 200:+$storeContact.$0
Here is the Contact Header I receive in the 300:
Contact: <sip:+12394957995@SAG-BW>, <sip:+12394957995@SAG-L3-VT>, <sip:+12394957995@SAG-LASTCALL>
Here is what it looks like in CDR/CSV format:
... ,"<sip:+12394957995@SAG-BW>, <sip:+12394957995@SAG-L3-VT>, <sip:+12394957995@SAG-LASTCALL>