Prosody RTP processing: API: sm_vmptx_config_codec_g722_1
Prototype Definition
int sm_vmptx_config_codec_g722_1(struct sm_vmptx_codec_g722_1_parms *codecp)
Parameters
- *codecp
-
a structure of the following type:
typedef struct sm_vmptx_codec_g722_1_parms {
tSMVMPtxId vmptx; /* in */
tSM_INT payload_type; /* in */
tSM_INT bitrate; /* in */
tSM_INT frames_per_packet; /* in */
} SM_VMPTX_CODEC_G722_1_PARMS;
Description
Configures a VMP[tx] to use G.722.1, licensed from Polycom®,
wideband codec for encoding data, as defined in
IETF RFC 3047.
This requires the module
g722-1
to have been downloaded.
Fields
- vmptx
- The VMP[tx] to which to add this codec
- payload_type
- The payload type identifer to use with this codec (see
IETF RFC 3550
section 13). Supplying a value of
-1
will remove any payload type configuration from the
codec preventing its use.
- bitrate
- Bitrate of the encoded data. Must be 24000 or 32000 (the ultrawideband bit rates
specified in G.722.1 Annex C are not supported).
- frames_per_packet
- The number of frames to send per packet. This value is normally one,
which encodes 20 milliseconds per packet, but larger values could be
used, to reduce the packet overhead at the expense of extra delay.
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody RTP processing API.