Liblinphone
5.0.0
|
LinphoneStatus linphone_core_add_account | ( | LinphoneCore * | core, |
LinphoneAccount * | account | ||
) |
Add an account.
This will start registration on the proxy, if registration is enabled.
core | LinphoneCore object |
account | the LinphoneAccount to add |
void linphone_core_clear_accounts | ( | LinphoneCore * | core | ) |
Erase all account from config.
core | LinphoneCore object |
LinphoneAccount* linphone_core_create_account | ( | LinphoneCore * | core, |
LinphoneAccountParams * | params | ||
) |
Create an account using given parameters, see linphone_core_create_account_params().
core | LinphoneCore object |
params | LinphoneAccountParams object |
LinphoneAccountParams* linphone_core_create_account_params | ( | LinphoneCore * | core | ) |
Create an account params using default values from Linphone core.
core | LinphoneCore object |
LinphoneAccount* linphone_core_get_account_by_idkey | ( | LinphoneCore * | core, |
const char * | idkey | ||
) |
Search for a LinphoneAccount by it's idkey.
core | the LinphoneCore object |
idkey | An arbitrary idkey string associated to an account. |
const bctbx_list_t* linphone_core_get_account_list | ( | const LinphoneCore * | core | ) |
LinphoneAccount* linphone_core_get_default_account | ( | const LinphoneCore * | core | ) |
Returns the default account, that is the one used to determine the current identity.
core | LinphoneCore object |
void linphone_core_remove_account | ( | LinphoneCore * | core, |
LinphoneAccount * | account | ||
) |
Removes an account.
LinphoneCore will then automatically unregister and place the account on a deleted list. For that reason, a removed account does NOT need to be freed.
core | LinphoneCore object |
account | the LinphoneAccount to remove |
void linphone_core_set_default_account | ( | LinphoneCore * | core, |
LinphoneAccount * | account | ||
) |
Sets the default account.
This default account must be part of the list of already entered LinphoneAccount. Toggling it as default will make LinphoneCore use the identity associated with the account in all incoming and outgoing calls.
core | LinphoneCore object |
account | The account to use as the default one. |