Prosody RTP processing: API: sm_vmprx_status_codec_amrnb

Prototype Definition

int sm_vmprx_status_codec_amrnb(struct sm_vmprx_status_codec_amrnb_parms *amrnbp)

Parameters

*amrnbp
a structure of the following type:
typedef struct sm_vmprx_status_codec_amrnb_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT payload_type;					/* in */
	enum kSMVMPrxAMRNBStatus {
		kSMVMPrxAMRNBStatusNone,
		kSMVMPrxAMRNBStatusNewCMR,
	} status;						/* out */
	union {
		struct {
			tSM_INT bitrate;			/* out */
		} cmr;						/* out */
	} u;							/* out */
} SM_VMPRX_STATUS_CODEC_AMRNB_PARMS;

Description

Fields

vmprx
The VMP[rx] to query
payload_type
The payload type which is configured as AMR-NB
status
The AMR-NB status One of these values:
kSMVMPrxAMRNBStatusNone
No AMR-NB status to report
kSMVMPrxAMRNBStatusNewCMR
An AMR-NB packet with a different CMR had been received.
u
cmr
This is only valid when status is kSMVMPrxAMRNBStatusNewCMR
bitrate
The received CMR bitrate value. Note that zero is returned when no specific mode is requested.

Returns

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


This function is part of the Prosody RTP processing API.