Store Contact IP and Port and add it to a new header
Trying my hand at storing data to add it to a private header, but I can't seem to get it correct. In this case, the contact looks like:
Contact: <sip:2.1.7.7:5062;app-session-id=ba4c61a2;transport=udp>
My manip rule looks like:
sip-manipulation
name Priv_Hdr_Add
description Add private header
split-headers
join-headers
header-rule
name Priv_Hdr_Add
header-name Contact
action store
comparison-type case-sensitive
msg-type request
methods Invite
match-value
new-value
element-rule
name store_host
parameter-name
type uri-host
action store
match-val-type ip
comparison-type case-sensitive
match-value
new-value $0
element-rule
name store_port
parameter-name
type uri-port
action store
match-val-type any
comparison-type case-sensitive
match-value
new-value $1
header-rule