Configuring Transcoding
Codec Policy Configuration
Transcoding is configured by creating codec policies and referencing them from a realm configuration.
ACLI Configuration Instructions
The parameters that you can configure are name, allow-codecs, add-codecs-on-egress, order-codecs, and ptime. The following section provides brief explanations of how these parameters work, and how you configure each of them.
Note:
A single codec policy can be reused for any number of realms.To access the configuration parameters for codec policies:
Naming Codec Policies
The codec policy’s name is important not only because it uniquely identifies the policy, but because it is the name you will enter into your realm configuration’s codec-policy parameter. It is important to apply the correct policy to the appropriate realm.
To set the codec policy’s name:
Removing Allowing and Adding Codecs
The Oracle Communications 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 Communications 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 Communications 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 (“).
Ordering Codecs
Codec policy can specify the order that codecs appear in the SDP offer or answer.
To configure an order which codecs appear in the offer:
Media Profile Configuration
Media profiles must be created and then defined when you want to override the Oracle Communications Session Border Controller’s default media profiles.
ACLI Configuration Instructions and Examples
The parameters that you can configure are name, allow-codecs, add-codecs-on-egress, order-codecs, and ptime. The following section provides brief explanations of how these parameters work, and how you configure each of them.
Creating User-Defined Ptime per Codec
To change the Oracle Communications Session Border Controller’s default ptime for a specific codec, you must create a media profile configuration element. In the parameter parameter, you set the ptime to the value of your choosing.
Note:
The frames-per-packet parameter in the media profile configuration element is NOT used for setting a user defined ptime for that codec.To configure a new ptime value for a codec: