Acme Packet (MOSC)

MOSC Banner

Reject Register with contact=*

edited Jan 3, 2018 10:31AM in Acme Packet (MOSC) 5 commentsAnswered ✓

HI,

I would like to reject de-registrations using contact=* in my SBC. I have an HMR:

sip-manipulation

        name                                    rejectRegisterStar

        description

        split-headers

        join-headers

        header-rule

                name                                    CheckContact

                header-name                             Contact

                action                                  store

                comparison-type                         case-sensitive

                msg-type                                any

                methods                                 REGISTER

                match-value

                new-value

                element-rule

                        name                                    CheckStarcontact

                        parameter-name

                        type                                    uri-user

                        action                                  store

                        match-val-type                          any

                        comparison-type                         pattern-rule

                        match-value                             \*

                        new-value

        header-rule

                name                                    rejectIfstar

                header-name                             Contact

                action                                  reject

                comparison-type                         boolean

                msg-type                                any

                methods                                 REGISTER

                match-value                             $CheckContact.$CheckStarcontact

                new-value                               403:"Forbidden Access"

But it doesn't work and I got the message:

Jan  2 14:45:19.082 [SIP] (1) Executing Manipulation Set rejectRegisterStar

Jan  2 14:45:19.082 [SIP] (1) Got Header Rule CheckContact (headerName=Contact action=store cmpType=case-sensitive)

Jan  2 14:45:19.082 [SIP] (1) storeValue rule: CheckContact parentIndex:  currentIndex: 0:LAST:CURRENT flags: :ISREF storedValues: 0 anyValues: 0 allMatch: TRUE

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