From 600f57aae99fdcae490935b108f45a73089f7b8b Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 9 Feb 2018 22:17:15 +0000 Subject: [PATCH] Big fix for recent feature git-svn-id: svn://192.168.202.10@2907 3d104415-ff17-0410-8863-d5cf3c621b8a --- agi/agi-VDAD_ALL_inbound.agi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi index f4c18ce6..f50de1ea 100644 --- a/agi/agi-VDAD_ALL_inbound.agi +++ b/agi/agi-VDAD_ALL_inbound.agi @@ -220,6 +220,7 @@ # 171011-1312 - Bug fix for on-hook agents using Asterisk 1.8 & 11 # 171124-1159 - Added max_inbound_calls_outcome options # 180204-0120 - Added PRESS_CALLBACK_QUEUE feature, and Closing-Time feature, and add-lead-timezone-lookup feature +# 180209-1716 - Big fix for recent feature # $script = 'agi-VDAD_ALL_inbound.agi'; @@ -2735,7 +2736,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override $dbc++; } - $stmtA = "SELECT distinct group_id FROM vicidial_inbound_callback_queue where icbq_status IN('LIVE','SENDING') and lead_id != '$insert_lead_id' $ADfindSQL and ( (queue_priority > '$queue_priority') or (queue_priority = '$queue_priority' and call_date < \"$SQLdateBEGIN\") );"; + $stmtA = "SELECT distinct group_id FROM vicidial_inbound_callback_queue where icbq_status IN('LIVE','SENDING') and lead_id != '$insert_lead_id' and ( (queue_priority > '$queue_priority') or (queue_priority = '$queue_priority' and call_date < \"$SQLdateBEGIN\") );"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows;