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)); }
public PhoneLine(SipAccount sipAccount, ICommand <IPhoneLine> onRegister) { _onRegister = onRegister; SipAccount = sipAccount; }