Configuring Advanced Logging

From Configure mode, define sip-advanced-logging and advanced-log-condition. The criteria that you configure remaps the message logging and modifies the system configuration. You must save and activate the changes to the configuration.
When configuring multiple sip-advanced-logging configurations, note the following:
  • The system evaluates each configuration individually in an OR relationship.
  • The system evaluates all conditions and they must all match in an AND relationship.
  1. Access the ifc-profile configuration element.
    ORACLE# configure terminal
    ORACLE(configure)# session-router
    ORACLE(session-router)# sip-advanced-logging
    ORACLE(sip-advanced-logging)#
  2. Configure the following parameters.
    • Name. Name to display on the log message for this set of criteria.
    • State. Activates or deactivates this advanced logging object.
    • Level. Type one: zero, none, emergency, critical, major, minor, warning, notice, info, trace, debug, or detail.
    • Scope. Type one: request-only, transaction, session, or session-and-media.
    • Matches-per-window. Type a number between 1 and 999999999 for how many matches to log per window of time.
    • Window-size. Type a number between 1 and 999999999 seconds for the length of time the logging window is open.
    • Type conditions.

      The system displays the adv-log-condition subelement.

  3. Select the sip-advanced-logging > conditions object to edit, or create a new one.
    ORACLE(sip-advanced-logging)# adv-log-condition
    ORACLE(adv-log-condition)# select 
    <name>:
    1:  name=condition1
    
    ORACLE(adv-log-condition)#
  4. From the adv-log-condition prompt, configure the following:
    • Match-type. Type one or more of the following sip objects with either the "and" or the "or" operator between objects: request-type, recv-agent, recv-realm, request-uri-user, request-uri-host, to-header-user, to-header-host, from-header-user, from-header-host, or call-id.
    • Match-value. Type the incoming message text string that you want to match.

      For example, to match "To-header-user" to the value 1234@<companyname>.com, type "to-header-user" for Match type and type " 1234" for Match value.

    Note:

    The match-value parameter does not support regex expressions.
  5. Type done (twice) to retain your sub-element and element configuration.
  6. Exit, save, and activate.