Prosody SPRT end point: API: sm_sprt_config_data_channel

Prototype Definition

int sm_sprt_config_data_channel(struct sm_sprt_config_data_channel_parms *configp)

Parameters

*configp
a structure of the following type:
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;

Description

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.

Fields

sprt
The SPRT end point to configure.
data_channel
The channel to use for data
max_payload_length
The maximum length of the payload on the data channel
max_latency
The data maximum latency

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody SPRT end point API.