Go to the source code of this file.
Legato Modem Call Control API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
typedef struct le_mcc_Call* le_mcc_call_Ref_t |
Reference type for managing active calls.
typedef void(* le_mcc_profile_CallEventHandlerFunc_t)(le_mcc_call_Ref_t callRef, le_mcc_call_Event_t event, void *contextPtr) |
Handler called whenever an event is received by a profile on the device.
callRef | Call associated with the event. |
event | Call event. |
contextPtr | Context information that the event handler may require. |
typedef struct le_mcc_profile_CallEventHandler* le_mcc_profile_CallEventHandlerRef_t |
Reference type for Call Event Handler references.
typedef struct le_mcc_Profile* le_mcc_profile_Ref_t |
Reference type to represent profiles capable sending and receiving calls.
typedef void(* le_mcc_profile_StateChangeHandlerFunc_t)(le_mcc_profile_State_t newState, void *contextPtr) |
Handler is called whenever the state of a specified profile changes.
newState | New state profile. |
contextPtr | Whatever context information the event handler may require. |
typedef struct le_mcc_profile_StateChangeHandler* le_mcc_profile_StateChangeHandlerRef_t |
Reference type for Profile State's Changes Handler references.
Enumeration to convey current status of a given profile.
le_result_t le_mcc_call_Answer | ( | le_mcc_call_Ref_t | callRef | ) |
Answers incoming call.
[in] | callRef | Call reference |
void le_mcc_call_Delete | ( | le_mcc_call_Ref_t | callRef | ) |
Call to free up a call reference.
[in] | callRef | Call object to free |
le_result_t le_mcc_call_GetRemoteTel | ( | le_mcc_call_Ref_t | callRef, |
char * | telPtr, | ||
size_t | len | ||
) |
Display the remote party telephone number associated with the call.
Output parameter is updated with the telephone number. If the Telephone number string length exceeds the value of 'len' parameter, the LE_OVERFLOW error code is returned and 'telPtr' is used until 'len-1' characters and a null-character is implicitly appended at the end of 'telPtr'. Note the 'len' parameter sould be at least equal to LE_TEL_NMBR_MAX_LEN, otherwise LE_OVERFLOW error code will be common.
[in] | callRef | Call reference to read |
[out] | telPtr | Telephone number string |
[in] | len | Telephone number string length |
Called to get the received audio stream. All audio received from the other end of the call is received on this stream.
[in] | callRef | Call reference to read |
Called to get the termination reason.
[in] | callRef | Call reference to read |
Called to get the transmitted audio stream. All audio generated on this end of the call is sent on this stream.
[in] | callRef | Call reference to read |
le_result_t le_mcc_call_HangUp | ( | le_mcc_call_Ref_t | callRef | ) |
Disconnect, or hang up, the specifed call. Any active call handlers will be notified.
[in] | callRef | Call to end |
bool le_mcc_call_IsConnected | ( | le_mcc_call_Ref_t | callRef | ) |
Allow the caller to know if the given call is actually connected or not.
[in] | callRef | Call reference to read |
le_result_t le_mcc_call_Start | ( | le_mcc_call_Ref_t | callRef | ) |
Start a call attempt.
Asynchronous due to possible time to connect.
As the call attempt proceeds, the profile's registered call event handler receives events.
*
[in] | callRef | Reference to the call object. |
le_mcc_profile_CallEventHandlerRef_t le_mcc_profile_AddCallEventHandler | ( | le_mcc_profile_Ref_t | profileRef, |
le_mcc_profile_CallEventHandlerFunc_t | handlerFuncPtr, | ||
void * | contextPtr | ||
) |
Register an event handler to be notified when an event occurs on a call associated with a given profile.
Registered handler will receive events for both incoming and outgoing calls.
[in] | profileRef | Profile to update |
[in] | handlerFuncPtr | Event handler function |
[in] | contextPtr | Handler's context |
le_mcc_profile_StateChangeHandlerRef_t le_mcc_profile_AddStateChangeHandler | ( | le_mcc_profile_Ref_t | profileRef, |
le_mcc_profile_StateChangeHandlerFunc_t | handlerFuncPtr, | ||
void * | contextPtr | ||
) |
Add an event handler for profile state changes.
[in] | profileRef | The profile reference. |
[in] | handlerFuncPtr | The event handler function. |
[in] | contextPtr | The handlers context. |
le_mcc_call_Ref_t le_mcc_profile_CreateCall | ( | le_mcc_profile_Ref_t | profileRef, |
const char * | destinationPtr | ||
) |
Create a new call object with a destination telephone number.
le_mcc_call_Start()
must still initiate the call when ready.
[in] | profileRef | Profile for new call. |
[in] | destinationPtr | Target number to call. |
le_mcc_profile_Ref_t le_mcc_profile_GetByName | ( | const char * | profileNamePtr | ) |
Access a particular profile by name.
[in] | profileNamePtr | Profile name to search |
Used to determine the current state of a given profile.
[in] | profileRef | Profile reference to read |
void le_mcc_profile_Release | ( | le_mcc_profile_Ref_t | profileRef | ) |
Must be called to release a Call Profile.
[in] | profileRef | Call profile reference |
void le_mcc_profile_RemoveCallEventHandler | ( | le_mcc_profile_CallEventHandlerRef_t | handlerRef | ) |
Remove the registered event handler to no longer be notified of events on calls.
[in] | handlerRef | Handler object to remove |
void le_mcc_profile_RemoveStateChangeHandler | ( | le_mcc_profile_StateChangeHandlerRef_t | handlerRef | ) |
Remove the registered event handler, to no longer receive state change events.
[in] | handlerRef | Handler object to remove |