public SIPPresenceEventSubscription( SIPMonitorLogDelegate log, string sessionID, SIPURI resourceURI, SIPURI canonincalResourceURI, string filter, SIPDialogue subscriptionDialogue, int expiry, SIPAssetPersistor<SIPAccount> sipAccountPersistor, SIPAssetCountDelegate<SIPRegistrarBinding> getBindingsCount, bool switchboardSIPAccountsOnly ) : base(log, sessionID, resourceURI, canonincalResourceURI, filter, subscriptionDialogue, expiry) { m_sipAccountPersistor = sipAccountPersistor; GetSIPRegistrarBindingsCount_External = getBindingsCount; Presence = new SIPEventPresence(resourceURI); m_switchboardSIPAccountsOnly = switchboardSIPAccountsOnly; }
private Dictionary <string, SIPEventSubscription> m_subscriptions = new Dictionary <string, SIPEventSubscription>(); // [monitor session ID, subscription]. public NotifierSubscriptionsManager( SIPMonitorLogDelegate logDelegate, SIPAssetGetListDelegate <SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate <SIPDialogueAsset> getDialogue, SIPAssetPersistor <SIPAccount> sipAssetPersistor, SIPAssetCountDelegate <SIPRegistrarBinding> getBindingsCount, SIPTransport sipTransport, SIPEndPoint outboundProxy, ISIPMonitorPublisher publisher) { MonitorLogEvent_External = logDelegate; GetDialogues_External = getDialogues; GetDialogue_External = getDialogue; GetSIPRegistrarBindingsCount_External = getBindingsCount; m_sipAssetPersistor = sipAssetPersistor; m_sipTransport = sipTransport; m_outboundProxy = outboundProxy; m_publisher = publisher; m_publisher.MonitorEventReady += MonitorEventAvailable; }
private Dictionary<string, SIPEventSubscription> m_subscriptions = new Dictionary<string, SIPEventSubscription>(); // [monitor session ID, subscription]. public NotifierSubscriptionsManager( SIPMonitorLogDelegate logDelegate, SIPAssetGetListDelegate<SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate<SIPDialogueAsset> getDialogue, SIPAssetPersistor<SIPAccount> sipAssetPersistor, SIPAssetCountDelegate<SIPRegistrarBinding> getBindingsCount, SIPTransport sipTransport, SIPEndPoint outboundProxy, ISIPMonitorPublisher publisher) { MonitorLogEvent_External = logDelegate; GetDialogues_External = getDialogues; GetDialogue_External = getDialogue; GetSIPRegistrarBindingsCount_External = getBindingsCount; m_sipAssetPersistor = sipAssetPersistor; m_sipTransport = sipTransport; m_outboundProxy = outboundProxy; m_publisher = publisher; m_publisher.MonitorEventReady += MonitorEventAvailable; }
public SIPNotifierDaemon( SIPAssetGetDelegate <Customer> getCustomer, SIPAssetGetListDelegate <SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate <SIPDialogueAsset> getDialogue, GetCanonicalDomainDelegate getDomain, SIPAssetPersistor <SIPAccount> sipAsssetPersistor, SIPAssetGetListDelegate <SIPRegistrarBinding> getSIPRegistrarBindings, SIPAssetGetListDelegate <SIPAccount> getSIPAccounts, SIPAssetCountDelegate <SIPRegistrarBinding> getBindingsCount, SIPAuthenticateRequestDelegate sipRequestAuthenticator, ISIPMonitorPublisher publisher) { GetCustomer_External = getCustomer; GetDialogues_External = getDialogues; GetDialogue_External = getDialogue; GetCanonicalDomain_External = getDomain; m_sipAssetPersistor = sipAsssetPersistor; GetSIPRegistrarBindings_External = getSIPRegistrarBindings; GetBindingsCount_External = getBindingsCount; SIPAuthenticateRequest_External = sipRequestAuthenticator; m_publisher = publisher ?? new SIPMonitorUDPSink(m_udpNotificationReceiverSocket); }
public SIPPresenceEventSubscription( string sessionID, SIPURI resourceURI, SIPURI canonincalResourceURI, string filter, SIPDialogue subscriptionDialogue, int expiry, //SIPAssetPersistor<SIPAccount> sipAccountPersistor, SIPAssetGetListDelegate <SIPAccount> getSipAccountsExternal, SIPAssetGetPropertyByIdDelegate <SIPAccount> getSipAccountPropertyExternal, SIPAssetCountDelegate <SIPRegistrarBinding> getBindingsCount, bool switchboardSIPAccountsOnly ) : base(sessionID, resourceURI, canonincalResourceURI, filter, subscriptionDialogue, expiry) { //m_sipAccountPersistor = sipAccountPersistor; GetSIPAccounts_External = getSipAccountsExternal; GetSipAccountProperty_External = getSipAccountPropertyExternal; GetSIPRegistrarBindingsCount_External = getBindingsCount; Presence = new SIPEventPresence(resourceURI); m_switchboardSIPAccountsOnly = switchboardSIPAccountsOnly; }
public NotifierCore( SIPMonitorLogDelegate logDelegate, SIPTransport sipTransport, SIPAssetGetDelegate <Customer> getCustomer, SIPAssetGetListDelegate <SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate <SIPDialogueAsset> getDialogue, GetCanonicalDomainDelegate getCanonicalDomain, SIPAssetPersistor <SIPAccount> sipAssetPersistor, SIPAssetCountDelegate <SIPRegistrarBinding> getBindingsCount, SIPAuthenticateRequestDelegate sipRequestAuthenticator, SIPEndPoint outboundProxy, ISIPMonitorPublisher publisher) { MonitorLogEvent_External = logDelegate; m_sipTransport = sipTransport; GetCustomer_External = getCustomer; m_sipAssetPersistor = sipAssetPersistor; GetCanonicalDomain_External = getCanonicalDomain; SIPRequestAuthenticator_External = sipRequestAuthenticator; m_outboundProxy = outboundProxy; m_subscriptionsManager = new NotifierSubscriptionsManager(MonitorLogEvent_External, getDialogues, getDialogue, m_sipAssetPersistor, getBindingsCount, m_sipTransport, m_outboundProxy, publisher); ThreadPool.QueueUserWorkItem(delegate { ProcessSubscribeRequest(NOTIFIER_THREAD_NAME_PREFIX + "1"); }); }
public NotifierCore( SIPMonitorLogDelegate logDelegate, SIPTransport sipTransport, SIPAssetGetDelegate<Customer> getCustomer, SIPAssetGetListDelegate<SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate<SIPDialogueAsset> getDialogue, GetCanonicalDomainDelegate getCanonicalDomain, SIPAssetPersistor<SIPAccount> sipAssetPersistor, SIPAssetCountDelegate<SIPRegistrarBinding> getBindingsCount, SIPAuthenticateRequestDelegate sipRequestAuthenticator, SIPEndPoint outboundProxy, ISIPMonitorPublisher publisher) { MonitorLogEvent_External = logDelegate; m_sipTransport = sipTransport; GetCustomer_External = getCustomer; m_sipAssetPersistor = sipAssetPersistor; GetCanonicalDomain_External = getCanonicalDomain; SIPRequestAuthenticator_External = sipRequestAuthenticator; m_outboundProxy = outboundProxy; m_subscriptionsManager = new NotifierSubscriptionsManager(MonitorLogEvent_External, getDialogues, getDialogue, m_sipAssetPersistor, getBindingsCount, m_sipTransport, m_outboundProxy, publisher); ThreadPool.QueueUserWorkItem(delegate { ProcessSubscribeRequest(NOTIFIER_THREAD_NAME_PREFIX + "1"); }); }
public SIPNotifierDaemon( SIPAssetGetDelegate<Customer> getCustomer, SIPAssetGetListDelegate<SIPDialogueAsset> getDialogues, SIPAssetGetByIdDelegate<SIPDialogueAsset> getDialogue, GetCanonicalDomainDelegate getDomain, SIPAssetPersistor<SIPAccount> sipAsssetPersistor, SIPAssetGetListDelegate<SIPRegistrarBinding> getSIPRegistrarBindings, SIPAssetGetListDelegate<SIPAccount> getSIPAccounts, SIPAssetCountDelegate<SIPRegistrarBinding> getBindingsCount, SIPAuthenticateRequestDelegate sipRequestAuthenticator, ISIPMonitorPublisher publisher) { GetCustomer_External = getCustomer; GetDialogues_External = getDialogues; GetDialogue_External = getDialogue; GetCanonicalDomain_External = getDomain; m_sipAssetPersistor = sipAsssetPersistor; GetSIPRegistrarBindings_External = getSIPRegistrarBindings; GetBindingsCount_External = getBindingsCount; SIPAuthenticateRequest_External = sipRequestAuthenticator; m_publisher = publisher ?? new SIPMonitorUDPSink(m_udpNotificationReceiverSocket); }