public void SIPMonitorMachineEventHandler(SIPSorcery.SIP.App.SIPMonitorMachineEvent machineEvent) { // Update the bindings display. if (!m_sipRegistrationAgentBindingsPanelRefreshInProgress) { m_sipProviderRegistrationsPanel.RefreshAsync(); } }
public void SIPMonitorMachineEventHandler(SIPSorcery.SIP.App.SIPMonitorMachineEvent machineEvent) { // Update the calls display. if (m_initialLoadComplete && !m_sipCallsPanelRefreshInProgress) { m_sipCallsPanel.RefreshAsync(); } }
public void SIPMonitorMachineEventHandler(SIPSorcery.SIP.App.SIPMonitorMachineEvent machineEvent) { // Update the bindings display. if (!m_sipAccountsPanelRefreshInProgress) { m_sipBindingsPanel.RefreshAsync(); } }
private void SIPEventMonitorClient_MonitorEventReceived(SIPSorcery.SIP.App.SIPMonitorMachineEvent machineEvent) { try { if (machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPRegistrarBindingRemoval || machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPRegistrarBindingUpdate) { LogActivityMessage(MessageLevelsEnum.Monitor, "Registrar binding update notification received"); if (m_sipAccountManager != null) { UIHelper.HandleMonitorEvent(m_sipAccountManager.SIPMonitorMachineEventHandler, machineEvent); } } else if (machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPAccountDelete || machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPAccountUpdate) { LogActivityMessage(MessageLevelsEnum.Monitor, "SIP Account change notification received"); if (m_sipAccountManager != null) { UIHelper.HandleMonitorEvent(m_sipAccountManager.SIPMonitorMachineEventHandler, machineEvent); } } else if (machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPRegistrationAgentBindingUpdate || machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPRegistrationAgentBindingRemoval) { LogActivityMessage(MessageLevelsEnum.Monitor, "SIP Registration Agent change notification received"); if (m_sipProviderManager != null) { UIHelper.HandleMonitorEvent(m_sipProviderManager.SIPMonitorMachineEventHandler, machineEvent); } } else if (machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPDialogueCreated || machineEvent.MachineEventType == SIPSorcery.SIP.App.SIPMonitorMachineEventTypesEnum.SIPDialogueRemoved) { LogActivityMessage(MessageLevelsEnum.Monitor, "SIP call change notification received"); if (m_sipCallsManager != null) { UIHelper.HandleMonitorEvent(m_sipCallsManager.SIPMonitorMachineEventHandler, machineEvent); } } } catch (Exception excp) { LogActivityMessage(MessageLevelsEnum.Error, "Exception handling monitor event. " + excp.Message); } }