Prosody RTP processing: API: sm_vmptx_config_codec_amrnb_mode

Prototype Definition

int sm_vmptx_config_codec_amrnb_mode(struct sm_vmptx_config_codec_amrnb_mode_parms *codecp)

Parameters

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

Description

Configures the AMR narrow-band codec to use the given mode.

Fields

vmptx
The VMP[tx] to which to add the codec
bitrate
The speed to use in bits per second. It must be one of the speeds which the AMR codec can encode, which are: 4750, 5150, 5900, 6700, 7400, 7950, 10200, and 12200.

Returns

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


This function is part of the Prosody RTP processing API.