Update npa/nxx within RURI copied via FROM
Hello;
Created this HMR with intention to copy first 6 digits (npa/nxx) from "FROM" header and replace the first six digits of "uri-user" within RURI (URI will be ten digits, just replacing first fix copied via FROM header). The problem I am having is it HMR replace the whole URI with 6 digits copied from "FROM" header and not pre-pending with RURI.
sip-manipulation
name COPYNPA
description
split-headers
join-headers
header-rule
name getnpa
header-name FROM
action store
comparison-type case-sensitive
msg-type request
methods
match-value
new-value
element-rule
name comparenpa
parameter-name
type uri-phone-number-only
action store
match-val-type any
comparison-type pattern-rule
match-value ^(\+1){0,1}([0-9]{6})(.*)$
new-value
header-rule
name updatenpa
header-name request-uri