示例#1
0
        public SIPCallManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipCallsPanel.SetTitle("Calls");
            m_sipCallsPanel.DisplayCount = SIPCALLS_DISPLAY_COUNT;
            m_sipCallsPanel.MenuEnableAdd(false);
            m_sipCallsPanel.MenuEnableFilter(false);
            m_sipCallsPanel.MenuEnableHelp(false);
            m_sipCallsPanel.GetAssetList = GetSIPCalls;

            m_sipCDRsPanel.SetTitle("CDRs");
            m_sipCDRsPanel.DisplayCount = SIPCDRS_DISPLAY_COUNT;
            m_sipCDRsPanel.MenuEnableAdd(false);
            m_sipCDRsPanel.MenuEnableFilter(false);
            m_sipCDRsPanel.MenuEnableHelp(false);
            m_sipCDRsPanel.GetAssetList = GetSIPCDRs;
        }
        public SIPProviderManager(
            ActivityMessageDelegate logActivityMessage,
            ActivityProgressDelegate showActivityProgress,
            SIPSorceryPersistor persistor,
            string owner)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            ShowActivityProgress_External = showActivityProgress;
            m_persistor = persistor;
            m_owner = owner;

            m_sipProvidersPanel.SetTitle("SIP Providers");
            m_sipProvidersPanel.DisplayCount = SIPPROVIDERS_DISPLAY_COUNT;
            m_sipProvidersPanel.MenuEnableFilter(false);
            m_sipProvidersPanel.MenuEnableDelete(false);
            m_sipProvidersPanel.Add += SIPProvidersPanel_Add;
            m_sipProvidersPanel.GetAssetList = GetSIPProviders;

            m_sipProviderRegistrationsPanel.SetTitle("SIP Provider Registrations");
            m_sipProviderRegistrationsPanel.DisplayCount = SIPPROVIDERBINDINGS_DISPLAY_COUNT;
            m_sipProviderRegistrationsPanel.MenuEnableAdd(false);
            m_sipProviderRegistrationsPanel.MenuEnableFilter(false);
            m_sipProviderRegistrationsPanel.MenuEnableDelete(false);
            m_sipProviderRegistrationsPanel.GetAssetList = GetSIPProviderBindings;
		}
        public SIPProviderManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipProvidersPanel.SetTitle("SIP Providers");
            m_sipProvidersPanel.DisplayCount = SIPPROVIDERS_DISPLAY_COUNT;
            m_sipProvidersPanel.MenuEnableFilter(false);
            m_sipProvidersPanel.MenuEnableHelp(false);
            m_sipProvidersPanel.Add         += SIPProvidersPanel_Add;
            m_sipProvidersPanel.GetAssetList = GetSIPProviders;

            m_sipProviderRegistrationsPanel.SetTitle("SIP Provider Registrations");
            m_sipProviderRegistrationsPanel.DisplayCount = SIPPROVIDERBINDINGS_DISPLAY_COUNT;
            m_sipProviderRegistrationsPanel.MenuEnableAdd(false);
            m_sipProviderRegistrationsPanel.MenuEnableFilter(false);
            m_sipProviderRegistrationsPanel.MenuEnableHelp(false);
            m_sipProviderRegistrationsPanel.GetAssetList = GetSIPProviderBindings;
        }
        public SIPProviderManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipProvidersPanel.SetTitle("SIP Providers");
            m_sipProvidersPanel.DisplayCount = SIPPROVIDERS_DISPLAY_COUNT;
            m_sipProvidersPanel.MenuEnableFilter(false);
            m_sipProvidersPanel.MenuEnableHelp(false);
            m_sipProvidersPanel.Add += SIPProvidersPanel_Add;
            m_sipProvidersPanel.GetAssetList = GetSIPProviders;

            m_sipProviderRegistrationsPanel.SetTitle("SIP Provider Registrations");
            m_sipProviderRegistrationsPanel.DisplayCount = SIPPROVIDERBINDINGS_DISPLAY_COUNT;
            m_sipProviderRegistrationsPanel.MenuEnableAdd(false);
            m_sipProviderRegistrationsPanel.MenuEnableFilter(false);
            m_sipProviderRegistrationsPanel.MenuEnableHelp(false);
            m_sipProviderRegistrationsPanel.GetAssetList = GetSIPProviderBindings;
        }
        public SIPCallManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipCallsPanel.SetTitle("Calls");
            m_sipCallsPanel.DisplayCount = SIPCALLS_DISPLAY_COUNT;
            m_sipCallsPanel.MenuEnableAdd(false);
            m_sipCallsPanel.MenuEnableFilter(false);
            m_sipCallsPanel.MenuEnableHelp(false);
            m_sipCallsPanel.GetAssetList = GetSIPCalls;

            m_sipCDRsPanel.SetTitle("CDRs");
            m_sipCDRsPanel.DisplayCount = SIPCDRS_DISPLAY_COUNT;
            m_sipCDRsPanel.MenuEnableAdd(false);
            m_sipCDRsPanel.MenuEnableFilter(false);
            m_sipCDRsPanel.MenuEnableHelp(false);
            m_sipCDRsPanel.GetAssetList = GetSIPCDRs;
        }
        public SIPCallManager(
            ActivityMessageDelegate logActivityMessage,
            ActivityProgressDelegate showActivityProgress,
            SIPSorceryPersistor persistor,
            string owner)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            ShowActivityProgress_External = showActivityProgress;
            m_persistor = persistor;
            m_owner = owner;

            m_sipCallsPanel.SetTitle("Calls");
            m_sipCallsPanel.DisplayCount = SIPCALLS_DISPLAY_COUNT;
            m_sipCallsPanel.MenuEnableAdd(false);
            m_sipCallsPanel.MenuEnableFilter(false);
            m_sipCallsPanel.MenuEnableDelete(false);
            m_sipCallsPanel.GetAssetList = GetSIPCalls;

            m_sipCDRsPanel.SetTitle("CDRs");
            m_sipCDRsPanel.DisplayCount = SIPCDRS_DISPLAY_COUNT;
            m_sipCDRsPanel.MenuEnableAdd(false);
            m_sipCDRsPanel.MenuEnableFilter(false);
            m_sipCDRsPanel.MenuEnableDelete(false);
            m_sipCDRsPanel.GetAssetList = GetSIPCDRs;
		}
        public SIPAccountManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipAccountsPanel.SetTitle("SIP Accounts");
            m_sipAccountsPanel.DisplayCount = SIPACCOUNTS_DISPLAY_COUNT;
            m_sipAccountsPanel.MenuEnableFilter(false);
            m_sipAccountsPanel.MenuEnableHelp(false);
            m_sipAccountsPanel.Add         += SIPAccountsAssetViewer_Add;
            m_sipAccountsPanel.GetAssetList = GetSIPAccounts;

            m_sipBindingsPanel.SetTitle("SIP Bindings");
            m_sipBindingsPanel.DisplayCount = SIPBINDINGS_DISPLAY_COUNT;
            m_sipBindingsPanel.MenuEnableAdd(false);
            m_sipBindingsPanel.MenuEnableFilter(false);
            m_sipBindingsPanel.MenuEnableHelp(false);
            m_sipBindingsPanel.GetAssetList = GetSIPBindings;
        }
        public SIPAccountManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipAccountsPanel.SetTitle("SIP Accounts");
            m_sipAccountsPanel.DisplayCount = SIPACCOUNTS_DISPLAY_COUNT;
            m_sipAccountsPanel.MenuEnableFilter(false);
            m_sipAccountsPanel.MenuEnableHelp(false);
            m_sipAccountsPanel.Add += SIPAccountsAssetViewer_Add;
            m_sipAccountsPanel.GetAssetList = GetSIPAccounts;

            m_sipBindingsPanel.SetTitle("SIP Bindings");
            m_sipBindingsPanel.DisplayCount = SIPBINDINGS_DISPLAY_COUNT;
            m_sipBindingsPanel.MenuEnableAdd(false);
            m_sipBindingsPanel.MenuEnableFilter(false);
            m_sipBindingsPanel.MenuEnableHelp(false);
            m_sipBindingsPanel.GetAssetList = GetSIPBindings;
        }
        public SIPAccountManager(
            ActivityMessageDelegate logActivityMessage,
            ActivityProgressDelegate showActivityProgress,
            SIPSorceryPersistor persistor,
            GetDialPlanNamesDelegate getDialPlanNames,
            string owner)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            ShowActivityProgress_External = showActivityProgress;
            GetDialPlanNames_External = getDialPlanNames;
            m_persistor = persistor;
            m_owner = owner;

            m_sipAccountsPanel.SetTitle("SIP Accounts");
            m_sipAccountsPanel.DisplayCount = SIPACCOUNTS_DISPLAY_COUNT;
            m_sipAccountsPanel.MenuEnableFilter(false);
            m_sipAccountsPanel.MenuEnableDelete(false);
            m_sipAccountsPanel.Add += new MenuButtonClickedDelegate(SIPAccountsAssetViewer_Add);
            m_sipAccountsPanel.GetAssetList = GetSIPAccounts;

            m_sipBindingsPanel.SetTitle("SIP Bindings");
            m_sipBindingsPanel.DisplayCount = SIPBINDINGS_DISPLAY_COUNT;
            m_sipBindingsPanel.MenuEnableAdd(false);
            m_sipBindingsPanel.MenuEnableFilter(false);
            m_sipBindingsPanel.MenuEnableDelete(false);
            m_sipBindingsPanel.GetAssetList = GetSIPBindings;
		}
        public MonitoringConsole(ActivityMessageDelegate logActivityMessage)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;

            UIHelper.SetVisibility(m_closeSocketButton, Visibility.Collapsed);
            UIHelper.SetVisibility(m_connectSocketButton, Visibility.Visible);
        }
示例#11
0
        public MonitoringConsole(ActivityMessageDelegate logActivityMessage)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;

            UIHelper.SetVisibility(m_closeSocketButton, Visibility.Collapsed);
            UIHelper.SetVisibility(m_connectSocketButton, Visibility.Visible);
        }
        public SimpleWizardManager(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan              = dialPlan;
            m_owner                 = owner;
            DialPlanAdd_External    = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External  = closed;
            m_riaContext            = riaContext;

            m_riaContext.RejectChanges();

            m_dialPlanName.Text       = m_dialPlan.DialPlanName;
            _dialPlanNameTextBox.Text = m_dialPlan.DialPlanName;

            // Set up the outgoing rules grid.
            m_outgoingRulesUpdateControl.SetStatusMessage(SimpleWizardOutRuleControl.ADD_TEXT, false);
            m_outgoingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_outgoingRulesUpdateControl.Add         += AddRule;
            m_outgoingRulesUpdateControl.Update      += UpdateRule;
            m_outgoingRulesPanel.SetTitle("Outgoing Call Rules");
            m_outgoingRulesPanel.MenuEnableFilter(false);
            m_outgoingRulesPanel.MenuEnableHelp(false);
            m_outgoingRulesPanel.MenuEnableAdd(false);
            m_outgoingRulesPanel.GetAssetList = GetOutgoingRules;
            //m_outgoingRulesPanel.Add += () => { m_outgoingRulesUpdateControl.SetRuleToUpdate(null); };

            // Set up the incoming rules grid.
            m_incomingRulesUpdateControl.SetStatusMessage(SimpleWizardInRuleControl.ADD_TEXT, false);
            m_incomingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_incomingRulesUpdateControl.Add         += AddRule;
            m_incomingRulesUpdateControl.Update      += UpdateRule;
            m_incomingRulesUpdateControl.PopulateToSIPAccounts(m_riaContext.SIPAccounts);
            m_incomingRulesPanel.SetTitle("Incoming Call Rules");
            m_incomingRulesPanel.MenuEnableFilter(false);
            m_incomingRulesPanel.MenuEnableHelp(false);
            m_incomingRulesPanel.MenuEnableAdd(false);
            m_incomingRulesPanel.GetAssetList = GetIncomingRules;
            //m_incomingRulesPanel.Add += () => { m_incomingRulesUpdateControl.SetRuleToUpdate(null); };

            m_intialised  = true;
            m_currentGrid = m_outgoingRulesDataGrid;

            m_outgoingRulesPanel.RefreshAsync();
        }
        public SimpleWizardManager(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan = dialPlan;
            m_owner = owner;
            DialPlanAdd_External = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External = closed;
            m_riaContext = riaContext;

            m_riaContext.RejectChanges();

            m_dialPlanName.Text = m_dialPlan.DialPlanName;
            _dialPlanNameTextBox.Text = m_dialPlan.DialPlanName;

            // Set up the outgoing rules grid.
            m_outgoingRulesUpdateControl.SetStatusMessage(SimpleWizardOutRuleControl.ADD_TEXT, false);
            m_outgoingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_outgoingRulesUpdateControl.Add += AddRule;
            m_outgoingRulesUpdateControl.Update += UpdateRule;
            m_outgoingRulesPanel.SetTitle("Outgoing Call Rules");
            m_outgoingRulesPanel.MenuEnableFilter(false);
            m_outgoingRulesPanel.MenuEnableHelp(false);
            m_outgoingRulesPanel.MenuEnableAdd(false);
            m_outgoingRulesPanel.GetAssetList = GetOutgoingRules;
            //m_outgoingRulesPanel.Add += () => { m_outgoingRulesUpdateControl.SetRuleToUpdate(null); };

            // Set up the incoming rules grid.
            m_incomingRulesUpdateControl.SetStatusMessage(SimpleWizardInRuleControl.ADD_TEXT, false);
            m_incomingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_incomingRulesUpdateControl.Add += AddRule;
            m_incomingRulesUpdateControl.Update += UpdateRule;
            m_incomingRulesUpdateControl.PopulateToSIPAccounts(m_riaContext.SIPAccounts);
            m_incomingRulesPanel.SetTitle("Incoming Call Rules");
            m_incomingRulesPanel.MenuEnableFilter(false);
            m_incomingRulesPanel.MenuEnableHelp(false);
            m_incomingRulesPanel.MenuEnableAdd(false);
            m_incomingRulesPanel.GetAssetList = GetIncomingRules;
            //m_incomingRulesPanel.Add += () => { m_incomingRulesUpdateControl.SetRuleToUpdate(null); };

            m_intialised = true;
            m_currentGrid = m_outgoingRulesDataGrid;

            m_outgoingRulesPanel.RefreshAsync();
        }
        public MonitoringConsole(
            ActivityMessageDelegate logActivityMessage, 
            string owner, 
            string host, 
            int port)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_monitorHost = host;
            m_monitorPort = port;

            m_closeSocketButton.Visibility = Visibility.Visible;
		}
        public MonitoringConsole(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            string host,
            int port)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner       = owner;
            m_monitorHost = host;
            m_monitorPort = port;

            m_closeSocketButton.Visibility = Visibility.Visible;
        }
        public DialPlanManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_riaContext = riaContext;
            m_owner = owner;

            m_dialPlansPanel.SetTitle("Dial Plans");
            m_dialPlansPanel.MenuEnableFilter(false);
            m_dialPlansPanel.MenuEnableHelp(false);
            m_dialPlansPanel.Add += DialPlansPanel_Add;
            m_dialPlansPanel.GetAssetList = GetDialPlans;
        }
        public CustomerSettingsControl(
            ActivityMessageDelegate logActivityMessage,
            LogoutDelegate logout,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            Logout_External             = logout;
            m_owner      = owner;
            m_riaContext = riaContext;
            UIHelper.SetText(m_accountDetailsTextBlock, "Account Details: " + m_owner);
            //m_persistor.GetCustomerComplete += GetCustomerComplete;
            //m_persistor.UpdateCustomerPasswordComplete += UpdateCustomerPasswordComplete;
            //m_persistor.UpdateCustomerComplete += UpdateCustomerComplete;
        }
示例#18
0
        public DialPlanManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_riaContext = riaContext;
            m_owner      = owner;

            m_dialPlansPanel.SetTitle("Dial Plans");
            m_dialPlansPanel.MenuEnableFilter(false);
            m_dialPlansPanel.MenuEnableHelp(false);
            m_dialPlansPanel.Add         += DialPlansPanel_Add;
            m_dialPlansPanel.GetAssetList = GetDialPlans;
        }
        public CustomerSettingsControl(
            ActivityMessageDelegate logActivityMessage,
            LogoutDelegate logout,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            Logout_External = logout;
            m_owner = owner;
            m_riaContext = riaContext;
            UIHelper.SetText(m_accountDetailsTextBlock, "Account Details: " + m_owner);
            //m_persistor.GetCustomerComplete += GetCustomerComplete;
            //m_persistor.UpdateCustomerPasswordComplete += UpdateCustomerPasswordComplete;
            //m_persistor.UpdateCustomerComplete += UpdateCustomerComplete;
        }
        public CustomerSettingsControl(
            ActivityMessageDelegate logActivityMessage,
            LogoutDelegate logout,
            SIPSorceryPersistor persistor,
            string owner)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            Logout_External = logout;
            m_persistor = persistor;
            m_owner = owner;
            UIHelper.SetText(m_accountDetailsTextBlock, "Account Details: " + m_owner);

            m_persistor.GetCustomerComplete += GetCustomerComplete;
            m_persistor.UpdateCustomerPasswordComplete += UpdateCustomerPasswordComplete;
            m_persistor.UpdateCustomerComplete += UpdateCustomerComplete;
		}
        public SIPSorceryNotificationClient(ActivityMessageDelegate logActivityMessage, string serverURL, string authid)
        {
            LogActivityMessage_External = logActivityMessage;
            m_address = Guid.NewGuid().ToString();
            BasicHttpSecurityMode securitymode = (serverURL.StartsWith("https")) ? BasicHttpSecurityMode.Transport : BasicHttpSecurityMode.None;
            SIPSorcerySecurityHeader securityHeader = new SIPSorcerySecurityHeader(authid);
            PullNotificationHeader notificationHeader = new PullNotificationHeader(m_address);
            SIPSorceryCustomHeader sipSorceryHeader = new SIPSorceryCustomHeader(new List<MessageHeader>() { securityHeader, notificationHeader });
            BasicHttpCustomHeaderBinding binding = new BasicHttpCustomHeaderBinding(sipSorceryHeader, securitymode);

            EndpointAddress address = new EndpointAddress(serverURL);
            m_notificationClient = new NotificationsClient(binding, address);

            m_notificationClient.IsAliveCompleted += IsAliveCompleted;
            m_notificationClient.GetPollPeriodCompleted += GetPollPeriodCompleted;
            m_notificationClient.SubscribeCompleted += SubscribeCompleted;
            m_notificationClient.GetNotificationsCompleted += GetNotificationsCompleted;
        }
        public DialPlanManager(
            ActivityMessageDelegate logActivityMessage,
            ActivityProgressDelegate showActivityProgress,
            SIPSorceryPersistor persistor,
            string owner)
		{
			InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            ShowActivityProgress_External = showActivityProgress;
            m_persistor = persistor;
            m_owner = owner;

            m_dialPlansPanel.SetTitle("Dial Plans");
            m_dialPlansPanel.MenuEnableFilter(false);
            m_dialPlansPanel.MenuEnableDelete(false);
            m_dialPlansPanel.Add += new MenuButtonClickedDelegate(DialPlansPanel_Add);
            m_dialPlansPanel.GetAssetList = GetDialPlans;
		}
示例#23
0
        public SIPSorceryNotificationClient(ActivityMessageDelegate logActivityMessage, string serverURL, string apiKey)
        {
            LogActivityMessage_External = logActivityMessage;
            m_address = Guid.NewGuid().ToString();
            BasicHttpSecurityMode    securitymode       = (serverURL.StartsWith("https")) ? BasicHttpSecurityMode.Transport : BasicHttpSecurityMode.None;
            SIPSorcerySecurityHeader securityHeader     = new SIPSorcerySecurityHeader(apiKey);
            PullNotificationHeader   notificationHeader = new PullNotificationHeader(m_address);
            SIPSorceryCustomHeader   sipSorceryHeader   = new SIPSorceryCustomHeader(new List <MessageHeader>()
            {
                securityHeader, notificationHeader
            });
            BasicHttpCustomHeaderBinding binding = new BasicHttpCustomHeaderBinding(sipSorceryHeader, securitymode);

            EndpointAddress address = new EndpointAddress(serverURL);

            m_notificationClient = new NotificationsClient(binding, address);

            m_notificationClient.IsAliveCompleted          += IsAliveCompleted;
            m_notificationClient.GetPollPeriodCompleted    += GetPollPeriodCompleted;
            m_notificationClient.SubscribeCompleted        += SubscribeCompleted;
            m_notificationClient.GetNotificationsCompleted += GetNotificationsCompleted;
        }
        public MonitoringConsole(
            ActivityMessageDelegate logActivityMessage,
            SIPSorceryNotificationClient notificationsClient)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_sipNotifierClient = notificationsClient;
            m_sipNotifierClient.ControlEventReceived += (eventStr) => { AppendMonitorText(eventStr); };
            //m_owner = owner;
            //m_authID = authId;
            //m_notificationsURL = notificationsURL;
            //m_monitorHost = host;
            //m_monitorPort = port;

            //m_sipConsoleEndPoint = new DnsEndPoint(m_monitorHost, m_monitorPort);
            //m_sipConsoleClient = new SocketClient(m_sipConsoleEndPoint);
            //m_sipConsoleClient.SocketDataReceived += new SocketDataReceivedDelegate(SIPConsoleClient_MonitorEventReceived);
            //m_sipConsoleClient.SocketConnectionChange += new SocketConnectionChangeDelegate(SIPConsoleClient_MonitorConnectionChange);

            UIHelper.SetVisibility(m_closeSocketButton, Visibility.Collapsed);
            UIHelper.SetVisibility(m_connectSocketButton, Visibility.Visible);
        }
示例#25
0
        public DialPlanWizard(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan              = dialPlan;
            m_owner                 = owner;
            DialPlanAdd_External    = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External  = closed;
            m_riaContext            = riaContext;

            m_riaContext.RejectChanges();

            m_speedDialsPanel.SetTitle("Speed Dials");
            m_speedDialsPanel.MenuEnableFilter(false);
            m_speedDialsPanel.MenuEnableHelp(true);
            m_speedDialsPanel.MenuEnableAdd(false);
            m_speedDialsPanel.GetAssetList = GetSpeedDials;
            m_speedDialsPanel.Help        += () => { ToggleSpeedDialsHelp(true); };
            ToggleSpeedDialsHelp(false);

            m_enumsPanel.SetTitle("ENUMs");
            m_enumsPanel.MenuEnableFilter(false);
            m_enumsPanel.MenuEnableHelp(true);
            m_enumsPanel.MenuEnableAdd(false);
            m_enumsPanel.GetAssetList = GetENUMs;
            m_enumsPanel.Help        += () => { ToggleENUMHelp(true); };
            ToggleENUMHelp(false);

            m_cnamPanel.SetTitle("CNAMs");
            m_cnamPanel.MenuEnableFilter(false);
            m_cnamPanel.MenuEnableHelp(true);
            m_cnamPanel.MenuEnableAdd(false);
            m_cnamPanel.GetAssetList = GetCNAMs;
            m_cnamPanel.Help        += () => { ToggleCNAMHelp(true); };
            ToggleCNAMHelp(false);

            m_providersPanel.SetTitle("Dial Plan Providers");
            m_providersPanel.MenuEnableFilter(false);
            m_providersPanel.MenuEnableHelp(true);
            m_providersPanel.MenuEnableAdd(false);
            m_providersPanel.GetAssetList = GetDialPlanProviders;
            m_providersPanel.Help        += () => { ToggleDialPlanProvidersHelp(true); };
            ToggleDialPlanProvidersHelp(false);

            m_routesPanel.SetTitle("Routes");
            m_routesPanel.MenuEnableFilter(false);
            m_routesPanel.MenuEnableHelp(true);
            m_routesPanel.MenuEnableAdd(false);
            m_routesPanel.GetAssetList = GetRoutes;
            m_routesPanel.Help        += () => { ToggleRoutesHelp(true); };
            ToggleRoutesHelp(false);

            m_intialised = true;

            m_speedDialsPanel.RefreshAsync();
        }
        public DialPlanWizard(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan = dialPlan;
            m_owner = owner;
            DialPlanAdd_External = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External = closed;
            m_riaContext = riaContext;

            m_riaContext.RejectChanges();

            m_speedDialsPanel.SetTitle("Speed Dials");
            m_speedDialsPanel.MenuEnableFilter(false);
            m_speedDialsPanel.MenuEnableHelp(true);
            m_speedDialsPanel.MenuEnableAdd(false);
            m_speedDialsPanel.GetAssetList = GetSpeedDials;
            m_speedDialsPanel.Help += () => { ToggleSpeedDialsHelp(true); };
            ToggleSpeedDialsHelp(false);

            m_enumsPanel.SetTitle("ENUMs");
            m_enumsPanel.MenuEnableFilter(false);
            m_enumsPanel.MenuEnableHelp(true);
            m_enumsPanel.MenuEnableAdd(false);
            m_enumsPanel.GetAssetList = GetENUMs;
            m_enumsPanel.Help += () => { ToggleENUMHelp(true); };
            ToggleENUMHelp(false);

            m_cnamPanel.SetTitle("CNAMs");
            m_cnamPanel.MenuEnableFilter(false);
            m_cnamPanel.MenuEnableHelp(true);
            m_cnamPanel.MenuEnableAdd(false);
            m_cnamPanel.GetAssetList = GetCNAMs;
            m_cnamPanel.Help += () => { ToggleCNAMHelp(true); };
            ToggleCNAMHelp(false);

            m_providersPanel.SetTitle("Dial Plan Providers");
            m_providersPanel.MenuEnableFilter(false);
            m_providersPanel.MenuEnableHelp(true);
            m_providersPanel.MenuEnableAdd(false);
            m_providersPanel.GetAssetList = GetDialPlanProviders;
            m_providersPanel.Help += () => { ToggleDialPlanProvidersHelp(true); };
            ToggleDialPlanProvidersHelp(false);

            m_routesPanel.SetTitle("Routes");
            m_routesPanel.MenuEnableFilter(false);
            m_routesPanel.MenuEnableHelp(true);
            m_routesPanel.MenuEnableAdd(false);
            m_routesPanel.GetAssetList = GetRoutes;
            m_routesPanel.Help += () => { ToggleRoutesHelp(true); };
            ToggleRoutesHelp(false);

            m_intialised = true;

            m_speedDialsPanel.RefreshAsync();
        }