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_ConnectService (void) |
void | le_voicecall_DisconnectService (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. 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 |
event | Voice call event. |
contextPtr |
typedef struct le_voicecall_StateHandler* le_voicecall_StateHandlerRef_t |
Reference type used by Add/Remove functions for EVENT 'le_voicecall_State'
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 | ||
) |
Add handler function for EVENT 'le_voicecall_State'
This event provides information on voice call state changes
[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. |
void le_voicecall_ConnectService | ( | void | ) |
Connect the client to the service
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. |
void le_voicecall_DisconnectService | ( | void | ) |
Disconnect the client from the service
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 | ) |
Remove handler function for EVENT 'le_voicecall_State'
[in] | addHandlerRef |
le_voicecall_CallRef_t le_voicecall_Start | ( | const char * | DestinationID | ) |
Start a voice call.
[in] | DestinationID | Destination identifier for the voice |