The Modem Call Control (mcc) API uses profiles. Calls can be initiated or received through these profiles. Each profile represents a call type or specific configuration of a given call (e.g., a profile can represent a given cellular modem/SIM combination - if the modem in question supports multiple SIM operation).
All the functions of this API are provided by the modemService service.
Here's a code sample binding to modem services:
bindings:
{
clientExe.clientComponent.le_mcc_profile -> modemService.le_mcc_profile
}
A given Legato device can support multiple profiles, but usually, the MCC API will be configured with a single profile name that will initiate or receive calls.
Call le_mcc_profile_GetByName() to access a specific profile by name.
le_mcc_profile_GetState() API allows the application to get the current state of the profile.
le_mcc_profile_AddStateChangeHandler() API installs a handler function that is notified when the profile's state changes.
le_mcc_profile_RemoveStateChangeHandler() API uninstalls the handler function.
When the Profile object is no longer needed, call le_mcc_profile_Release() must be used to release the profile.
Here's a profile code sample:
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.