Prosody RTP processing: API: sm_vmptx_config_codec_amrnb_cmr
Prototype Definition
int sm_vmptx_config_codec_amrnb_cmr(struct sm_vmptx_config_codec_amrnb_cmr_parms *codecp)
Parameters
- *codecp
-
a structure of the following type:
typedef struct sm_vmptx_config_codec_amrnb_cmr_parms {
tSMVMPtxId vmptx; /* in */
tSM_INT bitrate; /* in */
} SM_VMPTX_CONFIG_CODEC_AMRNB_CMR_PARMS;
Description
Configures the AMR narrow-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 narrow-band codec can encode (which are:
4750, 5150, 5900, 6700, 7400, 7950, 10200, and 12200),
or 0 to request "any rate" (CMR = 15).
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody RTP processing API.