diff --git a/agc_2-X/trunk/bin/AST_VDauto_dial.pl b/agc_2-X/trunk/bin/AST_VDauto_dial.pl index f0247929..a09227e0 100644 --- a/agc_2-X/trunk/bin/AST_VDauto_dial.pl +++ b/agc_2-X/trunk/bin/AST_VDauto_dial.pl @@ -110,6 +110,7 @@ # 120403-1839 - Changed auto-alt-dial multi-lead processing to use server max recording time value for time # 120831-1503 - Added vicidial_dial_log outbound call logging # 121124-2249 - Added Other Campaign DNC option +# 121129-1840 - Fix for issue #600 # @@ -946,6 +947,11 @@ while($one_day_interval > 0) $stmtA = "UPDATE vicidial_campaign_server_stats SET local_trunk_shortage='$DBIPtrunk_shortage[$user_CIPct]',update_time='$now_date' where server_ip='$server_ip' and campaign_id='$DBIPcampaign[$user_CIPct]';"; $affected_rows = $dbhA->do($stmtA); } + else + { + $stmtA = "UPDATE vicidial_campaign_server_stats SET update_time='$now_date' where server_ip='$server_ip' and campaign_id='$DBIPcampaign[$user_CIPct]';"; + $affected_rows = $dbhA->do($stmtA); + } $event_string="LOCAL TRUNK SHORTAGE: $DBIPtrunk_shortage[$user_CIPct]|$DBIPold_trunk_shortage[$user_CIPct] ($active_line_goal - $max_vicidial_trunks)"; $debug_string .= "$event_string\n";