|
MoSync 3.0.1
|
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 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 |
| 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.
| phoneNumber | Max 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.
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().