public void Connect(NatPolicy natPolicy) { if (ConnectState == ConnectState.Disconnected) { ConnectState = ConnectState.Progress; var connParams = CreateConnectionParams(Account, natPolicy); LinphoneWrapper.CreatePhone(connParams); } }
private LinphoneConnectionParams CreateConnectionParams(Account account, NatPolicy natPolicy) { return(new LinphoneConnectionParams() { Username = Account.Username, Password = Account.Password, AccountAlias = Account.AccountName, Host = Account.Host, Port = Account.Port, Agent = Useragent, Version = Version, NatPolicy = natPolicy }); }
public void Connect() { Connect(NatPolicy.GetDefaultNatPolicy()); }