From c524844e56cdec1b51f030a42c78413f7c5949ca Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 23 Dec 2021 13:49:43 +0000 Subject: [PATCH] Fix for API hangup post-call survey issue #1338 in vicidial.php git-svn-id: svn://192.168.202.10@3548 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vicidial.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index f8069ce2..e5b826f0 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -681,10 +681,11 @@ # 210719-0907 - Added new state override options for 24-Hour Call Count Limits # 210720-0850 - Fixes for inconsistent hangup_xfer_record_start behavior # 210913-0831 - Fix for alternate number auto-dial logging issues +# 211223-0824 - Fix for API hangup post-call survey issue #1338 # -$version = '2.14-649c'; -$build = '210913-0831'; +$version = '2.14-650c'; +$build = '211223-0824'; $php_script = 'vicidial.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=98; @@ -7116,7 +7117,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection) WaitingForNextStep=0; custchannellive=0; - dialedcall_send_hangup(); + if ( (inbound_post_call_survey=='ENABLED') && (inbound_survey_participate=='Y') ) + { + document.vicidial_form.xfernumber.value = '83068888888888883999'; + document.vicidial_form.xferoverride.checked=true; + mainxfer_send_redirect('XfeRBLIND','" + lastcustchannel + "','" + lastcustserverip + "','','','','YES'); + button_click_log = button_click_log + "" + SQLdate + "-----APIhangupSurveyOR---" + inbound_post_call_survey + " " + inbound_survey_participate + " " + document.vicidial_form.xfernumber.value + "|"; + } + else + { + dialedcall_send_hangup(); + } } if ( (APIStatuS.length < 1000) && (APIStatuS.length > 0) && (AgentDispoing > 1) && (APIStatuS != '::::::::::') ) {