Ejemplo n.º 1
0
        public IPhoneLine CreatePhoneLine(SipAccount account)
        {
            Check.Require(account, "account");
            Check.IsTrue(_isRunning, "Failed to create phoneLine. The Phone must be started first.");

            /*for now unregistered phoneline*/
            return new PhoneLine(account, new Command<IPhoneLine>(OnRegisterPhoneLine));
        }
Ejemplo n.º 2
0
 public PhoneLine(SipAccount sipAccount, ICommand <IPhoneLine> onRegister)
 {
     _onRegister = onRegister;
     SipAccount  = sipAccount;
 }