- retvm_if(file_path == NULL, SYNC_AGENT_DA_ERRORS, "file_path is NULL. FAIL !!!");
-//
-// sync_agent_da_return_e ret = SYNC_AGENT_DA_SUCCESS;
-// int err = 0;
-// FILE *file = 0;
-// int cur_size = 0;
-// CTSvalue *plog = 0; /* plog */
-//
-// /* open call log : from file text */
-// file = fopen(BACKUP_PATH, "r");
-// if (file == NULL) {
-// _DEBUG_INFO("[da_call_log_plugIn] fopen fail\n");
-// return SYNC_AGENT_DA_ERRORS;
-// }
-//
-// /* delete call log from contact service database */
-// _del_all_calllogs();
-//
-// while (1) {
-// dc_plog_list_s plog_list;
-// char temp_number[100] = { 0 };
-// char temp_extra_data2[1024] = { 0 };
-//
-// /* read call log : from file text */
-// cur_size = fscanf(file, "%100s %d %d %d %d %1024s ", temp_number, &(plog_list.related_id), &(plog_list.log_time), &(plog_list.log_type), &(plog_list.extra_data1), temp_extra_data2);
-//
-// if (cur_size == -1) {
-// _DEBUG_INFO("[da_call_log_plugIn] fscanf fail\n");
-// ret = SYNC_AGENT_DA_ERRORS;
-// goto DACI_FINISH;
-// }
-//
-// plog = contacts_svc_value_new(CTS_VALUE_PHONELOG);
-// if (plog == NULL) {
-// _DEBUG_INFO("[da_call_log_plugIn] memory allocation fail\n");
-// ret = SYNC_AGENT_DA_ERRORS;
-// goto DACI_FINISH;
-// }
-//
-// /* add call log to contact service database */
-// contacts_svc_value_set_str(plog, CTS_PLOG_VAL_NUMBER_STR, temp_number);
-// contacts_svc_value_set_int(plog, CTS_PLOG_VAL_RELATED_ID_INT, plog_list.related_id);
-// contacts_svc_value_set_int(plog, CTS_PLOG_VAL_LOG_TIME_INT, plog_list.log_time);
-// contacts_svc_value_set_int(plog, CTS_PLOG_VAL_LOG_TYPE_INT, plog_list.log_type);
-// contacts_svc_value_set_int(plog, CTS_PLOG_VAL_DURATION_INT, plog_list.extra_data1);
-// contacts_svc_value_set_str(plog, CTS_PLOG_VAL_SHORTMSG_STR, temp_extra_data2);
-//
-// _DEBUG_INFO("plog_list.number : %s\n", temp_number);
-// _DEBUG_INFO("plog_list.related_id : %d\n", plog_list.related_id);
-// _DEBUG_INFO("plog_list.log_time : %d\n", plog_list.log_time);
-// _DEBUG_INFO("plog_list.log_type : %d\n", plog_list.log_type);
-// _DEBUG_INFO("plog_list.extra_data1 : %d\n", plog_list.extra_data1);
-// _DEBUG_INFO("plog_list.extra_data2 : %s\n", temp_extra_data2);
-//
-// err = contacts_svc_insert_phonelog(plog);
-// if (err < CTS_SUCCESS) {
-// _DEBUG_INFO("[da_contact_plugIn] contacts_svc_insert_phonelog() Fail!\n");
-// ret = SYNC_AGENT_DA_ERRORS;
-// goto DACI_FINISH;
-// } else {
-// _DEBUG_INFO("[da_contact_plugIn] contacts_svc_insert_phonelog() Success!\n");
-//
-// /* memory free */
-// if (plog != NULL) {
-// contacts_svc_value_free(plog);
-// plog = 0;
-// }
-// }
-// }
-//
-//DACI_FINISH:
-//
-// if (file != NULL) {
-// fclose(file);
-// file = 0;
-// }
-//
-// /* memory free */
-// if (plog != NULL) {
-// contacts_svc_value_free(plog);
-// plog = 0;
-// }