Prosody RTP processing: API: sm_vmptx_config_codec_g722

Prototype Definition

int sm_vmptx_config_codec_g722(struct sm_vmptx_codec_g722_parms *codecp)

Parameters

*codecp
a structure of the following type:
typedef struct sm_vmptx_codec_g722_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT payload_type;					/* in */
	tSM_INT packetlen;					/* in */
} SM_VMPTX_CODEC_G722_PARMS;

Description

Configures a VMP[tx] to use G.722 for encoding wideband data.

This requires the module g722 to have been downloaded.

Fields

vmptx
The VMP[tx] to which to add this 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.
packetlen
The number of samples of data to encode and send in each RTP packet. This should be a multiple of 160 (i.e. 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.