/// <summary> /// 该函数用于发送SIP Register消息 /// </summary> public EM_SIP_RESULT SIP_SDK_REGISTER() { NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log); logEx.Trace("Enter: SipStackAdapter.SIP_SDK_REGISTER()."); EM_SIP_RESULT iRet = EM_SIP_RESULT.RET_FAILURE; try { iRet = SipSDKInterface.SIP_SDK_REGISTER(); if (iRet != EM_SIP_RESULT.RET_SUCCESS) { logEx.Error("SipStackAdapter.SIP_SDK_REGISTER Error = {0}.", Enum.GetName(typeof(EM_SIP_RESULT), iRet)); } else { logEx.Info("SipStackAdapter.SIP_SDK_REGISTER Success"); } } catch (System.Exception ex) { logEx.Error("SipStackAdapter.SIP_SDK_REGISTER ,Exception:{0}", ex.ToString()); iRet = EM_SIP_RESULT.RET_FAILURE; } return(iRet); }