Prosody RTP processing: API: sm_vmptx_config_tag

Prototype Definition

int sm_vmptx_config_tag(struct sm_vmptx_tag_parms *tagp)

Parameters

*tagp
a structure of the following type:
typedef struct sm_vmptx_tag_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT payload_type;					/* in */
	enum kSMVMPTxTagType {
		kSMVMPTxTagTypeUlaw,
		kSMVMPTxTagTypeAlaw,
	} tag_type;						/* in */
	tSM_UT32 min_time;					/* in */
	tSM_UT32 max_time;					/* in */
} SM_VMPTX_TAG_PARMS;

Description

Fields

vmptx
The VMP[tx] to be configured
payload_type
The payload type of the packets to be tagged.
tag_type
One of these values:
kSMVMPTxTagTypeUlaw
The tag is in G.711 U-law.
kSMVMPTxTagTypeAlaw
The tag is in G.711 A-law.
min_time
The minimum time between tags in milliseconds.
max_time
The maximum time between tags in milliseconds.

Returns

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


This function is part of the Prosody RTP processing API.