Example #1
0
        public MsPresTU(IAccounts accounts, IUserz userz, LocationService locationService)
        {
            this.accounts         = accounts;
            this.userz            = userz;
            this.locationService  = locationService;
            this.enhancedPresence = new EnhancedPresence1(BenotifyHandler);
            this.dialogManager    = new DialogManager();

            locationService.AorAdded       += LocationService_AorAdded;
            locationService.AorRemoved     += LocationService_AorRemoved;
            locationService.ContactAdded   += LocationService_ContactAdded;
            locationService.ContactRemoved += LocationService_ContactRemoved;

            userz.Updated += Users_AddedOrUpdated;
            userz.Added   += Users_AddedOrUpdated;
            userz.Reset   += Users_Reset;

            accounts.ForEach((account) =>
            {
                for (int i = 0; i < userz.Count; i++)
                {
                    ResetUsers(userz[i], account);
                }
            });
        }
Example #2
0
		public DirectorySearchTU(IAccounts accounts, ServiceSoap1 serviceSoap, IUserz userz)
		{
			this.type = new ByteArrayPart("application");
			this.subtype = new ByteArrayPart("SOAP+xml");
			this.accounts = accounts;
			this.serviceSoap = serviceSoap;
			this.userz = userz;
		}
Example #3
0
 public DirectorySearchTU(IAccounts accounts, ServiceSoap1 serviceSoap, IUserz userz)
 {
     this.type        = new ByteArrayPart("application");
     this.subtype     = new ByteArrayPart("SOAP+xml");
     this.accounts    = accounts;
     this.serviceSoap = serviceSoap;
     this.userz       = userz;
 }
        public DigestAuthentication(IAccounts accounts, IUserz userz, bool isAuthIntEnabled)
        {
            this.accounts         = accounts;
            this.userz            = userz;
            this.isAuthIntEnabled = isAuthIntEnabled;

            authStates = new ThreadSafe.Dictionary <int, AuthState>(new Dictionary <int, AuthState>(16384));           // vf Int32Compa...
            timer      = new Timer(RemoveExpiredNonce, null, 0, NonceLifeCheckInterval);
        }
        public SipMicrosoftAuthentication(AuthSchemes scheme, IAccounts accounts, IUserz userz)
        {
            this.scheme   = scheme;
            this.accounts = accounts;
            this.userz    = userz;

            this.connectingAssociations = new ThreadSafe.Dictionary <int, SecurityAssociation>(new Dictionary <int, SecurityAssociation>());

            this.timer      = new Timer(RemoveExpiredSecurityAssociationsTimer, null, 0, 60 * 1000);
            this.credHandle = Sspi.SafeAcquireCredentialsHandle(scheme.ToString(), CredentialUse.SECPKG_CRED_BOTH);
        }
Example #6
0
        public WCFService(SipServerConfigurationSection configuration, EnhancedPresence1 enhancedPresence, TrunkManager trunkManager, Accountx accounts, IUserz userz)
        {
            this.accounts = accounts;

            this.userz = userz;
            this.userz.Reset += IUsers_Reloaded;
            this.userz.Added += IUsers_Added;
            this.userz.Updated += IUsers_Updated;
            this.userz.Removed += IUsers_Removed;

            this.enhancedPresence = enhancedPresence;
            this.enhancedPresence.AvailabilityChanged += AvailabilityChanged;

            this.trunkManager = trunkManager;
            this.trunkManager.TrunkUpdated += TrunkUpdated;

            this.serviceAddress = configuration.WcfServiceAddress;
            //this.domainName = configuration.DomainName;
            this.validator = new CustomUserNamePasswordValidator(@"administrator", configuration.AdministratorPassword);
        }
Example #7
0
        public WCFService(SipServerConfigurationSection configuration, EnhancedPresence1 enhancedPresence, TrunkManager trunkManager, Accountx accounts, IUserz userz)
        {
            this.accounts = accounts;

            this.userz          = userz;
            this.userz.Reset   += IUsers_Reloaded;
            this.userz.Added   += IUsers_Added;
            this.userz.Updated += IUsers_Updated;
            this.userz.Removed += IUsers_Removed;

            this.enhancedPresence = enhancedPresence;
            this.enhancedPresence.AvailabilityChanged += AvailabilityChanged;

            this.trunkManager = trunkManager;
            this.trunkManager.TrunkUpdated += TrunkUpdated;

            this.serviceAddress = configuration.WcfServiceAddress;
            //this.domainName = configuration.DomainName;
            this.validator = new CustomUserNamePasswordValidator(@"administrator", configuration.AdministratorPassword);
        }
Example #8
0
		public MsPresTU(IAccounts accounts, IUserz userz, LocationService locationService)
		{
			this.accounts = accounts;
			this.userz = userz;
			this.locationService = locationService;
			this.enhancedPresence = new EnhancedPresence1(BenotifyHandler);
			this.dialogManager = new DialogManager();

			locationService.AorAdded += LocationService_AorAdded;
			locationService.AorRemoved += LocationService_AorRemoved;
			locationService.ContactAdded += LocationService_ContactAdded;
			locationService.ContactRemoved += LocationService_ContactRemoved;

			userz.Updated += Users_AddedOrUpdated;
			userz.Added += Users_AddedOrUpdated;
			userz.Reset += Users_Reset;

			accounts.ForEach((account) =>
			{
				for (int i = 0; i < userz.Count; i++)
					ResetUsers(userz[i], account);
			});
		}
 public SipDigestAuthentication(IAccounts accounts, IUserz userz, bool isAuthIntEnabled)
     : base(accounts, userz, isAuthIntEnabled)
 {
 }
Example #10
0
 public ResourceListsHandler(IAccounts accounts, IUserz userz)
 {
     this.accounts = accounts;
     this.userz    = userz;
 }
		public DigestAuthentication(IAccounts accounts, IUserz userz, bool isAuthIntEnabled)
		{
			this.accounts = accounts;
			this.userz = userz;
			this.isAuthIntEnabled = isAuthIntEnabled;

			authStates = new ThreadSafe.Dictionary<int, AuthState>(new Dictionary<int, AuthState>(16384)); // vf Int32Compa...
			timer = new Timer(RemoveExpiredNonce, null, 0, NonceLifeCheckInterval);
		}
Example #12
0
 public RestapiService(Accountx accounts, Userz userz)
 {
     this.accounts = accounts;
     this.userz    = userz;
 }
		public ResourceListsHandler(IAccounts accounts, IUserz userz)
		{
			this.accounts = accounts;
			this.userz = userz;
		}