Example 1 Removing Headers

For this manipulation rule, the Oracle® Enterprise Session Border Controller removes the Custom header if it matches the pattern rule. It stores the defined pattern rule for the goodBye header. Finally, it removes the goodBye header if the pattern rule from above is a match.

This is a sample of the configuration:

sip-manipulation
        name                           removeHeader
        header-rule
                name                           removeCustom
                header-name                    Custom
                action                         delete
                comparison-type                boolean
                match-value                    ^This is my.*
                msg-type                       request
                new-value
                methods                        INVITE
        header-rule
                name                           goodByeHeader
                header-name                    Goodbye
                action                         store
comparison-type 	boolean
                match-value                    ^Remove (.+)
                msg-type                       request
                new-value
                methods                        INVITE
header-rule
                name                           goodBye
action                         delete
                comparison-type                pattern-rule
                match-value                    $goodByeHeader
                msg-type                       request
                new-value
                methods                        INVITE

This is a sample of the result:

Request-Line: INVITE sip:service@192.168.200.60:5060;tgid=123 SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.200.61:5060;branch=z9hG4bK0g639r10fgc0aakk26s1.1
        From: sipp <sip:sipp@192.168.1.60:5060>;tag=SDc1rm601-1
        To: sut <sip:service@192.168.1.61:5060>
        Call-ID: SDc1rm601-d01673bcacfcc112c053d95971330335-06a3gu0
        CSeq: 1 INVITE
        Contact: <sip:sipp@192.168.200.61:5060;transport=udp>
        Display: sipp <sip:user@192.168.1.60:5060;up=abc>;hp=123
        Params: sipp <sip:sipp1@192.168.1.60:5060>
        Params: sipp <sip:sipp2@192.168.1.60:5060>
        Edit: disp <sip:user@192.168.1.60:5060>
        Max-Forwards: 69
        Subject: Performance Test
        Content-Type: application/sdp
        Content-Length: 140