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

SIP_SDK_Subscribe() private method

private SIP_SDK_Subscribe ( string pBody ) : EM_SIP_RESULT
pBody string
return EM_SIP_RESULT
        public static extern EM_SIP_RESULT SIP_SDK_Subscribe(string pBody);

Usage Example

Example #1
0
        /// <summary>
        /// 该函数用于发送subscribe消息
        /// </summary>
        public EM_SIP_RESULT SIP_SDK_Subscribe(string pBody)
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("Enter: SipStackAdapter.SIP_SDK_Subscribe().");
            EM_SIP_RESULT iRet = EM_SIP_RESULT.RET_FAILURE;

            try
            {
                iRet = SipSDKInterface.SIP_SDK_Subscribe(pBody);

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