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

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