Acme Packet (MOSC)

MOSC Banner

HMR to reject 503 Unavailable when not Authorization-Header

edited Jul 26, 2018 11:30AM in Acme Packet (MOSC) 1 commentAnswered ✓

Hi,

  What is wrong in this HMR to not reject with SIP:503 Unavailable the REGISTER request coming with "Authorization" header?

sip-manipulation

name rejectRegisterCseqAuthorization

   description

   split-headers

   join-headers

   header-rule

    name rejectRegister2

    header-name Authorization

    action manipulate

    comparison-type case-sensitive

    msg-type request

    methods REGISTER

    match-value

    new-value

    element-rule

       name Check_Auth

       parameter-name header-value

       type

       action store

       match-val-type any

       comparison-type pattern-rule

       match-value

      new-value

   header-rule

     name rejectRegister3

     header-name Authorization

     action reject

     comparison-type boolean

     msg-type request

     methods REGISTER

     match-value !$rejectRegister2.$Check_Auth

     new-value 503:"Service Unavailable"

Do you have any suggestion?

Br and thanks in advance

Alejandro

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