Acme Packet (MOSC)

MOSC Banner

call another HMR if expression is true

edited Sep 22, 2015 1:19PM in Acme Packet (MOSC) 1 commentAnswered

I'm trying to call another HMR if the from header digits match a certain string and I can't seem to get it to work.  I know I just have something little off, but I can't seem to find it.

sip-manipulation

  name                           CheckFrom

  description                    Checks the From header and will call the ColRule if it is true

  split-headers                

  join-headers                 

       header-rule

       name                           storeFrom

       header-name                    From

       action                         store

       comparison-type                case-sensitive

       msg-type                       out-of-dialog

       methods                        INVITE

       match-value                  

       new-value                    

            element-rule

            name                           storeUser

            parameter-name               

            type                           uri-user-only

            action                         store

            match-val-type                 any

            comparison-type                pattern-rule

            match-value                    ^13034569\d{3}$

            new-value                    

       header-rule

       name                           callColRule

       header-name                    From

       action                         sip-manip

       comparison-type                boolean

       msg-type                       any

       methods                      

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