Prosody DTLS processing: API: sm_vmprx_config_dtls

Prototype Definition

int sm_vmprx_config_dtls(struct sm_vmprx_config_dtls_parms *configp)

Parameters

*configp
a structure of the following type:
typedef struct sm_vmprx_config_dtls_parms {
	tSMVMPrxId vmprx;					/* in */
	tSMDTLSrxId dtlsrx;					/* in */
	tSM_INT use_RTCP_port;					/* in */
} SM_VMPRX_CONFIG_DTLS_PARMS;

Description

Configures a VMP[rx] to pass incoming DTLS packets to a DTLS[rx].

Requires the modules dtlsrx and vmprx to have been downloaded.

Fields

vmprx
The VMP[rx] which will received the DTLS packets.
dtlsrx
The DTLS[rx] to pass the packets to. If this is kSMNullDTLSrxId then the VMP[rx] will no longer pass on DTLS packets.
use_RTCP_port
Which port will receive the DTLS packets. When non-zero, use the RTCP port. Otherwise, the RTP port is used

Returns

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


This function is part of the Prosody DTLS processing API.