From d0ad8713cdfdee9be80dfd3b97ae1913402eaa3f Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 31 Aug 2017 13:45:57 +0200 Subject: [PATCH] Fix : don't trigger legacy stun tests when ICE is enabled --- coreapi/linphonecall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 72cea8e21..eff3549e4 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1362,7 +1362,8 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr linphone_call_check_ice_session(call, IR_Controlling, FALSE); - if (linphone_nat_policy_ice_enabled(call->nat_policy)) { + if (linphone_nat_policy_stun_enabled(call->nat_policy) && !(linphone_nat_policy_ice_enabled(call->nat_policy) + || linphone_nat_policy_turn_enabled(call->nat_policy))) { call->ping_time=linphone_core_run_stun_tests(call->core,call); } #ifdef BUILD_UPNP