Prosody RTP processing: API: sm_vmptx_create

Prototype Definition

int sm_vmptx_create(struct sm_vmptx_create_parms *vmptxp)

Parameters

*vmptxp
a structure of the following type:
typedef struct sm_vmptx_create_parms {
	tSMVMPtxId vmptx;					/* out */
	tSMModuleId module;					/* in */
} SM_VMPTX_CREATE_PARMS;

Description

Allocates, on a specific module, a new VMP[tx] to transmit RTP data to a remote device.

If the call completes successfully, the parameter vmptx will be set to the identifier for that vmptx.

This requires the module vmptx to have been downloaded.

Fields

vmptx
The newly created VMP[tx].
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.