public PBXRegistrarService(CallButler.Telecom.TelecomProviderBase telecomProvider, WOSI.CallButler.Data.DataProviders.CallButlerDataProviderBase dataProvider /*, ExtensionStateService extStateService*/)
        {
            this.telecomProvider = telecomProvider;
            this.dataProvider    = dataProvider;
            //this.extStateService = extStateService;

            presenceData = new List <PBXPresenceInfo>();

            if (telecomProvider is CallButler.Telecom.inTELIPhoneTelecomProvider)
            {
                ipClient = ((CallButler.Telecom.inTELIPhoneTelecomProvider)telecomProvider).BaseProviderObject;

                ipClient.PreprocessSipRequest += new EventHandler <WOSI.NET.SIP.PreprocessSipRequestEventArgs>(ipClient_PreprocessSipRequest);
            }

            presenceTimeout = new System.Threading.Timer(new System.Threading.TimerCallback(PresenceTimeoutTimerProc), this, 0, 30000);
        }
Exemplo n.º 2
0
        public PBXRegistrarService(CallButler.Telecom.TelecomProviderBase telecomProvider, WOSI.CallButler.Data.DataProviders.CallButlerDataProviderBase dataProvider/*, ExtensionStateService extStateService*/)
        {
            this.telecomProvider = telecomProvider;
            this.dataProvider = dataProvider;
            //this.extStateService = extStateService;

            presenceData = new List<PBXPresenceInfo>();

            if (telecomProvider is CallButler.Telecom.inTELIPhoneTelecomProvider)
            {
                ipClient = ((CallButler.Telecom.inTELIPhoneTelecomProvider)telecomProvider).BaseProviderObject;

                ipClient.PreprocessSipRequest += new EventHandler<WOSI.NET.SIP.PreprocessSipRequestEventArgs>(ipClient_PreprocessSipRequest);
            }

            presenceTimeout = new System.Threading.Timer(new System.Threading.TimerCallback(PresenceTimeoutTimerProc), this, 0, 30000);
        }