From 647cff7f2f0fd1eead19ca662c84edda5bec0183 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 23 Oct 2009 17:45:21 +0000 Subject: [PATCH] variable fix in AST_VDauto_dial.pl script git-svn-id: svn://192.168.202.10@1249 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_VDauto_dial.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_VDauto_dial.pl b/agc_2-X/trunk/bin/AST_VDauto_dial.pl index 62b62227..968e0a98 100644 --- a/agc_2-X/trunk/bin/AST_VDauto_dial.pl +++ b/agc_2-X/trunk/bin/AST_VDauto_dial.pl @@ -1364,7 +1364,7 @@ while($one_day_interval > 0) $event_string = "|$stmtA|$VD_alt_dnc_count|"; &event_logger; if ($VD_use_campaign_dnc =~ /Y/) { - $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_alt_phone' and campaign_id='$VD_campaign_id';"; + $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_alt_phone' and campaign_id='$CLcampaign_id';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -1428,7 +1428,7 @@ while($one_day_interval > 0) $event_string = "|$stmtA|$VD_alt_dnc_count|"; &event_logger; if ($VD_use_campaign_dnc =~ /Y/) { - $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_address3' and campaign_id='$VD_campaign_id';"; + $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_address3' and campaign_id='$CLcampaign_id';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -1529,7 +1529,7 @@ while($one_day_interval > 0) else {$VD_alt_dnc_count=0;} if ($VD_use_campaign_dnc =~ /Y/) { - $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_altdial_phone' and campaign_id='$VD_campaign_id';"; + $stmtA="SELECT count(*) FROM vicidial_campaign_dnc where phone_number='$VD_altdial_phone' and campaign_id='$CLcampaign_id';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows;