1.call history的保存。在各种通话状态中的保存过程
1.MO
(1)放弃outgoing call
ProcessPSHangupSucEvent()
LogCallInfoForCallHistory(*handle);
GetEndTimeAndNotifyCallAborted();
CMGetExactTime(GetDateTimeAndNotifyCallAbortedCBack);
memcpy(&cm_p->state_info.CallStructureForCallLog.start_time, t, sizeof(MYTIME)); 拷贝当前时间
memcpy(&cm_p->state_info.CallStructureForCallLog.end_time, t, sizeof(MYTIME));
LogCall();
LogCallWithStartTime(&cm_p->state_info.CallStructureForCallLog);
if (CM_CALL_MO == log->orgination_flag) 判断电话类型:MO, MT
{
CHISTLogDialedCall(log);
ReqWriteCallLog(call, PHB_LND);
}
else if (CM_CALL_MT == log->orgination_flag)
{
CHISTLogRecvdCall(log);
ReqWriteCallLog(call, PHB_LNR);
}
EntryScrNotifyCallAborted();
>> 阅读全文