void ipClient_ProfileRegistrationError(object sender, SIPProfileEventArgs e) { string erDetail = string.Format("Provider: {0}\r\nError Code:{1}\r\n\r\n{2}", e.SIPProfile.DomainRealm, e.ResponseCode, e.ResponsePhrase); RaiseError(new ErrorEventArgs("Provider Registration Error", erDetail)); }