CgwMonitorManage.T28181.SipStackAdapter.SIP_SDK_BYE C# (CSharp) Method

SIP_SDK_BYE() public method

该函数用于发送SIP BYE消息
public SIP_SDK_BYE ( int responseID ) : EM_SIP_RESULT
responseID int
return EM_SIP_RESULT
        public EM_SIP_RESULT SIP_SDK_BYE(int responseID)
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("Enter: SipStackAdapter.SIP_SDK_BYE() responseID ={0}.", responseID);
            EM_SIP_RESULT iRet = EM_SIP_RESULT.RET_FAILURE;
            try
            {
                iRet = SipSDKInterface.SIP_SDK_BYE(responseID);

                if (iRet != EM_SIP_RESULT.RET_SUCCESS)
                {
                    logEx.Error("SipStackAdapter.SIP_SDK_BYE Error = {0}.", Enum.GetName(typeof(EM_SIP_RESULT), iRet));
                }
            }
            catch (System.Exception ex)
            {
                logEx.Error("SipStackAdapter.SIP_SDK_BYE,Exception:{0}", ex.ToString());
                iRet = EM_SIP_RESULT.RET_FAILURE;
            }
            return iRet;
        }