fix ICE enablement. It was enabling ICE without enabling STUN, resulting in reflexive connection being impossible.

This commit is contained in:
Simon Morlat 2017-08-31 13:47:40 +02:00
parent 36915dc99a
commit ee32ce38e7
2 changed files with 4 additions and 2 deletions

View file

@ -589,7 +589,9 @@ public class LinphonePreferences {
try {
LinphoneProxyConfig prxCfg = getProxyConfig(n);
prxCfg.edit();
prxCfg.getNatPolicy().setStunServer(stun);
LinphoneNatPolicy np = prxCfg.getNatPolicy();
np.setStunServer(stun);
np.enableStun(stun!=null);
prxCfg.done();
} catch (Exception e) {
Log.e(e);

@ -1 +1 @@
Subproject commit ad493beca7a6a537629e2fb66e67d2f52c8c433f
Subproject commit e095830bb6a6dda714f2ca9889888e2132659f91