int sm_vmptx_config_codec_rttext(struct sm_vmptx_codec_rttext_parms *codecp)
typedef struct sm_vmptx_codec_rttext_parms { tSMVMPtxId vmptx; /* in */ tSM_INT payload_type; /* in */ tSM_INT redundant_payload_type; /* in */ tSM_INT redundancy_level; /* in */ tSM_INT buffer_time; /* in */ tSM_INT idle_time; /* in */ } SM_VMPTX_CODEC_RTTEXT_PARMS;
Configures a VMP[tx] to be able to send real-time text.
The packet format is described in IETF RFC 4103.
A VMP[tx] that is configured to use this codec will expect to be provided with 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 written to the channel must be 32 bit values, presented as 4 octets with the least significant octet first. The values should correspond to UCS4 characters.
The firmware does not attempt to ensure that composite character sequences are sent in the same packet. However, there is usually only a small number of characters in each call to smdc_tx_data() and these blocks are normally sent in a single packet.
This requires the module rttext to have been downloaded.
-1
will remove any payload type configuration from the
codec preventing its use.
-1
will prevent redundancy being used.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.