Go to the source code of this file.
Typedefs | |
typedef struct le_voicecall_Call * | le_voicecall_CallRef_t |
typedef struct le_voicecall_StateHandler * | le_voicecall_StateHandlerRef_t |
typedef void(* | le_voicecall_StateHandlerFunc_t )(le_voicecall_CallRef_t reference, const char *identifier, le_voicecall_Event_t event, void *contextPtr) |
Functions | |
void | le_voicecall_StartClient (const char *serviceInstanceName) |
void | le_voicecall_StopClient (void) |
le_voicecall_StateHandlerRef_t | le_voicecall_AddStateHandler (le_voicecall_StateHandlerFunc_t handlerPtr, void *contextPtr) |
void | le_voicecall_RemoveStateHandler (le_voicecall_StateHandlerRef_t addHandlerRef) |
le_voicecall_CallRef_t | le_voicecall_Start (const char *DestinationID) |
le_result_t | le_voicecall_End (le_voicecall_CallRef_t reference) |
le_result_t | le_voicecall_Delete (le_voicecall_CallRef_t reference) |
le_result_t | le_voicecall_Answer (le_voicecall_CallRef_t reference) |
le_result_t | le_voicecall_GetTerminationReason (le_voicecall_CallRef_t reference, le_voicecall_TerminationReason_t *reasonPtr) |
le_audio_StreamRef_t | le_voicecall_GetTxAudioStream (le_voicecall_CallRef_t reference) |
le_audio_StreamRef_t | le_voicecall_GetRxAudioStream (le_voicecall_CallRef_t reference) |
Legato Voice Call Service include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
typedef struct le_voicecall_Call* le_voicecall_CallRef_t |
Reference returned by Start function and used by End function
typedef void(* le_voicecall_StateHandlerFunc_t)(le_voicecall_CallRef_t reference, const char *identifier, le_voicecall_Event_t event, void *contextPtr) |
Handler for voice call state changes
reference | Event voice call object reference. |
identifier | Identifier of the remote party associated with the call. |
event | Voice call event. |
contextPtr |
typedef struct le_voicecall_StateHandler* le_voicecall_StateHandlerRef_t |
Reference type for le_voicecall_StateHandler handler ADD/REMOVE functions
enum le_voicecall_Event_t |
voice call establishment states.
voice call termination reason.
le_voicecall_StateHandlerRef_t le_voicecall_AddStateHandler | ( | le_voicecall_StateHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
le_voicecall_StateHandler handler ADD function
[in] | handlerPtr | |
[in] | contextPtr |
le_result_t le_voicecall_Answer | ( | le_voicecall_CallRef_t | reference | ) |
Answer to incoming voice call.
[in] | reference | Incoming voice call object reference to answer. |
le_result_t le_voicecall_Delete | ( | le_voicecall_CallRef_t | reference | ) |
Delete voice call object reference create by le_voicecall_Start() or an incoming voice call.
[in] | reference | Voice call object reference to delete. |
le_result_t le_voicecall_End | ( | le_voicecall_CallRef_t | reference | ) |
Release a voice call.
[in] | reference | Voice call object reference to hang-up. |
le_audio_StreamRef_t le_voicecall_GetRxAudioStream | ( | le_voicecall_CallRef_t | reference | ) |
Called to get the received audio stream. All audio received from the other end of the call is received on this stream.
[in] | reference | Voice call object reference to read from. |
le_result_t le_voicecall_GetTerminationReason | ( | le_voicecall_CallRef_t | reference, |
le_voicecall_TerminationReason_t * | reasonPtr | ||
) |
Get the termination reason of a voice call reference.
[in] | reference | Voice call object reference to read from. |
[out] | reasonPtr | Termination reason of the voice call. |
le_audio_StreamRef_t le_voicecall_GetTxAudioStream | ( | le_voicecall_CallRef_t | reference | ) |
Called to get the transmitted audio stream. All audio generated on this end of the call is sent on this stream.
[in] | reference | Voice call object reference to read from. |
void le_voicecall_RemoveStateHandler | ( | le_voicecall_StateHandlerRef_t | addHandlerRef | ) |
le_voicecall_StateHandler handler REMOVE function
[in] | addHandlerRef |
le_voicecall_CallRef_t le_voicecall_Start | ( | const char * | DestinationID | ) |
Start a voice call.
[in] | DestinationID | Destination identifier for the voice call establishment. |
void le_voicecall_StartClient | ( | const char * | serviceInstanceName | ) |
Start the service for the client main thread
[in] | serviceInstanceName |
void le_voicecall_StopClient | ( | void | ) |
Stop the service for the current client thread