HMR to Delete Route header if To doesn't have tag
Greetings;
Create this HMR to delete Route header if To header doesn't have "tag". Basically delete Route header if its initial request and not an in-dialogue request (i.e. re-INVITE). Can you please walk me through what's wrong with my logic as the HMR is deleting Route header even if To has tag ?
sip-manipulation
name deleteRTwithtag
description
split-headers
join-headers
header-rule
name checktotag
header-name TO
action none
comparison-type case-sensitive
msg-type request
methods INVITE
match-value
new-value
element-rule
name checkfortag
parameter-name tag
type header-param-name
action store
match-val-type any
comparison-type case-insensitive
match-value
new-value
header-rule
name StripRouteHdr
header-name Route
action delete
comparison-type boolean
msg-type request