public class CodecToReplace
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CodecToReplace |
create(java.lang.String codecDefinition,
java.lang.String payloadNumber)
Factory method to create CodecToReplace instance.
|
static CodecToReplace |
create(java.lang.String codecDefinition,
java.lang.String payloadNumber,
java.util.Map<java.lang.String,java.lang.String> customProperties)
Factory method to create CodecToReplace instance.
|
java.lang.String |
getCodecDefinition()
Returns codec definition.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomProperties()
Returns custom properties map.
|
java.lang.String |
getPayloadNumber()
Returns payload number.
|
public static CodecToReplace create(java.lang.String codecDefinition, java.lang.String payloadNumber, java.util.Map<java.lang.String,java.lang.String> customProperties) throws MobileException
codecDefinition
- the codec that will be changedpayloadNumber
- new payload number that will be assigned to the codec, as described in RFC5761 this should be chosen from the range 96-127customProperties
- properties of the codec that should be matched to original codec in order SDK to make the replaceMobileException
- when the payload number does not correspond to an integer value or not set in the range 96-127public static CodecToReplace create(java.lang.String codecDefinition, java.lang.String payloadNumber) throws MobileException
codecDefinition
- the codec that will be changedpayloadNumber
- new payload number that will be assigned to the codec, as described in RFC5761 this should be chosen from the range 96-127MobileException
- when the payload number does not correspond to an integer value or not set in the range 96-127public java.lang.String getCodecDefinition()
public java.lang.String getPayloadNumber()
public java.util.Map<java.lang.String,java.lang.String> getCustomProperties()