public int InsertCallHistory(CallHistoryType _CallType, string _url, string _name, int _duration) { try { LogManager.SystemLog.Debug(string.Format("Start UC_SDK_InsertCallHistory")); int iRet = UCInterface.UC_SDK_InsertCallHistory((int)_CallType, _url, _name, _duration); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("Start UC_SDK_InsertCallHistory error {0}", iRet)); return(iRet); } LogManager.SystemLog.Debug(string.Format("End UC_SDK_InsertCallHistory")); return(iRet); } catch (System.Exception ex) { LogManager.SystemLog.Error(ex.ToString()); return(-1); } }