HMR to Replace the (Status-Line: SIP/2.0 302 ->Status-Code: 302) when Contact uri-user start with +
Hello fellows:
I would like you can help me to give more ideas how define the following HMR.
I am doing a HMR to change the (Status-Line: SIP/2.0 302 Moved Temporarily-> Status-Code: 302) of the SIP 302 message to a status code SIP 699.
I am doing the HMR to match when uri-user of the Contact comes with 00xxxxxxxxxxxx and when comes with +xxxxxxxxxxxx, where xxxxxxxxxxxx(could be any digits).
See below our HMR.
sip-manipulation
name Reject302_v4
description
split-headers
join-headers
header-rule
name sip302
header-name @status-line
action manipulate
comparison-type case-sensitive
msg-type reply
methods INVITE
match-value
new-value
element-rule
name is302
parameter-name
type status-code
action store