From d8ccb2cc21441abe27b26f8a3123aa6213a1363e Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 20 Jul 2019 14:17:21 +0000 Subject: [PATCH] small fix for Call Quotas feature git-svn-id: svn://192.168.202.10@3123 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 e43c4bf0..d5239ffb 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi @@ -1811,7 +1811,6 @@ if ($call_handle_method =~ /SURVEY/) print "SET PRIORITY 1\n"; $result = ; checkresult($result); - } else {$AGI->hangup();} @@ -2203,6 +2202,12 @@ if ($call_handle_method =~ /SURVEY/) &agi_output; } + if ( ($SScall_quota_lead_ranking > 0) && ($VD_call_quota_lead_ranking !~ /^DISABLED$/i) ) + { + $temp_status = 'PM'; + &call_quota_logging; + } + if ($survey_no_response_action !~ /DROP/) { $stmtA = "DELETE FROM vicidial_auto_calls where callerid='$callerid' order by call_time desc limit 1;"; @@ -2225,12 +2230,6 @@ if ($call_handle_method =~ /SURVEY/) $agi_string = "-- VDAD survey no-response go to campaign DROP |$drop_timer|$DROP_TIME|"; &agi_output; } - - if ( ($SScall_quota_lead_ranking > 0) && ($VD_call_quota_lead_ranking !~ /^DISABLED$/i) ) - { - $temp_status = 'PM'; - &call_quota_logging; - } } } ################################################################################