private void Save()
        {
            if (Domain.Text.Contains(":"))
            {
                if (Proxy.Text.Length == 0)
                {
                    Proxy.Text = Domain.Text;
                }
                Domain.Text = Domain.Text.Split(':')[0];
            }

            _settings.Username = Username.Text;
            _settings.UserId = UserId.Text;
            _settings.Password = Password.Password;
            _settings.Domain = Domain.Text;
            _settings.Proxy = Proxy.Text;
            _settings.OutboundProxy = OutboundProxy.IsChecked;
            _settings.DisplayName = DisplayName.Text;
            _settings.Transport = Transport.SelectedItem.ToString();
            _settings.Expires = Expires.Text;
            _settings.AVPF = AVPF.IsChecked;
            _settings.Save();

            if (linphoneAccount)
            {
                NetworkSettingsManager networkSettings = new NetworkSettingsManager();
                networkSettings.Load();
                networkSettings.MEncryption = networkSettings.EnumToMediaEncryption[MediaEncryption.SRTP];
                networkSettings.FWPolicy = networkSettings.EnumToFirewallPolicy[FirewallPolicy.UseIce];
                networkSettings.StunServer = "stun.linphone.org";
                networkSettings.Save();
            }
        }
 /// <summary>
 /// Configures the Tunnel using the current setting value
 /// </summary>
 public void ConfigureTunnel()
 {
     NetworkSettingsManager settings = new NetworkSettingsManager();
     settings.Load();
     ConfigureTunnel(settings.TunnelMode);
 }