From 44f1fe14b1521218db82150428e0061bea322d03 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 31 Jan 2007 20:55:27 +0000 Subject: [PATCH] Fixed manual dial trunk shortage bug in AST_VDauto_dial.pl git-svn-id: svn://192.168.202.10@485 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_VDauto_dial.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/AST_VDauto_dial.pl b/bin/AST_VDauto_dial.pl index 6e16662a..26bf0599 100644 --- a/bin/AST_VDauto_dial.pl +++ b/bin/AST_VDauto_dial.pl @@ -57,6 +57,7 @@ # 70115-1635 - Added initial auto-alt-dial functionality # 70116-1619 - Added VDAD Ring-No-Answer Auto Alt Dial code # 70118-1539 - Added user_group logging to vicidial_user_log +# 70131-1550 - Fixed Manual dialing trunk shortage bug # @@ -586,6 +587,12 @@ while($one_day_interval > 0) if ( ($DBIPold_trunk_shortage[$user_CIPct] > $DBIPtrunk_shortage[$user_CIPct]) || ($DBIPold_trunk_shortage[$user_CIPct] < $DBIPtrunk_shortage[$user_CIPct]) ) { + if ($DBIPadlevel[$user_CIPct] < 1) + { + $event_string="Manual Dial Override for Shortage |$DBIPadlevel[$user_CIPct]|$DBIPtrunk_shortage[$user_CIPct]|"; + &event_logger; + $DBIPtrunk_shortage[$user_CIPct] = 0; + } $stmtA = "UPDATE vicidial_campaign_server_stats SET local_trunk_shortage='$DBIPtrunk_shortage[$user_CIPct]' where server_ip='$server_ip' and campaign_id='$DBIPcampaign[$user_CIPct]';"; $affected_rows = $dbhA->do($stmtA); }