Reject Register with contact=*
HI,
I would like to reject de-registrations using contact=* in my SBC. I have an HMR:
sip-manipulation
name rejectRegisterStar
description
split-headers
join-headers
header-rule
name CheckContact
header-name Contact
action store
comparison-type case-sensitive
msg-type any
methods REGISTER
match-value
new-value
element-rule
name CheckStarcontact
parameter-name
type uri-user
action store
match-val-type any
comparison-type pattern-rule
match-value \*
new-value
header-rule
name rejectIfstar
header-name Contact
action reject
comparison-type boolean
msg-type any
methods REGISTER
match-value $CheckContact.$CheckStarcontact
new-value 403:"Forbidden Access"
But it doesn't work and I got the message:
Jan 2 14:45:19.082 [SIP] (1) Executing Manipulation Set rejectRegisterStar
Jan 2 14:45:19.082 [SIP] (1) Got Header Rule CheckContact (headerName=Contact action=store cmpType=case-sensitive)
Jan 2 14:45:19.082 [SIP] (1) storeValue rule: CheckContact parentIndex: currentIndex: 0:LAST:CURRENT flags: :ISREF storedValues: 0 anyValues: 0 allMatch: TRUE