int sm_vmprx_config_codec_rfc2833(struct sm_vmprx_codec_rfc2833_parms *codecp)
typedef struct sm_vmprx_codec_rfc2833_parms { tSMVMPrxId vmprx; /* in */ tSM_INT payload_type; /* in */ enum kSMPLCMode plc_mode; /* in */ } SM_VMPRX_CODEC_RFC2833_PARMS;
Configures an IETF RFC 2833 codec on the VMP[rx], setting the payload type mapping to payload_type.
It is possible to change the payload type mapping of a codec whilst a VMP[rx] remains valid by specifying a new payload type mapping for a given codec. This supersedes any previous mappings that were in effect for that codec.
If the call completes successfully, RTP packets arriving at the VMP[rx] with a payload type that matches a mapped type will be decoded using this codec.
If the codec is given the payload type -1
the codec is no
longer valid for this RTP session, unless it is subsequently
reconfigured.
-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.