le_mcc_interface.h
Go to the documentation of this file.
66 * another thread, they will each get different call references for the same call. So, when multiple67 * threads are being used to work with the same call, a comparison of the call references themselves70 * The Adaptive Multi Rate (AMR) is an audio compression format optimized for speech coding and used72 * An AMR Narrowband that encodes a bandwidth of 200--3400 Hz signals at variable bitrates ranging76 * le_mcc_SetAmrWbCapability() function enables or disables the AMR Wideband supported capability.111 * @todo Other Supplementary services will be available in a future release. Create simpler examples.115 * A sample code that implements a dialing call can be found in \b le_mccTest.c file (please refer146 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------156 * Connect the current client thread to the service providing this API. Block until the service is159 * For each thread that wants to use this API, either ConnectService or TryConnectService must be160 * called before any other functions in this API. Normally, ConnectService is automatically called165 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------174 * Try to connect the current client thread to the service providing this API. Return with an error177 * For each thread that wants to use this API, either ConnectService or TryConnectService must be178 * called before any other functions in this API. Normally, ConnectService is automatically called187 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).190 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------200 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants203 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------216 * longer a connection to the service, and the functions in this API can't be used. For details, see221 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------386 //--------------------------------------------------------------------------------------------------390 //--------------------------------------------------------------------------------------------------394 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------409 (418 //--------------------------------------------------------------------------------------------------428 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------447 //--------------------------------------------------------------------------------------------------454 //--------------------------------------------------------------------------------------------------472 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------488 //--------------------------------------------------------------------------------------------------495 //--------------------------------------------------------------------------------------------------499 * Output parameter is updated with the telephone number. If the Telephone number string length exceeds500 * the value of 'len' parameter, the LE_OVERFLOW error code is returned and 'telPtr' is used until502 * Note that 'len' sould be at least equal to LE_MDMDEFS_PHONE_NUM_MAX_BYTES, otherwise LE_OVERFLOW511 //--------------------------------------------------------------------------------------------------522 //--------------------------------------------------------------------------------------------------531 //--------------------------------------------------------------------------------------------------538 //--------------------------------------------------------------------------------------------------550 //--------------------------------------------------------------------------------------------------557 //--------------------------------------------------------------------------------------------------569 //--------------------------------------------------------------------------------------------------576 //--------------------------------------------------------------------------------------------------589 //--------------------------------------------------------------------------------------------------596 //--------------------------------------------------------------------------------------------------598 * This function will disconnect, or hang up all the ongoing calls. Any active call handlers will605 //--------------------------------------------------------------------------------------------------611 //--------------------------------------------------------------------------------------------------613 * This function return the Calling Line Identification Restriction (CLIR) status on the specific625 //--------------------------------------------------------------------------------------------------634 //--------------------------------------------------------------------------------------------------636 * This function set the Calling Line Identification Restriction (CLIR) status on the specific call.644 //--------------------------------------------------------------------------------------------------653 //--------------------------------------------------------------------------------------------------665 //--------------------------------------------------------------------------------------------------674 //--------------------------------------------------------------------------------------------------678 //--------------------------------------------------------------------------------------------------685 //--------------------------------------------------------------------------------------------------694 //--------------------------------------------------------------------------------------------------701 //--------------------------------------------------------------------------------------------------710 //--------------------------------------------------------------------------------------------------717 //--------------------------------------------------------------------------------------------------726 //--------------------------------------------------------------------------------------------------733 //--------------------------------------------------------------------------------------------------744 //--------------------------------------------------------------------------------------------------751 //--------------------------------------------------------------------------------------------------760 //--------------------------------------------------------------------------------------------------void le_mcc_ConnectService(void)le_result_t le_mcc_GetCallerIdRestrict(le_mcc_CallRef_t callRef, le_onoff_t *clirStatusPtrPtr)le_result_t le_mcc_ActivateCall(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:316le_mcc_CallEventHandlerRef_t le_mcc_AddCallEventHandler(le_mcc_CallEventHandlerFunc_t handlerPtr, void *contextPtr)Remote party ended the call (Normal Call Clearing).Definition: le_mcc_interface.h:266le_result_t le_mcc_GetCallWaitingService(bool *activePtr)Far end is now alerting its user (outgoing call).Definition: le_mcc_interface.h:241cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:336le_result_t le_mcc_TryConnectService(void)le_mcc_CallRef_t le_mcc_Create(const char *LE_NONNULL phoneNumPtr)le_result_t le_mcc_Delete(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:332le_result_t le_mcc_SetCallWaitingService(bool active)void le_mcc_DisconnectService(void)Local party ended the call (Normal Call Clearing).Definition: le_mcc_interface.h:264le_result_t le_mcc_HangUpAll(void)int32_t le_mcc_GetPlatformSpecificTerminationCode(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:352void(* le_mcc_CallEventHandlerFunc_t)(le_mcc_CallRef_t callRef, le_mcc_Event_t event, void *contextPtr)Definition: le_mcc_interface.h:409le_result_t le_mcc_Start(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:350Definition: le_mcc_interface.h:369le_result_t le_mcc_GetAmrWbCapability(bool *enabledPtr)bool le_mcc_IsConnected(le_mcc_CallRef_t callRef)le_result_t le_mcc_SetAmrWbCapability(bool enable)struct le_mcc_CallEventHandler * le_mcc_CallEventHandlerRef_tDefinition: le_mcc_interface.h:395cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:356cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:310cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:344void le_mcc_RemoveCallEventHandler(le_mcc_CallEventHandlerRef_t handlerRef)Call has been established, and is media is active.Definition: le_mcc_interface.h:243le_result_t le_mcc_HangUp(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:334cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:328cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:306le_mcc_TerminationReason_t le_mcc_GetTerminationReason(le_mcc_CallRef_t callRef)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:330le_result_t le_mcc_Answer(le_mcc_CallRef_t callRef)Definition: le_mcc_interface.h:366le_result_t le_mcc_GetRemoteTel(le_mcc_CallRef_t callRef, char *telPtr, size_t telPtrSize)cf. 3GPP 24.008 10.5.3.6Definition: le_mcc_interface.h:364cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:318void le_mcc_SetServerDisconnectHandler(le_mcc_DisconnectHandler_t disconnectHandler, void *contextPtr)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:312le_result_t le_mcc_SetCallerIdRestrict(le_mcc_CallRef_t callRef, le_onoff_t clirStatus)cf. 3GPP 24.008 Annex HDefinition: le_mcc_interface.h:300void(* le_mcc_DisconnectHandler_t)(void *)Definition: le_mcc_interface.h:151