Prosody RTP processing: API: sm_vmprx_status_codec_amrwb

Prototype Definition

int sm_vmprx_status_codec_amrwb(struct sm_vmprx_status_codec_amrwb_parms *amrwbp)

Parameters

*amrwbp
a structure of the following type:
typedef struct sm_vmprx_status_codec_amrwb_parms {
	tSMVMPrxId vmprx;					/* in */
	tSM_INT payload_type;					/* in */
	enum kSMVMPrxAMRWBStatus {
		kSMVMPrxAMRWBStatusNone,
		kSMVMPrxAMRWBStatusNewCMR,
	} status;						/* out */
	union {
		struct {
			tSM_INT bitrate;			/* out */
		} cmr;						/* out */
	} u;							/* out */
} SM_VMPRX_STATUS_CODEC_AMRWB_PARMS;

Description

Fields

vmprx
The VMP[rx] to query
payload_type
The payload type which is configured as AMR-WB
status
The AMR-WB status One of these values:
kSMVMPrxAMRWBStatusNone
No AMR-WB status to report
kSMVMPrxAMRWBStatusNewCMR
An AMR-WB packet with a different CMR had been received.
u
cmr
This is only valid when status is kSMVMPrxAMRWBStatusNewCMR
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.