This function is only in Preliminary Documentation.
int sm_fmprx_status(struct sm_fmprx_status_parms *statusp)
typedef struct sm_fmprx_status_parms {
tSMFMPrxId fmprx; /* in */
enum kSMFMPrxStatus {
kSMFMPrxStatusRunning,
kSMFMPrxStatusStopped,
kSMFMPrxStatusGotPorts,
kSMFMPrxStatusSource,
} status; /* out */
union {
struct {
int T38_port; /* out */
struct in_addr address; /* out */
} port; /* out */
struct {
struct in_addr address; /* out */
int port; /* out */
} source; /* out */
} u; /* out */
} SM_FMPRX_STATUS_PARMS;
Returns the current status of the FMP[rx] or an error to indicate that an error has occurred.
When the event, obtained from sm_fmprx_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 FMP[rx].
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody FMP processing API.