protected SoftPhoneSpecificationBase()
 {
     _testClientUaUri      = TestConstants.EndPoint1Uri;
     _testClientUaEndPoint = TestConstants.IpEndPoint1;
     _phoneUaUri           = TestConstants.EndPoint2Uri;
     _phoneUaEndPoint      = TestConstants.IpEndPoint2;
     _timerFactory         = new TimerFactoryStubBuilder().Build();
     _stateProvider        = CreateStateProviderMock();
 }
 protected SoftPhoneSpecificationBase()
 {
     _testClientUaUri = TestConstants.EndPoint1Uri;
     _testClientUaEndPoint = TestConstants.IpEndPoint1;
     _phoneUaUri = TestConstants.EndPoint2Uri;
     _phoneUaEndPoint = TestConstants.IpEndPoint2;
     _timerFactory = new TimerFactoryStubBuilder().Build();
     _stateProvider = CreateStateProviderMock();
 }
Beispiel #3
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.");
        }
Beispiel #4
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.");
            }
        }