int sm_sprt_config_data_channel(struct sm_sprt_config_data_channel_parms *configp)
typedef struct sm_sprt_config_data_channel_parms { tSMSPRTId sprt; /* in */ int data_channel; /* in */ int max_payload_length; /* in */ int max_latency; /* in */ } SM_SPRT_CONFIG_DATA_CHANNEL_PARMS;
Configures the channel used for data by the SPRT end point. The default is channel 3, but can be either 1 or 3.
A packet is filled with the data passed in via the datafeed and is sent when it has reached the max_payload_length or it has had data for max_latency milliseconds.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody SPRT end point API.