Acme Packet (MOSC)

MOSC Banner

HMR to delete header

edited Jan 26, 2016 12:29PM in Acme Packet (MOSC) 2 commentsAnswered

Hello;

Need help with an HMR; I am working on this HMR which does following;

1. Check Route header under REGISTER & INVITE

2. Check route header under SUBSCRIBE for Event reg

3. If present then strip the Route header.

For some reason the HMR I wrote didn't able to catch the logic;

sip-manipulation

        name                                    striproute

        description                            

        split-headers                          

        join-headers                           

        header-rule

                name                                    checkforroute

                header-name                             Route

                action                                  store

                comparison-type                         pattern-rule

                msg-type                                request

                methods                                 INVITE,REGISTER

                match-value                            

                new-value                              

        header-rule

                name                                    checkforeventreg

                header-name                             Event

                action                                  store

                comparison-type                         pattern-rule

                msg-type                                request

                methods                                 SUBSCRIBE

                match-value                             reg

                new-value                              

        header-rule

                name                                    delroute

                header-name                             Route

                action                                  delete

                comparison-type                         case-sensitive

                msg-type                                request

                methods                                 INVITE,REGISTER,SUBSCRIBE

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