private void CreateProxyServerTU(int bindingsCount1, int delayTimerC) { Cleanup(); sendRequestCount = new int[128]; sentResponses = new List <SipMessageWriter>(); sendRequestes = new List <Request>(); bindingsCount = bindingsCount1; clientTransactionId = (int)Transaction.Kind.InviteClient; serverTransactionId = int.MaxValue & 0x00ffffff | (int)Transaction.Kind.InviteServer; serverCancelTransactionId = int.MaxValue & 0x00ffffff | (int)Transaction.Kind.CancelServer; var locationService = new LocationServiceX(); if (delayTimerC > 0) { proxy = new ProxyServerTU(locationService, new TrunkManagerX(), delayTimerC, new AccountsShim()); } else { proxy = new ProxyServerTU(locationService, new TrunkManagerX(), new AccountsShim()); } locationService.GetEnumerableBindingsEv = CreateBindings; RegisterTransactionUser(proxy); }
private void CreateProxyServerTU(int bindingsCount1, int delayTimerC) { Cleanup(); sendRequestCount = new int[128]; sentResponses = new List<SipMessageWriter>(); sendRequestes = new List<Request>(); bindingsCount = bindingsCount1; clientTransactionId = (int)Transaction.Kind.InviteClient; serverTransactionId = int.MaxValue & 0x00ffffff | (int)Transaction.Kind.InviteServer; serverCancelTransactionId = int.MaxValue & 0x00ffffff | (int)Transaction.Kind.CancelServer; var locationService = new LocationServiceX(); if (delayTimerC > 0) proxy = new ProxyServerTU(locationService, new TrunkManagerX(), delayTimerC, new AccountsShim()); else proxy = new ProxyServerTU(locationService, new TrunkManagerX(), new AccountsShim()); locationService.GetEnumerableBindingsEv = CreateBindings; RegisterTransactionUser(proxy); }