int sm_vmprx_config_codec_rttext(struct sm_vmprx_codec_rttext_parms *codecp)
typedef struct sm_vmprx_codec_rttext_parms { tSMVMPrxId vmprx; /* in */ tSM_INT payload_type; /* in */ tSM_INT redundant_payload_type; /* in */ tSM_INT out_of_order_delay; /* in */ } SM_VMPRX_CODEC_RTTEXT_PARMS;
Configures the VMP[rx] to be able to receive real-time text, setting the payload type mapping to payload_type and the redundant format payload type mapping to redundant_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 types will be decoded using this codec.
The packet format is described in IETF RFC 4103.
A VMP[rx] that is configured to use this codec will output octet data rather than audio. As such it will normally be connected to a channel configured for data communitcations with the raw protocol and no encoding. The data collected from the channel will be 32 bit values, presented as 4 octets with the least significant octet first. The values will correspond to UCS4 characters.
This requires the module rttext to have been downloaded.
-1
will remove any payload type configuration from the
codec preventing its use.
-1
if redundant data is not to be received.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.