From 9611b8ff2a8bca887bb5e44665bd2ae25a09a5a6 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 16 Oct 2013 10:59:32 +0000 Subject: [PATCH] Fix for disable_auto_dial system option git-svn-id: svn://192.168.202.10@2035 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_VDauto_dial.pl | 3 ++- bin/AST_VDauto_dial_FILL.pl | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/AST_VDauto_dial.pl b/bin/AST_VDauto_dial.pl index 8cd99e5b..4a8898d6 100644 --- a/bin/AST_VDauto_dial.pl +++ b/bin/AST_VDauto_dial.pl @@ -113,6 +113,7 @@ # 121129-1840 - Fix for issue #600 # 130706-2024 - Added disable_auto_dial system option # 130811-1403 - Fix for issue #690 +# 131016-0659 - Fix for disable_auto_dial system option # @@ -975,7 +976,7 @@ while($one_day_interval > 0) foreach(@DBIPcampaign) { $calls_placed=0; - if ( ($DBIPdial_method[$user_CIPct] =~ /MANUAL|INBOUND_MAN/) || ($outbound_autodial_active < 1) || ($disable_auto_dial > 1) ) + if ( ($DBIPdial_method[$user_CIPct] =~ /MANUAL|INBOUND_MAN/) || ($outbound_autodial_active < 1) || ($disable_auto_dial > 0) ) { $event_string="$DBIPcampaign[$user_CIPct] $DBIPaddress[$user_CIPct]: MANUAL DIAL CAMPAIGN, NO DIALING"; &event_logger; diff --git a/bin/AST_VDauto_dial_FILL.pl b/bin/AST_VDauto_dial_FILL.pl index e8fe39c7..c7f27d76 100644 --- a/bin/AST_VDauto_dial_FILL.pl +++ b/bin/AST_VDauto_dial_FILL.pl @@ -34,7 +34,8 @@ # 110922-1203 - Added logging of last calltime to campaign # 120831-1502 - Added vicidial_dial_log outbound call logging # 130227-1604 - Cleanup of staggered code, resetting of variables and arrays -# 130706-2024- Added disable_auto_dial system option +# 130706-2024 - Added disable_auto_dial system option +# 131016-0658 - Fix for disable_auto_dial system option # ### begin parsing run-time options ### @@ -309,7 +310,7 @@ while($one_day_interval > 0) $event_string.="CAMPAIGNS WITH TRUNK SHORTAGE: $camp_counter| TOTAL SHORTAGE: $total_shortage"; &event_logger; - if (($outbound_autodial_active < 1) || ($disable_auto_dial > 1) ) + if (($outbound_autodial_active < 1) || ($disable_auto_dial > 0) ) { $event_string="SYSTEM AUTO-DIAL DISABLED, NO DIALING: |$outbound_autodial_active|$disable_auto_dial|"; &event_logger;