mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
add property to forcibly deactivate ice.
This commit is contained in:
parent
204e218bb0
commit
a029a954cd
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue