Removing Allowing and Adding Codecs

The Oracle® Enterprise Session Border Controller removes and allows codecs using the allow-codecs parameter. Refer to the Codec Policy Definition section of this chapter for configuration information.

  • allow-codecs—The allow-codecs parameter takes a list of codecs that you want to pass through the Oracle® Enterprise Session Border Controller and can explicitly allow them to remain in the SDP for the next step; codecs not matching the items on this list are removed. This parameter is required.
  • add-codecs-on-egress—The add-codecs-on-egress parameter sets the codecs that the Oracle® Enterprise Session Border Controller adds to an offer if that codec is not already there. This parameter applies only to the egress policy.

    For allow-codecs, order-codecs, and add codecs to codec policies:

You can configure and edit these two transcoding parameters as ACLI lists, meaning that there are add and delete commands associated with each. You type the name of the parameter, choose the operation you want to perform on the list (adding or deleting), and then specify the data that you want to add or remove.

The examples in the procedure that follows show you how to add to the lists you are configuring. To remove items from the allow-codecs list, simply replace the add command you see in these example with delete and the items you want to remove.

If you want to overwrite previous values, you can enter the command, a Space and the items in the list enclosed in quotes (“).

  1. allow-codecs—Enter a list of codecs that are allowed to pass through the Oracle® Enterprise Session Border Controller. Use the syntax in the Transcodable Codecs section of this chapter. To allow all codecs, enter an asterisk (*).
    ORACLE(codec-policy)# allow-codecs *

    When multiple items are added, enclose them in quotes. For example:

    ORACLE(codec-policy)# allow-codecs G729 G711 AMR
  2. add-codecs-on-egress—Enter the codecs that you want added to the SDP offer for the egress codec policy. If you leave this parameter blank, then the Oracle® Enterprise Session Border Controller will not add codecs to the SDP answer. This parameter cannot be wildcarded; other possible value are listed in the Transcodable Codecs section of this chapter.
    ORACLE(codec-policy)# add-codecs-on-egress G729

    If you need to modify the list of configured codecs, you must enter the complete list at once.