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
This commit is contained in:
mattf
2012-08-11 03:00:52 +00:00
parent cb1e85fe64
commit 7e8d4a73ef
2 changed files with 13 additions and 3 deletions
+10 -1
View File
@@ -3535,6 +3535,7 @@ if ($stage == "start")
if ($stage == "end") if ($stage == "end")
{ {
$status_dispo = 'DISPO'; $status_dispo = 'DISPO';
$log_no_enter=0;
if ($alt_num_status > 0) if ($alt_num_status > 0)
{$status_dispo = 'ALTNUM';} {$status_dispo = 'ALTNUM';}
##### get call type from vicidial_live_agents table ##### get call type from vicidial_live_agents table
@@ -3561,7 +3562,7 @@ if ($stage == "end")
{ {
echo "LOG NOT ENTERED\n"; echo "LOG NOT ENTERED\n";
echo "uniqueid $uniqueid or lead_id: $lead_id is not valid\n"; echo "uniqueid $uniqueid or lead_id: $lead_id is not valid\n";
exit; $log_no_enter=1;
} }
else 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_sec=0;
$talk_epochSQL=''; $talk_epochSQL='';
+3 -2
View File
@@ -8285,8 +8285,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
delete xmlhttp; delete xmlhttp;
} }
} }
else {process_post_hangup=1;} else
if (process_post_hangup==1) {process_post_hangup=1;}
if (process_post_hangup==1)
{ {
VD_live_customer_call = 0; VD_live_customer_call = 0;
VD_live_call_secondS = 0; VD_live_call_secondS = 0;