public ISipProvider CreateSipProvider(SipListeningPoint listeningPoint) { Check.Require(listeningPoint, "listeningPoint"); var contextSource = new SipContextSource( listeningPoint, CreateThreadPool(), CreateMessageFactory(), CreateHeaderFactory()); var sipProvider = new SipProvider(this, contextSource); return(sipProvider); }
internal SoftPhone(ISipProvider provider, SipMessageFactory messageFactory, SipHeaderFactory headerFactory, SipAddressFactory addressFactory, ISoftPhoneStateProvider stateProvider, ITimerFactory timerFactory, SipListeningPoint listeningPoint) { ListeningPoint = listeningPoint; _provider = provider; _messageFactory = messageFactory; _headerFactory = headerFactory; _addressFactory = addressFactory; _stateProvider = stateProvider; _timerFactory = timerFactory; InternalState = _stateProvider.GetIdle(); InternalState.Initialize(this); RetransmitRingingTimer = _timerFactory.CreateRingingTimer(OnRetransmitRinging); EndWaitForAckTimer = _timerFactory.CreateInviteCtxTimeOutTimer(OnWaitForAckTimeOut); if(_logger.IsDebugEnabled) _logger.Debug("Initialized."); }
public ISipProvider CreateSipProvider(SipListeningPoint listeningPoint) { Check.Require(listeningPoint, "listeningPoint"); var contextSource = new SipContextSource( listeningPoint, CreateThreadPool(), CreateMessageFactory(), CreateHeaderFactory()); var sipProvider = new SipProvider(this, contextSource); return sipProvider; }