Acme Packet (MOSC)

MOSC Banner

Update npa/nxx within RURI copied via FROM

edited Oct 7, 2016 10:02AM in Acme Packet (MOSC) 5 commentsAnswered ✓

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center