Prosody SPRT end point: API: sm_sprt_config

Prototype Definition

int sm_sprt_config(struct sm_sprt_config_parms *configp)

Parameters

*configp
a structure of the following type:
typedef struct sm_sprt_config_parms {
	tSMSPRTId sprt;						/* in */
	SOCKADDR_IN dest;					/* in */
	SOCKADDR_IN src;					/* in */
	int payload_type;					/* in */
} SM_SPRT_CONFIG_PARMS;

Description

Configures the destination of the transmitted SPRT packets and the payload type identifier to use in those packets.

Fields

sprt
The SPRT end point to configure.
dest
The SOCKADDR_IN structure specifying the destination IP address and port of the remote SPRT end point. A struct SOCKADDR_IN must be configured with an address family, an IP address and a port. Note that most operating systems define this structure such that fields are in network byte order. The structure must be correctly cast such that an IP V4 address is specified.
src
The SOCKADDR_IN structure specifying the source IP address and port of the local SPRT end point. A struct SOCKADDR_IN must be configured with an address family, an IP address and a port. Note that most operating systems define this structure such that fields are in network byte order. The structure must be correctly cast such that an IP V4 address is specified. This should match the values returned by the VMP[rx] receiving the SPRT packets.
payload_type
The payload type of the SPRT packets.

Returns

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


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