Manipulate Contacts

This rule changes the contact in the SDP to the value contained in the Contact header.

sip-manipulation
        name                           changeSdpContact
        description                    changes the contact in the SDP to the value of the contact header
        header-rule
                name                           storeContact
                header-name                    Contact
                action                         store
                comparison-type                pattern-rule
                msg-type                       request
                methods                        INVITE
                match-value                    
                new-value
                element-rule
                        name                           storeHost
                        parameter-name
                        type                           uri-host
                        action                         store
                        match-val-type                 ip
                        comparison-type                pattern-rule
                        match-value
                        new-value
        mime-sdp-rule
                name                           changeConnection
                msg-type                       request
                methods                        INVITE
                action                         manipulate
                comparison-type                case-sensitive
                match-value
                new-value
                sdp-session-rule
                        name                   changeCLine
                        action                 manipulate
                        comparison-type        case-sensitive
                        match-value
                        new-value
                        sdp-line-rule
                           name               updateConnection
                           type               c
                           action             replace
                           comparison-type    case-sensitive
                           match-value        $storeContact.$storeHost
                           new-value          $storeContact.$storeHost.$0