Commit d863f825 authored by Ghislain MARY's avatar Ghislain MARY

Fix some settings.

parent 5c2ddc99
[net]
download_bw=380
upload_bw=380
firewall_policy=ice
[sip]
default_proxy=0
......
......@@ -4,7 +4,6 @@ mtu=1300
[sip]
guess_hostname=1
inc_timeout=45
use_ipv6=0
register_only_when_network_is_up=1
ping_with_options=0
store_ha1_passwd=0
......
......@@ -1296,15 +1296,15 @@ namespace Linphone.Model
/// </summary>
public void Save()
{
if (ValueChanged(StunServerKeyName))
LinphoneManager.Instance.Core.StunServer = GetNew(StunServerKeyName);
if (ValueChanged(FirewallPolicyKeyName))
{
string firewallPolicy = GetNew(FirewallPolicyKeyName);
LinphoneManager.Instance.Core.FirewallPolicy = FirewallPolicyToEnum[firewallPolicy];
}
if (ValueChanged(StunServerKeyName))
LinphoneManager.Instance.Core.StunServer = GetNew(StunServerKeyName);
if (ValueChanged(MediaEncryptionKeyName))
{
string mediaEncryption = GetNew(MediaEncryptionKeyName);
......
......@@ -89,6 +89,7 @@ namespace Linphone.Views
{
NetworkSettingsManager networkSettings = new NetworkSettingsManager();
networkSettings.Load();
networkSettings.MEncryption = "SRTP";
networkSettings.FWPolicy = networkSettings.EnumToFirewallPolicy[FirewallPolicy.UseIce];
networkSettings.StunServer = "stun.linphone.org";
networkSettings.Save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment