private void GetSIPDomainsComplete(GetSIPDomainsCompletedEventArgs e)
        {
            try
            {
                ObservableCollection<SIPDomain> domains = e.Result;

                if (domains != null)
                {
                    LogActivityMessage_External(MessageLevelsEnum.Info, domains.Count + " successfully loaded.");

                    foreach (SIPDomain domain in domains)
                    {
                        if (m_ownerDomains.ContainsKey(m_owner))
                        {
                            List<string> ownerDomains = m_ownerDomains[m_owner];
                            if (!ownerDomains.Contains(domain.Domain))
                            {
                                ownerDomains.Add(domain.Domain);
                            }
                        }
                        else
                        {
                            m_ownerDomains.Add(m_owner, new List<string>() { domain.Domain });
                        }
                    }
                }
                else
                {
                    LogActivityMessage_External(MessageLevelsEnum.Warn, "No domains could be loaded.");
                }

                m_sipDomainsLoaded = true;
                Load();
            }
            catch (Exception excp)
            {
                string excpMessage = (excp.InnerException != null) ? excp.InnerException.Message : excp.Message;
                LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error retrieving the SIP Domains. " + excpMessage);
            }
        }
 private void GetSIPDomainsCompleted(object sender, GetSIPDomainsCompletedEventArgs e) {
     if (IsUnauthorised(e.Error)) {
         SessionExpired();
     }
     else if(GetSIPDomainsComplete != null){
         GetSIPDomainsComplete(e);
     }
 }