예제 #1
0
		public SimpleTU(SimpleModule simpleModule)
		{
			this.dialogManager = new DialogManager();

			this.simpleModule = simpleModule;
			this.simpleModule.NotifyEvent += SimpleModule_NotifyEvent;
			this.simpleModule.SubscriptionRemovedEvent += SimpleModule_SubscriptionRemovedEvent;

			this.notifyProducer = new ProducedRequest(this);
		}
예제 #2
0
        public SimpleTU(SimpleModule simpleModule)
        {
            this.dialogManager = new DialogManager();

            this.simpleModule              = simpleModule;
            this.simpleModule.NotifyEvent += SimpleModule_NotifyEvent;
            this.simpleModule.SubscriptionRemovedEvent += SimpleModule_SubscriptionRemovedEvent;

            this.notifyProducer = new ProducedRequest(this);
        }
예제 #3
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,
			};
		}
예제 #4
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,
            };
        }
예제 #5
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);
        }
예제 #6
0
 public MessageSummaryTU()
 {
     dialogManager  = new DialogManager();
     notifyProducer = new ProducedRequest(this);
 }
예제 #7
0
		public void OnIncomingResponse(ProducedRequest router, IncomingMessageEx message)
		{
			router.OnIncomingResponse(message);
		}
예제 #8
0
 public void OnIncomingResponse(ProducedRequest router, IncomingMessageEx message)
 {
     router.OnIncomingResponse(message);
 }
예제 #9
0
		public MessageSummaryTU()
		{
			dialogManager = new DialogManager();
			notifyProducer = new ProducedRequest(this);
		}