Exemple #1
0
		public TrunkTU(TrunkManager trunkManager)
		{
			this.registerTimer = new MultiTimerEx<int>(RegisterTimer, 64);

			this.trunkManager = trunkManager;
			this.trunkManager.TrunkAdded += TrunkManager_TrunkAdded;
			this.trunkManager.TrunkRemoved += TrunkManager_TrunkRemoved;
			this.trunkManager.TrunkUpdated += trunkManager_TrunkUpdated;

			this.registerProducer = new ProducedRequest(this)
			{
				IncomingResponse = ProccessResponse,
				TransportError = ProccessTransportError,
			};
		}
Exemple #2
0
        public TrunkTU(TrunkManager trunkManager)
        {
            this.registerTimer = new MultiTimerEx <int>(RegisterTimer, 64);

            this.trunkManager               = trunkManager;
            this.trunkManager.TrunkAdded   += TrunkManager_TrunkAdded;
            this.trunkManager.TrunkRemoved += TrunkManager_TrunkRemoved;
            this.trunkManager.TrunkUpdated += trunkManager_TrunkUpdated;

            this.registerProducer = new ProducedRequest(this)
            {
                IncomingResponse = ProccessResponse,
                TransportError   = ProccessTransportError,
            };
        }
Exemple #3
0
        public ProxyServerTU(ILocationService locationService, ITrunkManager trunkManager, int delayTimerC, IAccounts accounts)
        {
            this.IsOfficeSIPFiletransferEnabled = true;

            this.locationService = locationService;
            this.trunkManager    = trunkManager;
            this.accounts        = accounts;

            this.requestProducer = new ProducedRequest(this)
            {
                IncomingResponse = ProccessResponse,
                TransportError   = ProccessTransportError,
                ProduceAck       = ProduceAck,
            };

            this.clientTransactionIds = new ThreadSafe.Dictionary <int, int>(new Dictionary <int, int>(16384 * 3));
            this.requestProxyes       = new ThreadSafe.Dictionary <int, RequestProxy>(new Dictionary <int, RequestProxy>(16384));

            this.timerC = new MultiTimerEx <ServerClientId>(TimerC, 16384, delayTimerC);
        }