Prosody SPRT end point: API: sm_sprt_send_message

Prototype Definition

int sm_sprt_send_message(struct sm_sprt_send_message_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_sprt_send_message_parms {
	tSMSPRTId sprt;						/* in */
	char *message;						/* in */
	int length;						/* in */
} SM_SPRT_SEND_MESSAGE_PARMS;

Description

Send a SPRT packet with the message data as the payload

Fields

sprt
The SPRT end point from which to send the message
message
A pointer to the message to be sent
length
The length of the message data

Returns

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


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