Fix : don't trigger legacy stun tests when ICE is enabled

This commit is contained in:
Simon Morlat 2017-08-31 13:45:57 +02:00 committed by Jehan Monnier
parent 1c2b5ab29c
commit d0ad8713cd

View file

@ -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