From 1c3714bb20b019558c6dd408dff0b154e938029e Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 20 Jul 2021 13:01:31 +0000 Subject: [PATCH] Fixes for inconsistent hangup_xfer_record_start behavior in vicidial.php git-svn-id: svn://192.168.202.10@3487 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/agc/vicidial.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 5b926c35..f27c59e3 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -679,10 +679,11 @@ # 210706-0114 - Added display of Call Time Holidays to the Scheduled Callbacks calendar # 210715-1215 - Added 24-Hour Call Count Limit features # 210719-0907 - Added new state override options for 24-Hour Call Count Limits +# 210720-0850 - Fixes for inconsistent hangup_xfer_record_start behavior # -$version = '2.14-647c'; -$build = '210719-0907'; +$version = '2.14-648c'; +$build = '210720-0850'; $php_script = 'vicidial.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=98; @@ -5592,6 +5593,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var in_man_dial_next_ready_trigger = 0; var user_pass_webform = ''; var phone_login_webform = ''; + var recording_active=0; var DiaLControl_auto_HTML = "\" border=\"0\" alt=\"You are paused\" />"; var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\"You are active\" />"; var DiaLControl_auto_HTML_OFF = "\" border=\"0\" alt=\"pause button disabled\" />"; @@ -7607,6 +7609,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (taskconfrectype == 'MonitorConf') { + recording_active=1; var REGrecCLEANvlc = new RegExp(" ","g"); var recVendorLeadCode = document.vicidial_form.vendor_lead_code.value; recVendorLeadCode = recVendorLeadCode.replace(REGrecCLEANvlc, ''); @@ -7657,6 +7660,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (taskconfrectype == 'StopMonitorConf') { + recording_active=0; filename = taskconffile; var query_recording_exten = session_id; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; @@ -14538,7 +14542,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) xfer_in_call=0; if (HANclick=='YES') {button_click_log = button_click_log + "" + SQLdate + "-----xfercall_send_hangup---" + xferchannel + "|";} - if ( (hangup_xfer_record_start == 'Y') && (hangup_both < 1) ) + if ( (hangup_xfer_record_start == 'Y') && (hangup_both < 1) && (leaving_threeway < 1) && (recording_active < 1) ) { conf_send_recording('MonitorConf', session_id,'','','',''); } @@ -15373,6 +15377,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) customer_3way_hangup_counter=0; customer_3way_hangup_counter_trigger=0; waiting_on_dispo=1; + recording_active=0; var VDDCU_recording_id=document.getElementById("RecorDID").innerHTML; var VDDCU_recording_filename=last_recording_filename; var dispo_urls='';