Acme Packet (MOSC)

MOSC Banner

How to write a Whitelist ?

edited Sep 3, 2014 10:40PM in Acme Packet (MOSC) 10 commentsAnswered ✓

HI

I would like to write a whitelist by checking  "From"

 

sip-manipulation

        name                           test1

        description                   

        split-headers                 

        join-headers                  

        header-rule

                name                           WhiteList

                header-name                    From              

                action                         manipulate

                comparison-type                case-sensitive

                msg-type                       any

                methods                        INVITE

                match-value                   

                new-value                     

                element-rule

                        name                           Reject

                        parameter-name                 

                        type                           uri-user

                        action                         reject

                        match-val-type                 any

                        comparison-type                pattern-rule

                        match-value                    !(^28371315)

                        new-value                      403:NumberNotAllowed

 

 

 

But it seem not working.

I checked the test-pattern result as shown follows

 

(test-pattern-rule)# show

Pattern Rule:

        Expression : !(^28371315)

        String     : 1234567

        Matched    : FALSE

        Matches:

 

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