SIP Enforcement Profile and Allowed Methods

For this feature, you use a configuration called an enforcement profile that allows you to configure sets of SIP methods that you want applied to: the global SIP configuration, a SIP interface, a realm, or a SIP session agent. The enforcement profile is a named list of allowed methods that you configure and then reference from the configuration where you want those methods applied.

SIP Enforcement Profile Configuration

To use the enforcement profile, you need configure it with a name and the list of SIP methods you want to designate as allowed. Then you need to configure the global SIP configuration, a SIP interface, a realm, or SIP session agent to use the set.

Setting Up and Enforcement Profile

To set up an enforcement profile:

  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 enforcement-profile and press Enter.
    ORACLE(session-router)# enforcement-profile
    ORACLE(enforcement-profile)#
  4. name—Enter the name for the enforcement profile. This parameter has no default, but you must note it so that you can apply this set of allowed SIP headers in: the global SIP configuration, a SIP interface, a realm, or SIP session agent.
    ORACLE(enforcement-profile)# name EnfProfile1
  5. allowed-methods—Enter a list of SIP methods that you want to allow for this set. The default value is none. Valid values are:
    • INVITE | REGISTER | PRACK | OPTIONS | INFO | SUBSCRIBE | NOTIFY | REFER | UPDATE | MESSAGE | PUBLISH

      To enter multiple methods for the list, type the parameter name followed by a space, then the names of all methods you want to include each separated by a only a comma and in capital letters.

      ORACLE(enforcement-profile)# allowed-methods INVITE,REGISTER,PRACK
  6. Save and activate your configuration.

Applying an Enforcement Profile

You can apply an enforcement profile to: the global SIP configuration, a SIP interface, a realm, or SIP session agent. This section shows you how to do all four. Remember that if you are adding this functionality to a pre-existing configuration, you need to select the configuration you want to edit.

To apply an enforcement profile to the global SIP configuration:

  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-config and press Enter.
    ORACLE(session-router)# sip-config
    ORACLE(sip-config)#
  4. enforcement-profile—Enter the name of the enforcement profile you want to apply to the global SIP configuration.
  5. Save and activate your configuration.

    To apply an enforcement profile to a SIP interface:

  6. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
    ORACLE(configure)#
  7. Type session-router and press Enter.
    ORACLE(configure)# session-router
    ORACLE(session-router)#
  8. Type sip-interface and press Enter.
    ORACLE(session-router)# sip-interface
    ORACLE(sip-interface)#
  9. enforcement-profile—Enter the name of the enforcement profile you want to apply to this SIP interface.
  10. Save and activate your configuration.

    To apply an enforcement profile to a SIP session agent:

  11. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
    ORACLE(configure)#
  12. Type session-router and press Enter.
    ORACLE(configure)# session-router
    ORACLE(session-router)#
  13. Type session-agent and press Enter.
    ORACLE(session-router)# session-agent
    ORACLE(session-agent)#
  14. enforcement-profile—Enter the name of the enforcement profile you want to apply to this session agent.
  15. Save and activate your configuration.

    To apply an enforcement profile to a realm:

  16. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
    ORACLE(configure)#
  17. Type media-manager and press Enter.
    ORACLE(configure)# media-manager
    ORACLE(media-manager)#
  18. Type realm-config and press Enter.
    ORACLE(media-manager)# realm-config
    ORACLE(realm-config)#
  19. enforcement-profile—Enter the name of the enforcement profile you want to apply to this realm.
  20. Save and activate your configuration.