mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-27 13:16:21 +00:00
implement dynamic number of call limitations
This commit is contained in:
parent
8b79e7232a
commit
af38e99dd4
2 changed files with 3 additions and 3 deletions
|
|
@ -4146,9 +4146,9 @@ int linphone_core_get_calls_nb(const LinphoneCore *lc){
|
||||||
**/
|
**/
|
||||||
bool_t linphone_core_can_we_add_call(LinphoneCore *lc)
|
bool_t linphone_core_can_we_add_call(LinphoneCore *lc)
|
||||||
{
|
{
|
||||||
if(linphone_core_get_calls_nb(lc) < NB_MAX_CALLS)
|
if(linphone_core_get_calls_nb(lc) < lc->max_calls)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
ms_error("Maximum amount of simultaneous calls reached !");
|
ms_message("Maximum amount of simultaneous calls reached !");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit ba5d625fb8609f2af2487dd165d227641cd7b898
|
Subproject commit cb05f90c60ea9e4d65dcb71dea6fbeca278c58ba
|
||||||
Loading…
Add table
Reference in a new issue