Prosody RTP processing: API: sm_vmptx_create_toneset

Prototype Definition

int sm_vmptx_create_toneset(struct sm_vmptx_create_toneset_parms *tonesetp)

Parameters

*tonesetp
a structure of the following type:
typedef struct sm_vmptx_create_toneset_parms {
	tSMVMPTxToneSet *toneset;				/* in */
	tSMModuleId module;					/* in */
	tSMVMPTxToneSetId tone_set_id;				/* out */
} SM_VMPTX_CREATE_TONESET_PARMS;

Description

Configures the tones to be detected for use in rfc 2833. A tones set containing all the DTMF tones is included in the API, it is called kSMVMPTxDefaultToneSet.

This requires the module td to have been downloaded.

Fields

toneset
the ToneSet to configure
module
the Module to configure the toneset for
tone_set_id
the returned ToneSetID

Returns

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


This function is part of the Prosody RTP processing API.