header-rule to change the ANI
Hi , we have this HMR to change the ANI . This verifies if they correct ANI passes unchanged, if something comes out of the range we verify imposing a specific ANI.
sip-manipulation
name ani-verify
description ani-verify
split-headers
join-headers
header-rule
name hrFromStore
header-name From
action none
comparison-type pattern-rule
msg-type request
methods
match-value
new-value
element-rule
name erFromStore
parameter-name From
type uri-user
action store
match-val-type any
comparison-type pattern-rule
match-value ^1152796811$|^2304315211$|
new-value
header-rule
name hrFrom
header-name From
action manipulate
comparison-type pattern-rule
msg-type request
methods
match-value
new-value
element-rule
name erFromIf
parameter-name From
type uri-user
action replace
match-val-type any
comparison-type boolean
match-value $hrFromStore.$erFromStore
new-value $ORIGINAL
element-rule
name erFromIfNot