Fix random no-audio issue:
- old STUN-only mode shall not be used in the app - the library was sending incorrect c= line when this mode was used.
This commit is contained in:
parent
be6ef27961
commit
5088edccd1
3 changed files with 4 additions and 4 deletions
|
@ -560,6 +560,7 @@ public class LinphonePreferences {
|
|||
ProxyConfig prxCfg = getProxyConfig(n);
|
||||
prxCfg.edit();
|
||||
prxCfg.getNatPolicy().enableIce(ice);
|
||||
prxCfg.getNatPolicy().enableStun(ice);
|
||||
prxCfg.done();
|
||||
} catch (Exception e) {
|
||||
Log.e(e);
|
||||
|
@ -577,7 +578,6 @@ public class LinphonePreferences {
|
|||
prxCfg.edit();
|
||||
NatPolicy np = prxCfg.getNatPolicy();
|
||||
np.setStunServer(stun);
|
||||
np.enableStun(stun!=null);
|
||||
prxCfg.done();
|
||||
} catch (Exception e) {
|
||||
Log.e(e);
|
||||
|
@ -1041,7 +1041,6 @@ public class LinphonePreferences {
|
|||
nat.setStunServer(stun);
|
||||
|
||||
if (stun != null && !stun.isEmpty()) {
|
||||
nat.enableStun(true);
|
||||
}
|
||||
getLc().setNatPolicy(nat);
|
||||
}
|
||||
|
@ -1049,6 +1048,7 @@ public class LinphonePreferences {
|
|||
public void setIceEnabled(boolean enabled) {
|
||||
NatPolicy nat = getOrCreateNatPolicy();
|
||||
nat.enableIce(enabled);
|
||||
nat.enableStun(enabled);
|
||||
getLc().setNatPolicy(nat);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7aeebbb8387bb8de943caded23cd23bb78b6a58b
|
||||
Subproject commit c805efcad8a0bb1c9aa39293aa20731a925e5a00
|
|
@ -1 +1 @@
|
|||
Subproject commit 1ad9a0789fb6fd80177c043d012bd8acaf7eb01a
|
||||
Subproject commit 67b6f7193926191907498c41bebb507f1302dca6
|
Loading…
Reference in a new issue