int sm_vmprx_config_codec_gsmefr(struct sm_vmprx_codec_gsmefr_parms *codecp)
typedef struct sm_vmprx_codec_gsmefr_parms { tSMVMPrxId vmprx; /* in */ tSM_INT payload_type; /* in */ enum kSMPLCMode plc_mode; /* in */ } SM_VMPRX_CODEC_GSMEFR_PARMS;
Configures the VMP[rx] to use the GSM-EFR codec, setting the payload type mapping to payload_type. This supersedes any previous mapping that was in effect for this codec.
If the call completes successfully, RTP packets arriving at the VMP[rx] with a payload type that matches the specified payload type will be decoded using this codec.
Note that this function is for use with the lightweight gsm-efr module only. Where full AMR-NB support is also required, please use sm_vmprx_config_codec_amrnb() with parameter gsmefr=1 and the module amr-nb or amr-nb-all instead.
This requires the module gsm-efr to have been downloaded.
-1
will remove any payload type configuration from the
codec preventing its use.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.