Commit de154b52 authored by Benjamin REIS's avatar Benjamin REIS

keep ringing in early media when declining one of many incoming calls if...

keep ringing in early media when declining one of many incoming calls if linphone_core_set_ring_during_incoming_early_media=true
parent 84441343
......@@ -1016,7 +1016,7 @@ static void call_failure(SalOp *op){
/* Stop ringing */
while(calls) {
if (((LinphoneCall *)calls->data)->state == LinphoneCallIncomingReceived) {
if (((LinphoneCall *)calls->data)->state == LinphoneCallIncomingReceived || (linphone_core_get_ring_during_incoming_early_media(lc) && ((LinphoneCall *)calls->data)->state == LinphoneCallIncomingEarlyMedia)) {
stop_ringing = FALSE;
break;
}
......
......@@ -5260,7 +5260,7 @@ static void terminate_call(LinphoneCall *call) {
/* Stop ringing */
while(calls) {
if (((LinphoneCall *)calls->data)->state == LinphoneCallIncomingReceived) {
if (((LinphoneCall *)calls->data)->state == LinphoneCallIncomingReceived || (linphone_core_get_ring_during_incoming_early_media(lc) && ((LinphoneCall *)calls->data)->state == LinphoneCallIncomingEarlyMedia)) {
stop_ringing = FALSE;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment