Prosody RTP processing: API: sm_vmprx_config_profile_specific

Prototype Definition

int sm_vmprx_config_profile_specific(struct sm_vmprx_config_profile_specific_parms *psp)

Parameters

*psp
a structure of the following type:
typedef struct sm_vmprx_config_profile_specific_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT enable;						/* in */
	char *plugin;						/* in */
	tSM_INT paramlen;					/* in */
	char *paramval;						/* in */
} SM_VMPRX_CONFIG_PROFILE_SPECIFIC_PARMS;

Description

Normally profile specific RTP extensions (such as use of RTP extension header) are ignored. Invoking this call allows profile specific processing to be performed on received RTP packets by a specified ProsodyS plugin. Typically such a plugin will cause occasional VMP[rx] events and status notifications to occur in order to indicate that profile specific state transitions have taken place. Information pertaining to a state transition can then be obtained by invoking sm_vmprx_status() and sm_vmprx_status_profile_specific() . See documentation supplied with ProsodyS profile specific plugin for further details.

Fields

vmprx
The VMP[rx] to configure
enable
Set non-zero to enable profile specific RTP processing.
plugin
Set to a zero terminated string identifying plugin that should perform profile specific processing.
paramlen
The length of the plugin specific parameter string in octets.
paramval
The plugin specific parameter string contents.

Returns

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


This function is part of the Prosody RTP processing API.