mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
do not stop ringing when still incoming calls
This commit is contained in:
parent
b75ff9c06c
commit
a0de8d042e
1 changed files with 13 additions and 1 deletions
|
|
@ -901,6 +901,8 @@ static void call_failure(SalOp *op){
|
|||
const char *msg=ei->full_string;
|
||||
LinphoneCall *referer;
|
||||
LinphoneCall *call=(LinphoneCall*)sal_op_get_user_pointer(op);
|
||||
bool_t stop_ringing = TRUE;
|
||||
bctbx_list_t *calls = lc->calls;
|
||||
|
||||
if (call==NULL){
|
||||
ms_warning("Call faillure reported on already terminated call.");
|
||||
|
|
@ -1012,7 +1014,17 @@ static void call_failure(SalOp *op){
|
|||
break; /*nothing to do*/
|
||||
}
|
||||
|
||||
linphone_core_stop_ringing(lc);
|
||||
/* Stop ringing */
|
||||
while(calls) {
|
||||
if (((LinphoneCall *)calls->data)->state == LinphoneCallIncomingReceived) {
|
||||
stop_ringing = FALSE;
|
||||
break;
|
||||
}
|
||||
calls = calls->next;
|
||||
}
|
||||
if(stop_ringing) {
|
||||
linphone_core_stop_ringing(lc);
|
||||
}
|
||||
linphone_call_stop_media_streams(call);
|
||||
|
||||
#ifdef BUILD_UPNP
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue