Prosody RTP processing: API: sm_vmprx_config_codec_ilbc

This function is only in Prosody version 2 (TiNG).

Prototype Definition

int sm_vmprx_config_codec_ilbc(struct sm_vmprx_codec_ilbc_parms *codecp)

Parameters

*codecp
a structure of the following type:
typedef struct sm_vmprx_codec_ilbc_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT payload_type;					/* in */
	tSM_INT frame_len;					/* in */
	tSM_INT enhancer;					/* in */
	enum kSMPLCMode plc_mode;				/* in */
} SM_VMPRX_CODEC_ILBC_PARMS;

Description

Configures the VMP[rx] to use the iLBC codec, setting the payload type mapping to payload_type. This supersedes any previous mapping that was in effect for this codec.

If the call completes successfully, RTP packets arriving at the VMP[rx] with a payload type that matches the specified payload type will be decoded using this codec.

This requires the module ilbc to have been downloaded.

Fields

vmprx (Only in Prosody version 2 (TiNG))
The VMP[rx] to which to add the codec
payload_type (Only in Prosody version 2 (TiNG))
The payload type identifer to use with this codec (see IETF RFC 3550 section 13). Supplying a value of -1 will remove any payload type configuration from the codec preventing its use.
frame_len (Only in Prosody version 2 (TiNG))
Length of each frame which will be received, in milliseconds. This must be either 20 or 30.
enhancer (Only in Prosody version 2 (TiNG))
Configures whether or not to use an enhancer. It is used if this value is non-zero.
plc_mode (Only in Prosody version 2 (TiNG))
Enables or disables PLC (packet loss concealment) as appropriate for the codec
One of these values:
kSMPLCModeDisabled
PLC Disabled
kSMPLCModeEnabled
PLC Enabled

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody RTP processing API.