Creating a Codec Policy

To create a codec policy:

  1. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
  2. Type media-manager and press Enter to access the signaling-related configurations.
    ORACLE(configure)# media-manager
    ORACLE(media-manager)#
  3. Type codec-policy and then press Enter.
    ORACLE(media-manager)# codec-policy
    ORACLE(codec-policy)#
  4. name—Enter the unique name for the codec policy. This is the value you will use to refer to this codec policy when you apply it to realms or session agents. This parameter is required and is empty by default.
  5. allow-codecs—Enter the list of media format types (codecs) to allow for this codec policy. In your entries, you can use the asterisk (*) as a wildcard, the force attribute, or the no attribute so that the allow list you enter directly reflects your configuration needs. Enclose entries of multiple values in parentheses ( ( ) ). For more information, refer to the Manipulation Modes section above.

    The codecs that you enter here must have corresponding media profile configurations.

    allow-codecs can be used to construct ingress, egress, or conditional codec policies. For details of conditional codec policies, refer to Conditional Codec Policies.

  6. add-codecs-on-egress—Enter the codecs that the Oracle® Enterprise Session Border Controller adds to an egress SDP offer if that codec is not already there. This parameter applies only to egress offers. For more information, refer to the Manipulation Modes section above.

    The codecs that you enter here must have corresponding media profile configurations.

    add-codecs-on-egress can be used to construct ingress, egress, or conditional codec policies. For details of conditional codec policies, refer to Conditional Codec Policies.

  7. order-codecs—Enter the order in which you want codecs to appear in the outgoing SDP offer. Remember that you can use the asterisk (*) as a wildcard in different positions of the order to directly reflect your configuration needs. Enclose entries of multiple values in parentheses ( ( ) ). For more information, refer to the Manipulation Modes section above.

    The codecs that you enter here must have corresponding media profile configurations.

    order-codecs can be used to construct ingress, egress, or conditional codec policies. For details of conditional codec policies, refer to Conditional Codec Policies.

  8. Save and activate your configuration.

    Your codec policy configuration will resemble the following example:

    codec-policy
            name            private
            allow-codecs    g723:no pcmu video:no
            order-codecs    pcmu *