diff --git a/agi/agi-VDAD_ALL_outbound.agi b/agi/agi-VDAD_ALL_outbound.agi index e43c4bf0..d5239ffb 100644 --- a/agi/agi-VDAD_ALL_outbound.agi +++ b/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; - } } } ################################################################################