This function is only in Prosody version 2 (TiNG).
int sm_vmprx_status(struct sm_vmprx_status_parms *statusp)
typedef struct sm_vmprx_status_parms {
tSMVMPrxId vmprx; /* in */
enum kSMVMPrxStatus {
kSMVMPrxStatusRunning,
kSMVMPrxStatusStopped,
kSMVMPrxStatusDetectTone,
kSMVMPrxStatusEndTone,
kSMVMPrxStatusGotPorts,
kSMVMPrxStatusNewSSRC,
} status; /* out */
union {
struct {
tSM_INT id; /* out */
double volume; /* out */
unsigned duration; /* out */
} tone; /* out */
struct {
int RTP_Port; /* out */
int RTCP_Port; /* out */
struct in_addr address; /* out */
} ports; /* out */
struct {
tSM_INT no_data; /* out */
} run; /* out */
struct {
struct in_addr address; /* out */
int port; /* out */
int ssrc; /* out */
} ssrc; /* out */
} u; /* out */
} SM_VMPRX_STATUS_PARMS;
Returns the current status of the VMP[rx] or an error to indicate that an error has occurred.
When the VMP[rx] event, obtained from sm_vmprx_get_event(), is signalled the user must call this function to determine the nature of the status change. The change in status may indicate that an error occurred whilst processing a user request or it may be notifiying the user of a change to the previous state of the VMP[rx].
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.