Example #1
0
        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);
        }
Example #2
0
        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.");
        }
Example #3
0
        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;
        }