Acme Packet (MOSC)

MOSC Banner

HMR to pull custom headers out of INVITE and populate them in the 200 Ok

edited Feb 21, 2019 1:38PM in Acme Packet (MOSC) 3 commentsAnswered ✓

We need to pull information from two custom headers in our INVITE ( User-to-User and Cisco-Gucid) and populate the in the corresponding reply (200 Ok).    This is what I've come up with so far.

header-rule

                name                                    getID

                header-name                             User-to-User

                action                                  store

                comparison-type                         case-sensitive

                msg-type                                request

                methods                                 INVITE

                match-value                            

                new-value                              

                element-rule

                        name                                    storeUsertoUser

                        parameter-name                          User-to-User

                        type                                    header-value

                        action                                  store

                        match-val-type                          any

                        comparison-type                         pattern-rule

                        match-value                            

                        new-value                              

                element-rule

                        name                                    storeGUCID

                        parameter-name                          Cisco-Gucid

                        type                                    header-value

                        action                                  store

                        match-val-type                          any

                        comparison-type                         pattern-rule

                        match-value                            

                        new-value                              

        header-rule

                name                                    addID

                header-name                             User-to-User

                action                                  add

                comparison-type                         pattern-rule

                msg-type                                reply

                methods                                 INVITE

                match-value                            

                new-value                              

                element-rule

                        name                                    addUsertoUser

                        parameter-name                         

                        type                                    header-value

                        action                                  add

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