How can I deny the blacklist registration?
Dear All,
I want to create a blacklist for deny the registration.
Any quick way to do ?
header-rule
name Blacklist_matchFrom
header-name from
action store
comparison-type pattern-rule
msg-type request
methods INVITE,REGISTER
match-value
new-value
element-rule
name Blacklist_matchFromvalue
parameter-name from
type uri-user
action store
match-val-type any
comparison-type pattern-rule
match-value ^\+1445566778[0-4]
new-value
header-rule
name ChangeRURI
header-name request-uri
action manipulate
comparison-type pattern-rule
msg-type request
methods INVITE,REGISTER
match-value $Blacklist_matchFrom.$Blacklist_matchFromvalue
new-value
element-rule
name changeRURIvalue
parameter-name request-uri
type header-value
action replace
match-val-type any
comparison-type pattern-rule
match-value
new-value sip:block@blacklist.acme
last-modified-by admin@1.1.1.1
last-modified-date 2012-12-18 03:58:33
local-policy
from-address
*
to-address
blacklist.acme