hmr for Diversion utilizing location prefixes, mulitple locations
Adding HMR to insert correct Diversion based on calling location. We use location prefixes (3 digits) and these represent geographical locations. I have a working HMR but I have 220 locations to add and want to do it as efficiently as allowed. The included HMR represents a single location:
header-rule
name branchNum999
header-name To
action store
comparison-type pattern-rule
msg-type any
methods INVITE
match-value
new-value
element-rule
name branch999
parameter-name
type uri-user-only
action store
match-val-type any
comparison-type pattern-rule
match-value ^999(.+)$
new-value
header-rule
name xID999
header-name request-uri
action manipulate
comparison-type case-sensitive
msg-type out-of-dialog
methods INVITE
match-value
new-value
element-rule
name x999
parameter-name
type uri-user-only
action replace
match-val-type any