MIME Rules Configuration

This section shows you how to configure MIME rules and MIME headers.

To configure MIME rules:

  1. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
    ORACLE(configure)#
  2. Type session-router and press Enter.
    ORACLE(configure)# session-router
    ORACLE(session-router)#
  3. Type sip-manipulation and press Enter. If you are adding this feature to an existing configuration, then remember you must select the configuration you want to edit.
    ORACLE(session-router)# sip-manipulation
    ORACLE(sip-manipulation)#
  4. Type mime-rules and press Enter.
    ORACLE(sip-manipulation)# mime-rules
    ORACLE(sip-mime-rules)#
  5. name—Enter a name for this MIME rule. This parameter is required and has no default.
  6. content-type—Enter the content type for this MIME rule. This value refers to the specific body part in the SIP message body that is to be manipulated. For example, given a SIP Content-Type header with the value multipart/mixed;boundary=unique-boundary-1, you would enter a content-type value of application/sdp to manipulate specifically on the SDP portion of the SIP message.

    To manipulate the SIP preamble or epilogue, enter the keyword @preamble or keyword @epilogue.

  7. action—Choose the type of action you want to be performed: none, add, delete, manipulate, store, sip-manip, and find-replace-all. These are the same actions you can select when configuring SIP header manipulation. The default is none.
  8. comparison-type—Enter the way that you want body part of the SIP message to be compared. This choice dictates how the Oracle® Enterprise Session Border Controller processes the match rules against the SIP header. the default is case-sensitive. The valid values are: case-sensitive, case-insensitive, boolean, refer-case-sensitive, refer-case-insensitive, and pattern-rule.
  9. msg-type—Enter the SIP message type on which you want the MIME rules to be performed. Valid values are any, request, and reply. The default value is any.
  10. methods—Enter the list of SIP methods to which the MIME rules applies. There is no default for this parameter.
  11. match-value—Enter the value to match against the body part in the SIP message. This is where you can enter values to match using regular expression values. Your entries can contain Boolean operators.
  12. new-value—When the action parameter is set to add or to manipulate, enter the new value that you want to substitute.

    To configure MIME headers for performing HMR operations on specific headers in the matched body part of the SIP message:

  13. Follows Steps 1 through 4 above.
  14. Type mime-header-rules and press Enter.
    ORACLE(sip-mime-rules)# mime-header-rules
    ORACLE(sip-mime-header-rules)#
  15. name—Enter a name for this MIME header rule. This parameter is required and has no default.
  16. mime-header—Enter the value to be used for comparison with the specific header in the body part of the SIP message. There is no default for this parameter.
  17. action—Choose the type of action you want to be performed: none, add, delete, manipulate, store, sip-manip, and find-replace-all. The default is none.
  18. comparison-type—Enter the way that you want the header in the body part of the SIP message to be compared. This choice dictates how the Oracle® Enterprise Session Border Controller processes the match rules against the SIP header. the default is case-sensitive. The valid values are: case-sensitive, case-insensitive, boolean, refer-case-sensitive, refer-case-insensitive, and pattern-rule.
  19. match-value—Enter the value to match against the header in the body part of the SIP message. This is where you can enter values to match using regular expression values. Your entries can contain Boolean operators.
  20. new-value—When the action parameter is set to add or to manipulate, enter the new value that you want to substitute.
  21. Save your work.