From 66cf0b624cf58be3b627cb54a729495d9cbf3468 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 14 Feb 2017 11:51:19 +0100 Subject: [PATCH] Perform an ICE reset instead of an ICE restart when recovering from a connection loss (it has the effect to also clear the previous local candidates). --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index e59851dea..f72d8bffc 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -5689,7 +5689,7 @@ void linphone_call_reinvite_to_recover_from_connection_loss(LinphoneCall *call) LinphoneCallParams *params; ms_message("LinphoneCall[%p] is going to be updated (reINVITE) in order to recover from lost connectivity", call); if (call->ice_session){ - ice_session_restart(call->ice_session, IR_Controlling); + ice_session_reset(call->ice_session, IR_Controlling); } params = linphone_core_create_call_params(call->core, call); linphone_core_update_call(call->core, call, params);