示例#1
0
        public void Connect(NatPolicy natPolicy)
        {
            if (ConnectState == ConnectState.Disconnected)
            {
                ConnectState = ConnectState.Progress;

                var connParams = CreateConnectionParams(Account, natPolicy);
                LinphoneWrapper.CreatePhone(connParams);
            }
        }
示例#2
0
 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
     });
 }
示例#3
0
 public void Connect()
 {
     Connect(NatPolicy.GetDefaultNatPolicy());
 }