From 9603b82369ebc3a4f4157466d3b3f926cea9707d Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 15 Jun 2026 05:47:41 +0000 Subject: [PATCH] Fix for transfer issue in vicidial.php git-svn-id: svn://192.168.202.10@4003 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vicidial.php | 28 ++++++++++++++++++++++------ agc_2-X/trunk/www/vicidial/admin.php | 4 ++-- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index e8a86010..25dae70b 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -759,10 +759,11 @@ # 260324-0857 - Added hangup_again_link campaign option # 260408-1850 - Added max_inbound_auto_reenable option # 260529-0914 - Added AMDnotesBox +# 260615-0039 - Fix for transfer issue # -$version = '2.14-725c'; -$build = '260529-0914'; +$version = '2.14-726c'; +$build = '260615-0039'; $php_script = 'vicidial.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=110; @@ -8673,13 +8674,25 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { api_transferconf_ID = api_transferconf_values_array[7]; if (api_transferconf_function == 'HANGUP_XFER') - {xfercall_send_hangup();} + { + API_selected_xfergroup=''; + xfercall_send_hangup(); + } if (api_transferconf_function == 'HANGUP_BOTH') - {bothcall_send_hangup();} + { + API_selected_xfergroup=''; + bothcall_send_hangup(); + } if (api_transferconf_function == 'LEAVE_VM') - {mainxfer_send_redirect('XfeRVMAIL',lastcustchannel,lastcustserverip);} + { + API_selected_xfergroup=''; + mainxfer_send_redirect('XfeRVMAIL',lastcustchannel,lastcustserverip); + } if (api_transferconf_function == 'LEAVE_3WAY_CALL') - {leave_3way_call('FIRST');} + { + API_selected_xfergroup=''; + leave_3way_call('FIRST'); + } if (api_transferconf_function == 'BLIND_TRANSFER') { if (api_transferconf_override=='YES') @@ -8758,6 +8771,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (api_parkcustomer == 'HANGUP_XFER_GRAB_CUSTOMER') { + API_selected_xfergroup=''; xfercall_send_hangup(); mainxfer_send_redirect('FROMParK',lastcustchannel,lastcustserverip); } @@ -16410,6 +16424,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Hangup Customer Button Press function hangup_customer_button_click(dispowindow,hotkeysused,altdispo,nodeletevdac,DSHclick) { + API_selected_xfergroup=''; if ( (agent_hangup_value.length > 0) && ( (agent_hangup_route=='MESSAGE') || (agent_hangup_route=='EXTENSION') || (agent_hangup_route=='IN_GROUP') || (agent_hangup_route=='CALLMENU') ) ) { button_click_log = button_click_log + "" + SQLdate + "-----AgentHangupCallRoute---" + VD_live_customer_call + " " + agent_hangup_route + " " + agent_hangup_value + " " + document.vicidial_form.xfernumber.value + "|"; @@ -17005,6 +17020,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var xfer_channel = lastxferchannel; var process_post_hangup=0; xfer_in_call=0; + API_selected_xfergroup=''; if (HANclick=='YES') {button_click_log = button_click_log + "" + SQLdate + "-----xfercall_send_hangup---" + xferchannel + "|";} if ( (hangup_xfer_record_start == 'Y') && (hangup_both < 1) && (leaving_threeway < 1) && (recording_active < 1) ) diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index f16cfca3..82b52cd2 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -4204,7 +4204,6 @@ if ($non_latin < 1) $agent_hangup_value = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$agent_hangup_value); $second_alert_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$second_alert_filename); $third_alert_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$third_alert_filename); - $stage = preg_replace('/[^-\._0-9a-zA-Z]/','',$stage); ### ALPHA-NUMERIC and underscore and dash and slash and dot and comma $menu_prompt = preg_replace('/[^-\/\|\,\._0-9a-zA-Z]/','',$menu_prompt); @@ -4371,6 +4370,7 @@ if ($non_latin < 1) $city_rule = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$city_rule); $county_rule = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$county_rule); $ac_rule = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$ac_rule); + $stage = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$stage); $stereo_rec_filename = preg_replace('/[^-\.\_0-9a-zA-Z]/','',$stereo_rec_filename); $parallel_rec_co_filename = preg_replace('/[^-\.\_0-9a-zA-Z]/','',$parallel_rec_co_filename); $parallel_rec_cm_filename = preg_replace('/[^-\.\_0-9a-zA-Z]/','',$parallel_rec_cm_filename); @@ -4954,7 +4954,6 @@ else $agent_hangup_value = preg_replace('/[^-\/\|\._0-9\p{L}]/u','',$agent_hangup_value); $second_alert_filename = preg_replace('/[^-\/\|\._0-9\p{L}]/u','',$second_alert_filename); $third_alert_filename = preg_replace('/[^-\/\|\._0-9\p{L}]/u','',$third_alert_filename); - $stage = preg_replace('/[^-\._0-9\p{L}]/u','',$stage); ### ALPHA-NUMERIC and underscore and dash and slash and dot and comma $menu_prompt = preg_replace('/[^-\/\|\,\._0-9\p{L}]/u','',$menu_prompt); @@ -5121,6 +5120,7 @@ else $city_rule = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$city_rule); $county_rule = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$county_rule); $ac_rule = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$ac_rule); + $stage = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$stage); $stereo_rec_filename = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$stereo_rec_filename); $parallel_rec_co_filename = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$parallel_rec_co_filename); $parallel_rec_cm_filename = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$parallel_rec_cm_filename);