How to write a Whitelist ?
HI
I would like to write a whitelist by checking "From"
sip-manipulation
name test1
description
split-headers
join-headers
header-rule
name WhiteList
header-name From
action manipulate
comparison-type case-sensitive
msg-type any
methods INVITE
match-value
new-value
element-rule
name Reject
parameter-name
type uri-user
action reject
match-val-type any
comparison-type pattern-rule
match-value !(^28371315)
new-value 403:NumberNotAllowed
But it seem not working.
I checked the test-pattern result as shown follows
(test-pattern-rule)# show
Pattern Rule:
Expression : !(^28371315)
String : 1234567
Matched : FALSE
Matches: