From 7a6c09d72eb5b988ee76d9a3382bbf1ab1bd373b Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 7 Dec 2010 22:34:05 +0000 Subject: [PATCH] very small change to outbound AGI git-svn-id: svn://192.168.202.10@1565 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi index 20fc350d..29cde549 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi @@ -377,7 +377,7 @@ if ($VDACaffected_rows < 1) { if ($AGILOG) {$agi_string = "-- NO VDAC FOUND!!!!!: $callerid"; &agi_output;} - $stmtA = "SELECT cmd_line_k,entry_date FROM vicidial_manager where callerid='$callerid' order by call_time desc limit 1;"; + $stmtA = "SELECT cmd_line_k,entry_date FROM vicidial_manager where callerid='$callerid' order by entry_date desc limit 1;"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows;