le_voicecall_interface.h
Go to the documentation of this file.
36 * A voice call can be started using le_voicecall_Start() with the destination identifier passed as43 * indicating it's now connected. If the state of the voice call changes, then the handler will be80 * Application have to use le_voicecall_Delete() to release @ref le_voicecall_CallRef_t voice call106 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------116 * Connect the current client thread to the service providing this API. Block until the service is119 * For each thread that wants to use this API, either ConnectService or TryConnectService must be120 * called before any other functions in this API. Normally, ConnectService is automatically called125 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------134 * Try to connect the current client thread to the service providing this API. Return with an error137 * For each thread that wants to use this API, either ConnectService or TryConnectService must be138 * called before any other functions in this API. Normally, ConnectService is automatically called147 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).150 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------160 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants163 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------176 * longer a connection to the service, and the functions in this API can't be used. For details, see181 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------263 (275 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------364 //--------------------------------------------------------------------------------------------------373 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------le_result_t le_voicecall_TryConnectService(void)le_result_t le_voicecall_End(le_voicecall_CallRef_t reference)le_result_t le_voicecall_Delete(le_voicecall_CallRef_t reference)All local connection resources (lines/channels) are in use.Definition: le_voicecall_interface.h:214void le_voicecall_SetServerDisconnectHandler(le_voicecall_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_voicecall_StateHandlerFunc_t)(le_voicecall_CallRef_t reference, const char *LE_NONNULL identifier, le_voicecall_Event_t event, void *contextPtr)Definition: le_voicecall_interface.h:263struct le_audio_Stream * le_audio_StreamRef_tDefinition: le_audio_interface.h:594le_voicecall_StateHandlerRef_t le_voicecall_AddStateHandler(le_voicecall_StateHandlerFunc_t handlerPtr, void *contextPtr)Definition: le_voicecall_interface.h:203Remote address could not be resolved.Definition: le_voicecall_interface.h:235struct le_voicecall_StateHandler * le_voicecall_StateHandlerRef_tDefinition: le_voicecall_interface.h:254struct le_voicecall_Call * le_voicecall_CallRef_tDefinition: le_voicecall_interface.h:193le_audio_StreamRef_t le_voicecall_GetRxAudioStream(le_voicecall_CallRef_t reference)le_audio_StreamRef_t le_voicecall_GetTxAudioStream(le_voicecall_CallRef_t reference)le_result_t le_voicecall_GetTerminationReason(le_voicecall_CallRef_t reference, le_voicecall_TerminationReason_t *reasonPtr)Call has been established, and is media is active.Definition: le_voicecall_interface.h:206void le_voicecall_ConnectService(void)Caller is currently busy and cannot take the call.Definition: le_voicecall_interface.h:237Call answering failed.Definition: le_voicecall_interface.h:218NO Service available to try establish a voice call.Definition: le_voicecall_interface.h:210Incoming voice call in progress.Definition: le_voicecall_interface.h:220void le_voicecall_RemoveStateHandler(le_voicecall_StateHandlerRef_t handlerRef)void(* le_voicecall_DisconnectHandler_t)(void *)Definition: le_voicecall_interface.h:111Network could not complete the call.Definition: le_voicecall_interface.h:233void le_voicecall_DisconnectService(void)le_voicecall_CallRef_t le_voicecall_Start(const char *LE_NONNULL DestinationID)le_voicecall_TerminationReason_tDefinition: le_voicecall_interface.h:231le_result_t le_voicecall_Answer(le_voicecall_CallRef_t reference)