Prosody RTP processing: API: sm_vmprx_config_sprt

Prototype Definition

int sm_vmprx_config_sprt(struct sm_vmprx_config_sprt_parms *configp)

Parameters

*configp
a structure of the following type:
typedef struct sm_vmprx_config_sprt_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT payload_type;					/* in */
	tSMSPRTId sprt;						/* in */
} SM_VMPRX_CONFIG_SPRT_PARMS;

Description

Configure the association of a VMP[rx] with a SPRT end point. If payload_type is -1 then sprt can be kSMNullSPRTId, otherwise it must be a value created by a call to sm_sprt_create().

This requires the module sprt to have been downloaded.

Fields

vmprx
The VMP[rx] to be associated with a SPRT endpoint
payload_type
The payload type identifer to use for SPRT packets (see IETF RFC 3550 section 13). Supplying a value of -1 will remove any payload type configuration from the SPRT end point, preventing its use.
sprt
The SPRT end point that will handle SPRT packets

Returns

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


This function is part of the Prosody RTP processing API.