int sm_vmprx_config_codec_speex(struct sm_vmprx_codec_speex_parms *codecp)
typedef struct sm_vmprx_codec_speex_parms {
tSMVMPrxId vmprx; /* in */
tSM_INT payload_type; /* in */
tSM_UT32 nb_channels; /* in */
tSM_UT32 sampling_rate; /* in */
enum kSMSpeexMode {
kSMSpeexNarrowbandMode,
kSMSpeexWidebandMode,
kSMSpeexUltrawidebandMode,
} bandwidth; /* in */
enum kSMPLCMode plc_mode; /* in */
} SM_VMPRX_CODEC_SPEEX_PARMS;
Configures the VMP[rx] to use Speex for encoding data, as defined in IETF RFC 5574. However, neither variable bit-rate coding (VBR) nor discontinuous transmission (DTX) are supported.
This requires the module speex_vmp to have been downloaded.
-1 will remove any payload type configuration from the
codec preventing its use.
kSMSpeexNarrowbandMode is always used
since it is the only value supported by current firmware.
One of these values:
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.