Prosody RTP processing: API: sm_vmptx_config_codec_melpe

Prototype Definition

int sm_vmptx_config_codec_melpe(struct sm_vmptx_codec_melpe_parms *codecp)

Parameters

*codecp
a structure of the following type:
typedef struct sm_vmptx_codec_melpe_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT payload_type;					/* in */
	tSM_INT ptime;						/* in */
} SM_VMPTX_CODEC_MELPE_PARMS;

Description

This requires the module melpe to have been downloaded.

Fields

vmptx
The VMP[tx] to which to add the codec
payload_type
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.
ptime
The length of the RTP media, in milliseconds, to send in each packet. It is usually desirable to send 20 ms packets. Applications should specify ptime as a multiple of 10 ms.

Returns

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


This function is part of the Prosody RTP processing API.