Acme Packet (MOSC)

MOSC Banner

Store Contact IP and Port and add it to a new header

edited Aug 18, 2013 9:08PM in Acme Packet (MOSC) 1 commentAnswered

Trying my hand at storing data to add it to a private header, but I can't seem to get it correct.  In this case, the contact looks like: 

Contact: <sip:2.1.7.7:5062;app-session-id=ba4c61a2;transport=udp>

 

My manip rule looks like:

 

sip-manipulation
        name                           Priv_Hdr_Add
        description                    Add private header 

        split-headers                 
        join-headers                  
        header-rule
                name                           Priv_Hdr_Add
                header-name                    Contact
                action                              store
                comparison-type                case-sensitive
                msg-type                       request
                methods                        Invite
                match-value                   
                new-value                     
                element-rule
                        name                           store_host
                        parameter-name                
                        type                           uri-host
                        action                         store
                        match-val-type                 ip
                        comparison-type                case-sensitive
                        match-value                   
                        new-value                      $0
                element-rule
                        name                           store_port
                        parameter-name                
                        type                           uri-port
                        action                         store
                        match-val-type                 any
                        comparison-type                case-sensitive
                        match-value                   
                        new-value                      $1
        header-rule

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