Fix for enhanced_disconnect_logging=3 issue in AST_VDauto_dial.pl

git-svn-id: svn://192.168.202.10@3688 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2023-02-23 13:27:49 +00:00
parent 6d281c33cd
commit 23020906b5
+8 -2
View File
@@ -154,9 +154,10 @@
# 221221-2135 - Added enhanced_disconnect_logging=3 support, issue #1367
# 230204-2144 - Added ability to use ALT na_call_url entries
# 230215-1534 - Fix for AGENTDIRECT No-Agent Call URL calls, Issue #1396
# 230223-0826 - Fix for enhanced_disconnect_logging=3 issue
#
$build='230215-1534';
$build='230223-0826';
$script='AST_VDauto_dial';
### begin parsing run-time options ###
if (length($ARGV[0])>1)
@@ -2741,7 +2742,7 @@ while($one_day_interval > 0)
}
}
if ($CLlead_id > 0 && $CLstatus != 'CARRIERFAIL')
if ( ($CLlead_id > 0) && ($CLstatus !~ /CARRIERFAIL/i) )
{
$stmtA = "UPDATE vicidial_list set status='$CLnew_status' where lead_id='$CLlead_id'";
$affected_rows = $dbhA->do($stmtA);
@@ -2749,6 +2750,11 @@ while($one_day_interval > 0)
$event_string = "| dead call vac lead marked $CLnew_status|$CLlead_id|$CLphone_number|$CLstatus|";
&event_logger;
}
else
{
$event_string = "| dead call vac lead NOT UPDATED $CLnew_status|$CLlead_id|$CLphone_number|$CLstatus|";
&event_logger;
}
# if ($KLcallerid[$kill_vac] !~ /^M\d\d\d\d\d\d\d\d\d\d/)
# {