Prosody RTP processing: API: sm_vmptx_config_codec_amrwb_cmr

Prototype Definition

int sm_vmptx_config_codec_amrwb_cmr(struct sm_vmptx_config_codec_amrwb_cmr_parms *codecp)

Parameters

*codecp
a structure of the following type:
typedef struct sm_vmptx_config_codec_amrwb_cmr_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT bitrate;					/* in */
} SM_VMPTX_CONFIG_CODEC_AMRWB_CMR_PARMS;

Description

Configures the AMR wide-band codec to request the given mode.

Fields

vmptx
The VMP[tx] to which to add the codec
bitrate
The speed to request via the CMR field, in bits per second. It must be one of the speeds which the AMR wide-band codec can encode (which are: 6600, 8850, 12650, 14250, 15850, 18250, 19850, 23050, and 23850), or 0 to request "any rate" (CMR = 15).

Returns

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


This function is part of the Prosody RTP processing API.