From a029a954cdcadb632705c259d1d457cfd04d62a7 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sat, 3 Mar 2018 11:46:54 +0100 Subject: [PATCH] add property to forcibly deactivate ice. --- src/nat/ice-agent.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nat/ice-agent.cpp b/src/nat/ice-agent.cpp index 51874850f..4c98340fd 100644 --- a/src/nat/ice-agent.cpp +++ b/src/nat/ice-agent.cpp @@ -45,6 +45,12 @@ void IceAgent::checkSession (IceRole role, bool isReinvite) { return; LinphoneConfig *config = linphone_core_get_config(mediaSession.getCore()->getCCore()); + + if (lp_config_get_int(config, "net", "force_ice_disablement", 0)){ + lWarning()<<"ICE is disabled in this version"; + return; + } + if (isReinvite && (lp_config_get_int(config, "net", "allow_late_ice", 0) == 0)) return;