Setting the Match Value

Note that for the SIP header rules and for the SIP element rules, the match-value parameter can now be set with these Boolean operators:

  • and (for which the syntax is the ampersand &)
  • or (for which the syntax is the pipe|)

However, you can only use Boolean operators in this value when you set the comparison-type parameter to pattern-rule and are evaluating stored matches. The Oracle® Enterprise Session Border Controller evaluates these Boolean expressions from left to right, and does not support any grouping mechanisms that might change the order of evaluation. For example, the Oracle® Enterprise Session Border Controller evaluates the expression A & B | C (where A=true, B=false, and C=true) as follows: A & B = false; false | true = true.

You can set the match-value for the SIP header rules or for the SIP element rules.

To set a match value in the SIP header rules configuration:

  1. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
  2. Type session-router and press Enter to access the signaling-level configuration elements.
    ORACLE(configure)# session-router
    ORACLE(session-router)#
  3. Type sip-manipulation and press Enter.
    ORACLE(session-router)# sip-manipulation
    ORACLE(sip-manipulation)#
  4. Type header-rules and press Enter. The system prompt changes to let you know that you can begin configuring individual parameters.
    ORACLE(session-router)# header-rules
    ORACLE(sip-header-rules)#
  5. match-value—Enter the value to match against the header value in SIP packets; the Oracle® Enterprise Session Border Controller matches these against the entire SIP header value. This is where you can enter values to match using regular expression values; your entries can contain Boolean operators.

    To set a match value in the SIP element rules configuration:

  6. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
  7. Type session-router and press Enter to access the signaling-level configuration elements.
    ORACLE(configure)# session-router
    ORACLE(session-router)#
  8. Type sip-manipulation and press Enter.
    ORACLE(session-router)# sip-manipulation
    ORACLE(sip-manipulation)#
  9. Type header-rules and press Enter.
    ORACLE(session-router)# header-rules
    ORACLE(sip-header-rules)#
  10. Type element-rule and press Enter. The system prompt changes to let you know that you can begin configuring individual parameters.
    ORACLE(sip-header-rules)# element-rules
    ORACLE(sip-element-rules)#
  11. match-value—Enter the value to match against the header value in SIP packets; the Oracle® Enterprise Session Border Controller matches these against the value of the parameter/element. This is where you can enter values to match using regular expression values, or stored pattern matches; your entries can contain Boolean operators.