diff --git a/agc_2-X/branches/agc_2.2.0/www/agc/vicidial.php b/agc_2-X/branches/agc_2.2.0/www/agc/vicidial.php index 856711a7..29fb2d2b 100644 --- a/agc_2-X/branches/agc_2.2.0/www/agc/vicidial.php +++ b/agc_2-X/branches/agc_2.2.0/www/agc/vicidial.php @@ -277,10 +277,11 @@ # 100228-1257 - Fixed no-selected default transfer group issue on inbound calls # 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # 100309-1709 - small fix for IE CRM popup +# 100315-1149 - fix for rare recording_log uniqueid issue on manual dial calls to same number # -$version = '2.2.0-255'; -$build = '100309-1709'; +$version = '2.2.0-256'; +$build = '100315-1149'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -2750,6 +2751,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var timer_action_message=''; var timer_action_seconds=''; var pause_code_counter=1; + var last_uniqueid=''; + var tmp_vicidial_id=''; var DiaLControl_auto_HTML = "\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"\"Resume\""; @@ -3693,11 +3696,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (inOUT == 'OUT') { - var tmp_vicidial_id = document.vicidial_form.uniqueid.value; + tmp_vicidial_id = document.vicidial_form.uniqueid.value; } else { - var tmp_vicidial_id = 'IN'; + tmp_vicidial_id = 'IN'; } var xmlhttp=false; /*@cc_on @*/ @@ -4659,6 +4662,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} custchannellive=1; document.vicidial_form.uniqueid.value = MDlookResponse_array[0]; + last_uniqueid = MDlookResponse_array[0]; document.vicidial_form.callchannel.value = MDlookResponse_array[1]; lastcustchannel = MDlookResponse_array[1]; if( document.images ) { document.images['livecall'].src = image_livecall_ON.src;} @@ -6435,6 +6439,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.lead_id.value = VDIC_data_VDAC[0]; document.vicidial_form.uniqueid.value = VDIC_data_VDAC[1]; + last_uniqueid = VDIC_data_VDAC[1]; CIDcheck = VDIC_data_VDAC[2]; CalLCID = VDIC_data_VDAC[2]; document.vicidial_form.callchannel.value = VDIC_data_VDAC[3]; @@ -7969,7 +7974,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } if (xmlhttp) { - DSupdate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=updateDISPO&format=text&user=" + user + "&pass=" + pass + "&dispo_choice=" + DispoChoice + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&auto_dial_level=" + auto_dial_level + "&agent_log_id=" + agent_log_id + "&CallBackDatETimE=" + CallBackDatETimE + "&list_id=" + document.vicidial_form.list_id.value + "&recipient=" + CallBackrecipient + "&use_internal_dnc=" + use_internal_dnc + "&use_campaign_dnc=" + use_campaign_dnc + "&MDnextCID=" + LasTCID + "&stage=" + group + "&vtiger_callback_id=" + vtiger_callback_id + "&phone_number=" + document.vicidial_form.phone_number.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&dial_method" + dial_method + "&comments=" + CallBackCommenTs; + DSupdate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=updateDISPO&format=text&user=" + user + "&pass=" + pass + "&dispo_choice=" + DispoChoice + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&auto_dial_level=" + auto_dial_level + "&agent_log_id=" + agent_log_id + "&CallBackDatETimE=" + CallBackDatETimE + "&list_id=" + document.vicidial_form.list_id.value + "&recipient=" + CallBackrecipient + "&use_internal_dnc=" + use_internal_dnc + "&use_campaign_dnc=" + use_campaign_dnc + "&MDnextCID=" + LasTCID + "&stage=" + group + "&vtiger_callback_id=" + vtiger_callback_id + "&phone_number=" + document.vicidial_form.phone_number.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&dial_method" + dial_method + "&uniqueid=" + last_uniqueid + "&comments=" + CallBackCommenTs; xmlhttp.open('POST', 'vdc_db_query.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(DSupdate_query); @@ -8028,6 +8033,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} vtiger_callback_id='0'; recording_filename=''; recording_id=''; + document.vicidial_form.uniqueid.value=''; + MDuniqueid=''; + XDuniqueid=''; + tmp_vicidial_id=''; if (manual_dial_in_progress==1) { diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index c01faca6..6e1249c1 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -283,10 +283,11 @@ # 100306-0852 - Added options.php optional file for setting interface options that will survive upgrade # 100309-0525 - Added queuemetrics_loginout option # 100313-0053 - Added display options for transfer/conf buttons +# 100315-1148 - fix for rare recording_log uniqueid issue on manual dial calls to same number # -$version = '2.4-261'; -$build = '100313-0053'; +$version = '2.4-262'; +$build = '100315-1148'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -2851,6 +2852,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var agent_call_log_view=''; var scheduled_callbacks_alert=''; var last_uniqueid=''; + var tmp_vicidial_id=''; var agent_xfer_consultative=''; var agent_xfer_dial_override=''; var agent_xfer_vm_transfer=''; @@ -3802,11 +3804,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (inOUT == 'OUT') { - var tmp_vicidial_id = document.vicidial_form.uniqueid.value; + tmp_vicidial_id = document.vicidial_form.uniqueid.value; } else { - var tmp_vicidial_id = 'IN'; + tmp_vicidial_id = 'IN'; } var xmlhttp=false; /*@cc_on @*/ @@ -8168,6 +8170,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} vtiger_callback_id='0'; recording_filename=''; recording_id=''; + document.vicidial_form.uniqueid.value=''; + MDuniqueid=''; + XDuniqueid=''; + tmp_vicidial_id=''; if (manual_dial_in_progress==1) {