Acme Packet (MOSC)

MOSC Banner

HMR to replace "plus or +"

Hi Fellows,


I would like you can help me to be clear which do you think should be the correct way to replace a value that starts with (plus or +); only if start with + and the next digits are 12345.

Example +12345


These 2 rules are working fine:


    header-rule

        name                  Change_PAI_165

        header-name               P-Asserted-Identity

        action                 manipulate

        comparison-type             case-sensitive

        msg-type                request

        methods

        match-value

        new-value

        element-rule

            name                  Pai_12345

            parameter-name

            type                  uri-user

            action                 replace

            match-val-type             any

            comparison-type             pattern-rule

            match-value               ^\+(12345)$

            new-value                "+"+"67890"



or 


        element-rule

            name                  Pai_12345

            parameter-name

            type                  uri-user

            action                 replace

            match-val-type             any

            comparison-type             pattern-rule

            match-value               ^\+12345$

            new-value                "+"+"67890"


Before that,

I did some element rules like below but was changing to +67890 all that start with (plus +). 

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