MoSync 3.0.1
IX_CALL.h File Reference

Defines

#define EVENT_TYPE_CALL   11
 Has MAEvent::state be one of the CALLSTATE constants.
#define CALLSTATE_UNKNOWN   0
#define CALLSTATE_IDLE   1
#define CALLSTATE_DIALLING   2
#define CALLSTATE_RINGING   3
#define CALLSTATE_ANSWERING   4
#define CALLSTATE_CONNECTING   5
#define CALLSTATE_CONNECTED   6
#define CALLSTATE_RECONNECTPENDING   7
#define CALLSTATE_DISCONNECTING   8
#define CALLSTATE_HOLD   9
#define CALLSTATE_TRANSFERRING   10
#define CALLSTATE_TRANSFERALERTING   11

Functions

int maCallDial (const char *phoneNumber)
int maCallAnswer (void)
int maCallHangup (void)

Define Documentation

#define EVENT_TYPE_CALL   11

Has MAEvent::state be one of the CALLSTATE constants.

#define CALLSTATE_UNKNOWN   0
#define CALLSTATE_IDLE   1
#define CALLSTATE_DIALLING   2
#define CALLSTATE_RINGING   3
#define CALLSTATE_ANSWERING   4
#define CALLSTATE_CONNECTING   5
#define CALLSTATE_CONNECTED   6
#define CALLSTATE_DISCONNECTING   8
#define CALLSTATE_HOLD   9
#define CALLSTATE_TRANSFERRING   10
#define CALLSTATE_TRANSFERALERTING   11

Function Documentation

int maCallDial ( const char *  phoneNumber)

Starts dialing a voice call. Returns 0 on successful beginning of dial, or < 0 on error, like a call already in progress. Causes CALL events.

Parameters:
phoneNumberMax length: 100.

References maIOCtl().

int maCallAnswer ( void  )

Starts answering a voice call. The call state must be CALLSTATE_RINGING. Returns 0 on successful initialization of the answering process, or < 0 on error, like if the line is not ringing. Causes CALL events.

Note:
The line state may change while this function is being called. Therefore, it may fail even if you haven't received a new CALL event.

References maIOCtl().

int maCallHangup ( void  )

Starts hanging up a voice call, if a call is in progress. Returns 0 if no call is in progress, or on successful beginning of hangup. Returns < 0 on error. Can cause CALL events.

References maIOCtl().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines