|
|
|
@@ -448,10 +448,11 @@
|
|
|
|
|
# 141113-1431 - Added admin_test option to allow login on active_agent=N servers
|
|
|
|
|
# 141116-1805 - Fixed issue #801
|
|
|
|
|
# 141118-1229 - Formatting changes for QXZ output
|
|
|
|
|
# 141118-1439 - Added agent_email as webform and script variable
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '2.10-419c';
|
|
|
|
|
$build = '141118-1229';
|
|
|
|
|
$version = '2.10-420c';
|
|
|
|
|
$build = '141118-1439';
|
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
|
$mysql_log_count=80;
|
|
|
|
|
$one_mysql_log=0;
|
|
|
|
@@ -1117,7 +1118,7 @@ else
|
|
|
|
|
if($auth>0)
|
|
|
|
|
{
|
|
|
|
|
##### grab the full name and other settings of the agent
|
|
|
|
|
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,closer_default_blended,user_group,vicidial_recording_override,alter_custphone_override,alert_enabled,agent_shift_enforcement_override,shift_override_flag,allow_alerts,closer_campaigns,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,agent_call_log_view_override,agent_choose_blended,agent_lead_search_override,preset_contact_search,max_inbound_calls,wrapup_seconds_override from vicidial_users where user='$VD_login' and active='Y';";
|
|
|
|
|
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,closer_default_blended,user_group,vicidial_recording_override,alter_custphone_override,alert_enabled,agent_shift_enforcement_override,shift_override_flag,allow_alerts,closer_campaigns,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,agent_call_log_view_override,agent_choose_blended,agent_lead_search_override,preset_contact_search,max_inbound_calls,wrapup_seconds_override,email from vicidial_users where user='$VD_login' and active='Y';";
|
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
|
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01007',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
@@ -1151,6 +1152,7 @@ else
|
|
|
|
|
$VU_preset_contact_search = $row[27];
|
|
|
|
|
$VU_max_inbound_calls = $row[28];
|
|
|
|
|
$VU_wrapup_seconds_override = $row[29];
|
|
|
|
|
$LOGemail = $row[30];
|
|
|
|
|
|
|
|
|
|
if ( ($VU_alert_enabled > 0) and ($VU_allow_alerts > 0) ) {$VU_alert_enabled = 'ON';}
|
|
|
|
|
else {$VU_alert_enabled = 'OFF';}
|
|
|
|
@@ -3478,6 +3480,7 @@ $CCAL_OUT .= "</table>";
|
|
|
|
|
?>
|
|
|
|
|
var view_scripts = '<?php echo $view_scripts ?>';
|
|
|
|
|
var LOGfullname = '<?php echo $LOGfullname ?>';
|
|
|
|
|
var LOGemail = '<?php echo $LOGemail ?>';
|
|
|
|
|
var recLIST = '';
|
|
|
|
|
var filename = '';
|
|
|
|
|
var last_filename = '';
|
|
|
|
@@ -12192,6 +12195,7 @@ else
|
|
|
|
|
"&script_width=" + script_width + '' +
|
|
|
|
|
"&script_height=" + script_height + '' +
|
|
|
|
|
"&fullname=" + LOGfullname + '' +
|
|
|
|
|
"&agent_email=" + LOGemail + '' +
|
|
|
|
|
"&recording_filename=" + recording_filename + '' +
|
|
|
|
|
"&recording_id=" + recording_id + '' +
|
|
|
|
|
"&user_custom_one=" + VU_custom_one + '' +
|
|
|
|
@@ -12385,6 +12389,7 @@ else
|
|
|
|
|
var SCsecurity_phrase = encodeURIComponent(document.vicidial_form.security_phrase.value);
|
|
|
|
|
var SCcomments = encodeURIComponent(document.vicidial_form.comments.value);
|
|
|
|
|
var SCfullname = LOGfullname;
|
|
|
|
|
var SCagent_email = LOGemail;
|
|
|
|
|
var SCfronter = fronter;
|
|
|
|
|
var SCuser = user;
|
|
|
|
|
var SCpass = pass;
|
|
|
|
@@ -12463,6 +12468,7 @@ else
|
|
|
|
|
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
|
|
|
|
|
SCcomments = SCcomments.replace(RGplus,'+');
|
|
|
|
|
SCfullname = SCfullname.replace(RGplus,'+');
|
|
|
|
|
SCagent_email = SCagent_email.replace(RGplus,'+');
|
|
|
|
|
SCfronter = SCfronter.replace(RGplus,'+');
|
|
|
|
|
SCuser = SCuser.replace(RGplus,'+');
|
|
|
|
|
SCpass = SCpass.replace(RGplus,'+');
|
|
|
|
@@ -12535,6 +12541,7 @@ else
|
|
|
|
|
var RGsecurity_phrase = new RegExp("--A--security_phrase--B--","g");
|
|
|
|
|
var RGcomments = new RegExp("--A--comments--B--","g");
|
|
|
|
|
var RGfullname = new RegExp("--A--fullname--B--","g");
|
|
|
|
|
var RGagent_email = new RegExp("--A--agent_email--B--","g");
|
|
|
|
|
var RGfronter = new RegExp("--A--fronter--B--","g");
|
|
|
|
|
var RGuser = new RegExp("--A--user--B--","g");
|
|
|
|
|
var RGpass = new RegExp("--A--pass--B--","g");
|
|
|
|
@@ -12611,6 +12618,7 @@ else
|
|
|
|
|
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
|
|
|
|
|
encoded = encoded.replace(RGcomments, SCcomments);
|
|
|
|
|
encoded = encoded.replace(RGfullname, SCfullname);
|
|
|
|
|
encoded = encoded.replace(RGagent_email, SCagent_email);
|
|
|
|
|
encoded = encoded.replace(RGfronter, SCfronter);
|
|
|
|
|
encoded = encoded.replace(RGuser, SCuser);
|
|
|
|
|
encoded = encoded.replace(RGpass, SCpass);
|
|
|
|
@@ -13475,7 +13483,7 @@ function phone_number_format(formatphone) {
|
|
|
|
|
var form_entry_list_id = document.vicidial_form.entry_list_id.value;
|
|
|
|
|
if (form_entry_list_id.length > 2)
|
|
|
|
|
{form_list_id = form_entry_list_id}
|
|
|
|
|
document.getElementById('vcFormIFrame').src='./vdc_form_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + script_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + "&called_count=" + document.vicidial_form.called_count.value + '' +"&web_vars=" + LIVE_web_vars + '';
|
|
|
|
|
document.getElementById('vcFormIFrame').src='./vdc_form_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + script_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + "&called_count=" + document.vicidial_form.called_count.value + '' +"&web_vars=" + LIVE_web_vars + '';
|
|
|
|
|
form_list_id = '';
|
|
|
|
|
form_entry_list_id = '';
|
|
|
|
|
}
|
|
|
|
@@ -13488,7 +13496,7 @@ function phone_number_format(formatphone) {
|
|
|
|
|
var form_entry_list_id = document.vicidial_form.entry_list_id.value;
|
|
|
|
|
if (form_entry_list_id.length > 2)
|
|
|
|
|
{form_list_id = form_entry_list_id}
|
|
|
|
|
document.getElementById('vcEmailIFrame').src='./vdc_email_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + orig_pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + script_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' +"&web_vars=" + LIVE_web_vars + '';
|
|
|
|
|
document.getElementById('vcEmailIFrame').src='./vdc_email_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + orig_pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + script_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' +"&web_vars=" + LIVE_web_vars + '';
|
|
|
|
|
form_list_id = '';
|
|
|
|
|
form_entry_list_id = '';
|
|
|
|
|
}
|
|
|
|
|