private void AddSIPAccountCompleted(object sender, AddSIPAccountCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if (AddSIPAccountComplete != null) { AddSIPAccountComplete(e); } }
private void AddSIPAccountComplete(AddSIPAccountCompletedEventArgs e) { try { SIPAccount sipAccount = e.Result; if (m_addControl != null) { m_addControl.WriteStatusMessage(MessageLevelsEnum.Info, "SIP Account was successfully created for " + sipAccount.SIPUsername + "@" + sipAccount.SIPDomain + "."); } if (m_sipAccounts == null) { m_sipAccountsPanel.RefreshAsync(); } else { m_sipAccounts.Add(sipAccount); m_sipAccountsPanel.AssetAdded(); } } catch (Exception excp) { string excpMessage = (excp.InnerException != null) ? excp.InnerException.Message : excp.Message; if (m_addControl != null) { m_addControl.WriteStatusMessage(MessageLevelsEnum.Error, excpMessage); } else { LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error adding a SIP Account. " + excpMessage); } } }
private void AddSIPAccountCompleted(object sender, AddSIPAccountCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if (AddSIPAccountComplete != null) { AddSIPAccountComplete(e); } }