From 7e8d4a73ef2bc25204a9b6e2c818cd5dfec94346 Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 11 Aug 2012 03:00:52 +0000 Subject: [PATCH] fixed issue with recording_log vicidial_id on manual dial calls that did not answer git-svn-id: svn://192.168.202.10@1850 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vdc_db_query.php | 11 ++++++++++- agc_2-X/trunk/www/agc/vicidial.php | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index bd25ee10..4fcbeeb1 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -3535,6 +3535,7 @@ if ($stage == "start") if ($stage == "end") { $status_dispo = 'DISPO'; + $log_no_enter=0; if ($alt_num_status > 0) {$status_dispo = 'ALTNUM';} ##### get call type from vicidial_live_agents table @@ -3561,7 +3562,7 @@ if ($stage == "end") { echo "LOG NOT ENTERED\n"; echo "uniqueid $uniqueid or lead_id: $lead_id is not valid\n"; - exit; + $log_no_enter=1; } else { @@ -4560,6 +4561,14 @@ if ($stage == "end") } } + if ($log_no_enter > 0) + { + $fp = fopen ("./vicidial_debug.txt", "a"); + fwrite ($fp, "$NOW_TIME|DIAL_LOG_1N|$uniqueid|$lead_id|$user|$inOUT|$VLA_inOUT|$start_epoch|$phone_number|$MDnextCID|$agentchannel|$loop_count|$total_rec|$total_hangup|$VDstop_rec_after_each_call\n"); + fclose($fp); + + exit; + } $talk_sec=0; $talk_epochSQL=''; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index d2d3750d..07bd5e83 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -8285,8 +8285,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) delete xmlhttp; } } - else {process_post_hangup=1;} - if (process_post_hangup==1) + else + {process_post_hangup=1;} + if (process_post_hangup==1) { VD_live_customer_call = 0; VD_live_call_secondS = 0;