Prosody RTP processing: API: sm_rtcphand_create

Prototype Definition

int sm_rtcphand_create(struct sm_rtcphand_create_parms *rtcphandp)

Parameters

*rtcphandp
a structure of the following type:
typedef struct sm_rtcphand_create_parms {
	tSMRTCPHandId rtcphand;					/* out */
	tSMModuleId module;					/* in */
} SM_RTCPHAND_CREATE_PARMS;

Description

Creates a RTCP handler. Note that you must configure the CNAME with sm_rtcphand_config_sdes() before the RTCP handler can generate RTCP packets.

This requires the module rtcp to have been downloaded.

Fields

rtcphand
The newly created RTCP handler identifier
module
A value obtained from sm_open_module() which indicates the module where the VMP[tx] is to be allocated.

Returns

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


This function is part of the Prosody RTP processing API.