Acme Packet (MOSC)

MOSC Banner

HMR to add a P-Preferred-Identity

edited Nov 26, 2013 11:46PM in Acme Packet (MOSC) 6 commentsAnswered

This HMR illustrates how to add a P-Preferred-Identity header to an INVITE if one does not already exist.

If it already exists, do nothing.

 

The PPI header is created using username parameter present in the From header URI and the SBC's local IP address.

 

sip-manipulation
        name                           addPPI
        description                    Create P-Preferred-Identity if none present
        split-headers
        join-headers
        header-rule
                name                           PPIexists
                header-name                    P-Preferred-Identity
                action                         store
                comparison-type                pattern-rule
                msg-type                       out-of-dialog
                methods                        INVITE
                match-value
                new-value
        header-rule
                name                           addPPI
                header-name                    P-Preferred-Identity
                action                         add
                comparison-type                boolean
                msg-type                       out-of-dialog
                methods                        INVITE
                match-value                    !$PPIexists
                new-value                      sip:+$FROM_USER.$0+@+$LOCAL_IP

 

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