CgwMonitorManage.T28181.SipSDKInterface.SIP_SDK_UnInit C# (CSharp) Method

SIP_SDK_UnInit() private method

private SIP_SDK_UnInit ( ) : EM_SIP_RESULT
return EM_SIP_RESULT
        public static extern EM_SIP_RESULT SIP_SDK_UnInit();

Usage Example

Example #1
0
        /// <summary>
        /// 该函数用于去初始化SIP协议栈
        /// </summary>
        public EM_SIP_RESULT SIP_SDK_UnInit()
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("Enter: SipStackAdapter.SIP_SDK_UnInit().");
            EM_SIP_RESULT iRet = EM_SIP_RESULT.RET_FAILURE;

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