Added user_group as a script, form, webform, start_call_url and dispo_call_url variable
git-svn-id: svn://192.168.202.10@1952 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -226,7 +226,9 @@ OTHER CHANGES:
|
||||
exten => #,n,Hangup()
|
||||
exten => t,1,Goto(up_monitor,s,1)
|
||||
exten => t,n,Hangup()
|
||||
|
||||
|
||||
39. Added user_group as a script, form, webform, start_call_url and
|
||||
dispo_call_url variable.
|
||||
|
||||
|
||||
|
||||
|
||||
+8
-3
@@ -8,13 +8,14 @@
|
||||
# This script is also used for the Add-Lead-URL feature in In-groups and for
|
||||
# QM socket-send.
|
||||
#
|
||||
# Copyright (C) 2012 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 100622-0929 - First Build
|
||||
# 100929-0918 - Added function variable and new Add Lead URL function
|
||||
# 110731-0127 - Added call_id variable and logging
|
||||
# 121120-0925 - Added QM socket-send functionality
|
||||
# 130402-2307 - Added user_group variable
|
||||
#
|
||||
|
||||
$|++;
|
||||
@@ -336,7 +337,7 @@ if (length($lead_id) > 0)
|
||||
|
||||
if ($na_call_url =~ /--A--user_custom_/)
|
||||
{
|
||||
$stmtA = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_users where user='$user';";
|
||||
$stmtA = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five,user_group from vicidial_users where user='$user';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@@ -348,6 +349,7 @@ if (length($lead_id) > 0)
|
||||
$VAR_user_custom_three = $aryA[2];
|
||||
$VAR_user_custom_four = $aryA[3];
|
||||
$VAR_user_custom_five = $aryA[4];
|
||||
$VAR_user_group = $aryA[5];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,6 +443,7 @@ if (length($lead_id) > 0)
|
||||
$na_call_url =~ s/--A--closecallid--B--/$VAR_closecallid/gi;
|
||||
$na_call_url =~ s/--A--uniqueid--B--/$VAR_uniqueid/gi;
|
||||
$na_call_url =~ s/--A--call_id--B--/$VAR_call_id/gi;
|
||||
$na_call_url =~ s/--A--user_group--B--/$VAR_user_group/gi;
|
||||
$na_call_url =~ s/ /+/gi;
|
||||
$na_call_url =~ s/&/\\&/gi;
|
||||
$parse_url = $na_call_url;
|
||||
@@ -491,7 +494,7 @@ if (length($lead_id) > 0)
|
||||
|
||||
if ($start_call_url =~ /--A--user_custom_/)
|
||||
{
|
||||
$stmtA = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_users where user='$user';";
|
||||
$stmtA = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five,user_group from vicidial_users where user='$user';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@@ -503,6 +506,7 @@ if (length($lead_id) > 0)
|
||||
$VAR_user_custom_three = $aryA[2];
|
||||
$VAR_user_custom_four = $aryA[3];
|
||||
$VAR_user_custom_five = $aryA[4];
|
||||
$VAR_user_group = $aryA[5];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,6 +599,7 @@ if (length($lead_id) > 0)
|
||||
$start_call_url =~ s/--A--closecallid--B--/$VAR_closecallid/gi;
|
||||
$start_call_url =~ s/--A--uniqueid--B--/$VAR_uniqueid/gi;
|
||||
$start_call_url =~ s/--A--call_id--B--/$VAR_call_id/gi;
|
||||
$start_call_url =~ s/--A--user_group--B--/$VAR_user_group/gi;
|
||||
$start_call_url =~ s/ /+/gi;
|
||||
$start_call_url =~ s/&/\\&/gi;
|
||||
$parse_url = $start_call_url;
|
||||
|
||||
@@ -325,10 +325,11 @@
|
||||
# 121223-1627 - Fixed issue with manual alt dial manual dial filter
|
||||
# 130328-0009 - Converted ereg to preg functions
|
||||
# 130328-1015 - Added validation for agent manual dial permission on DIAL links
|
||||
# 130402-2242 - Added user_group variable to _call_url functions
|
||||
#
|
||||
|
||||
$version = '2.6-223';
|
||||
$build = '130328-1015';
|
||||
$version = '2.6-224';
|
||||
$build = '130402-2242';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=533;
|
||||
$one_mysql_log=0;
|
||||
@@ -5159,7 +5160,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$custom_call_id = $row[0];
|
||||
}
|
||||
|
||||
### update the log status to INCALL
|
||||
### gather user_group and full_name of agent
|
||||
$user_group='';
|
||||
$stmt="SELECT user_group,full_name FROM vicidial_users where user='$user' LIMIT 1;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -5966,6 +5967,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_start_call_url = preg_replace('/--A--xfercallid--B--/i',urlencode(trim($INxfercallid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_log_id--B--/i',urlencode(trim($agent_log_id)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--call_id--B--/i',urlencode(trim($callerid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$VDCL_start_call_url);
|
||||
|
||||
if (strlen($custom_field_names)>2)
|
||||
{
|
||||
@@ -6356,7 +6358,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
}
|
||||
*/
|
||||
|
||||
### update the log status to INCALL
|
||||
### gather user_group and full_name of agent
|
||||
$user_group='';
|
||||
$stmt="SELECT user_group,full_name FROM vicidial_users where user='$user' LIMIT 1;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -6900,6 +6902,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
$VDCL_start_call_url = preg_replace('/--A--xfercallid--B--/i',urlencode(trim($INxfercallid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_log_id--B--/i',urlencode(trim($agent_log_id)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--call_id--B--/i',urlencode(trim($callerid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$VDCL_start_call_url);
|
||||
|
||||
if (strlen($custom_field_names)>2)
|
||||
{
|
||||
@@ -9104,9 +9107,9 @@ if ($ACTION == 'updateDISPO')
|
||||
$talk_time=0;
|
||||
$talk_time_ms=0;
|
||||
$talk_time_min=0;
|
||||
if ( (preg_match('/--A--user_custom_/i',$dispo_call_url)) or (preg_match('/--A--fullname/i',$dispo_call_url)) )
|
||||
if ( (preg_match('/--A--user_custom_/i',$dispo_call_url)) or (preg_match('/--A--fullname/i',$dispo_call_url)) or (preg_match('/--A--user_group/i',$dispo_call_url)) )
|
||||
{
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five,full_name from vicidial_users where user='$user';";
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five,full_name,user_group from vicidial_users where user='$user';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00288',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -9120,6 +9123,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$user_custom_four = urlencode(trim($row[3]));
|
||||
$user_custom_five = urlencode(trim($row[4]));
|
||||
$fullname = urlencode(trim($row[5]));
|
||||
$user_group = urlencode(trim($row[6]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9375,6 +9379,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_url = preg_replace('/--A--closecallid--B--/i',urlencode(trim($INclosecallid)),$dispo_call_url);
|
||||
$dispo_call_url = preg_replace('/--A--xfercallid--B--/i',urlencode(trim($INxfercallid)),$dispo_call_url);
|
||||
$dispo_call_url = preg_replace('/--A--call_id--B--/i',urlencode(trim($MDnextCID)),$dispo_call_url);
|
||||
$dispo_call_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$dispo_call_url);
|
||||
$dispo_call_url = preg_replace('/--A--call_notes--B--/i',"$url_call_notes",$dispo_call_url);
|
||||
|
||||
if (strlen($FORMcustom_field_names)>2)
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
# 111025-1433 - Fixed case sensitivity on list fields
|
||||
# 120315-1729 - Filtere out single quotes and backslashes from custom fields
|
||||
# 130328-0012 - Converted ereg to preg functions
|
||||
# 130402-2256 - Added user_group variable
|
||||
#
|
||||
|
||||
$version = '2.6-9';
|
||||
$build = '130328-0012';
|
||||
$version = '2.6-10';
|
||||
$build = '130402-2256';
|
||||
|
||||
require("dbconnect.php");
|
||||
require_once("functions.php");
|
||||
@@ -145,6 +146,8 @@ if (isset($_GET["agent_log_id"])) {$agent_log_id=$_GET["agent_log_id"];}
|
||||
elseif (isset($_POST["agent_log_id"])) {$agent_log_id=$_POST["agent_log_id"];}
|
||||
if (isset($_GET["call_id"])) {$call_id=$_GET["call_id"];}
|
||||
elseif (isset($_POST["call_id"])) {$call_id=$_POST["call_id"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["web_vars"])) {$web_vars=$_GET["web_vars"];}
|
||||
elseif (isset($_POST["web_vars"])) {$web_vars=$_POST["web_vars"];}
|
||||
|
||||
|
||||
@@ -18,10 +18,11 @@
|
||||
# 110730-2339 - Added call_id variable
|
||||
# 120227-2017 - Added parsing of IGNORENOSCROLL option in script to force scroll
|
||||
# 130328-0013 - Converted ereg to preg functions
|
||||
# 130402-2255 - Added user_group variable
|
||||
#
|
||||
|
||||
$version = '2.6-12';
|
||||
$build = '130328-0013';
|
||||
$version = '2.6-13';
|
||||
$build = '130402-2255';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -191,6 +192,8 @@ if (isset($_GET["entry_list_id"])) {$entry_list_id=$_GET["entry_list_id"];}
|
||||
elseif (isset($_POST["entry_list_id"])) {$entry_list_id=$_POST["entry_list_id"];}
|
||||
if (isset($_GET["call_id"])) {$call_id=$_GET["call_id"];}
|
||||
elseif (isset($_POST["call_id"])) {$call_id=$_POST["call_id"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["web_vars"])) {$web_vars=$_GET["web_vars"];}
|
||||
elseif (isset($_POST["web_vars"])) {$web_vars=$_POST["web_vars"];}
|
||||
|
||||
@@ -481,6 +484,7 @@ $script_text = preg_replace('/--A--xfercallid--B--/i',"$xfercallid",$script_text
|
||||
$script_text = preg_replace('/--A--agent_log_id--B--/i',"$agent_log_id",$script_text);
|
||||
$script_text = preg_replace('/--A--entry_list_id--B--/i',"$entry_list_id",$script_text);
|
||||
$script_text = preg_replace('/--A--call_id--B--/i',"$call_id",$script_text);
|
||||
$script_text = preg_replace('/--A--user_group--B--/i',"$user_group",$script_text);
|
||||
$script_text = preg_replace('/--A--web_vars--B--/i',"$web_vars",$script_text);
|
||||
|
||||
if ($CF_uses_custom_fields=='Y')
|
||||
|
||||
+10
-4
@@ -397,10 +397,11 @@
|
||||
# 130328-0006 - Converted ereg to preg functions
|
||||
# 130328-0934 - Applied changes from Issue #655
|
||||
# 130328-1017 - Added validation for agent manual dial permission on DIAL links
|
||||
# 130402-2250 - Added user_group variable in scripts, forms and webforms
|
||||
#
|
||||
|
||||
$version = '2.6-365c';
|
||||
$build = '130328-1017';
|
||||
$version = '2.6-366c';
|
||||
$build = '130402-2250';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=79;
|
||||
$one_mysql_log=0;
|
||||
@@ -11578,6 +11579,7 @@ else
|
||||
"&agent_log_id=" + agent_log_id + '' +
|
||||
"&entry_list_id=" + document.vicidial_form.entry_list_id.value + '' +
|
||||
"&call_id=" + LasTCID + '' +
|
||||
"&user_group=" + VU_user_group + '' +
|
||||
"&web_vars=" + LIVE_web_vars + '' +
|
||||
webform_session;
|
||||
|
||||
@@ -11792,6 +11794,7 @@ else
|
||||
var SCclosecallid = closecallid;
|
||||
var SCxfercallid = xfercallid;
|
||||
var SCcall_id = LasTCID;
|
||||
var SCuser_group = VU_user_group;
|
||||
var SCagent_log_id = agent_log_id;
|
||||
var SCweb_vars = LIVE_web_vars;
|
||||
|
||||
@@ -11865,6 +11868,7 @@ else
|
||||
SCdid_pattern = SCdid_pattern.replace(RGplus,'+');
|
||||
SCdid_description = SCdid_description.replace(RGplus,'+');
|
||||
SCcall_id = SCcall_id.replace(RGplus,'+');
|
||||
SCuser_group = SCuser_group.replace(RGplus,'+');
|
||||
SCweb_vars = SCweb_vars.replace(RGplus,'+');
|
||||
}
|
||||
|
||||
@@ -11941,6 +11945,7 @@ else
|
||||
var RGxfercallid = new RegExp("--A--xfercallid--B--","g");
|
||||
var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g");
|
||||
var RGcall_id = new RegExp("--A--call_id--B--","g");
|
||||
var RGuser_group = new RegExp("--A--user_group--B--","g");
|
||||
var RGweb_vars = new RegExp("--A--web_vars--B--","g");
|
||||
|
||||
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
|
||||
@@ -12016,6 +12021,7 @@ else
|
||||
encoded = encoded.replace(RGxfercallid, SCxfercallid);
|
||||
encoded = encoded.replace(RGagent_log_id, SCagent_log_id);
|
||||
encoded = encoded.replace(RGcall_id, SCcall_id);
|
||||
encoded = encoded.replace(RGuser_group, SCuser_group);
|
||||
encoded = encoded.replace(RGweb_vars, SCweb_vars);
|
||||
}
|
||||
decoded=encoded; // simple no ?
|
||||
@@ -12805,7 +12811,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 + '' +"&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 + '' +"&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 = '';
|
||||
}
|
||||
@@ -12818,7 +12824,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=' + 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 + '' +"&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=' + 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 + '';
|
||||
form_list_id = '';
|
||||
form_entry_list_id = '';
|
||||
}
|
||||
|
||||
+11
-6
@@ -3234,12 +3234,13 @@ else
|
||||
# 130124-1721 - Added Inbound Email report link, added Status Display LEADID options(issue #639)
|
||||
# 130130-1207 - Added new CPD AMD options for In-Groups and CallMenus
|
||||
# 130221-1736 - Added Level 8 Disable Add option to system settings and new Email Log Report link, DID exten made non-editable
|
||||
# 130402-2322 - Added user_group script variable
|
||||
#
|
||||
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.6-395a';
|
||||
$build = '130221-1736';
|
||||
$admin_version = '2.6-396a';
|
||||
$build = '130402-2322';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -7177,10 +7178,10 @@ if ($ADD==99999)
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_scripts-script_text">
|
||||
<B>Script Text -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, phone_code, phone_number, title, first_name, middle_initial, last_name, address1, address2, address3, city, state, province, postal_code, country_code, gender, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id, dialed_number, dialed_label, rank, owner, camp_script, in_script, script_width, script_height, recording_filename, recording_id, user_custom_one, user_custom_two, user_custom_three, user_custom_four, user_custom_five, preset_number_a, preset_number_b, preset_number_c, preset_number_d, preset_number_e, preset_number_f, preset_dtmf_a, preset_dtmf_b, did_id, did_extension, did_pattern, did_description, closecallid, xfercallid, agent_log_id, entry_list_id, call_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
|
||||
<B>Script Text -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, phone_code, phone_number, title, first_name, middle_initial, last_name, address1, address2, address3, city, state, province, postal_code, country_code, gender, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id, dialed_number, dialed_label, rank, owner, camp_script, in_script, script_width, script_height, recording_filename, recording_id, user_custom_one, user_custom_two, user_custom_three, user_custom_four, user_custom_five, preset_number_a, preset_number_b, preset_number_c, preset_number_d, preset_number_e, preset_number_f, preset_dtmf_a, preset_dtmf_b, did_id, did_extension, did_pattern, did_description, closecallid, xfercallid, agent_log_id, entry_list_id, call_id, user_group. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
|
||||
|
||||
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
|
||||
<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&dialed_number=--A--dialed_number--B--&dialed_label=--A--dialed_label--B--&rank=--A--rank--B--&owner=--A--owner--B--&phone=--A--phone--B--&camp_script=--A--camp_script--B--&in_script=--A--in_script--B--&script_width=--A--script_width--B--&script_height=--A--script_height--B--&recording_filename=--A--recording_filename--B--&recording_id=--A--recording_id--B--&user_custom_one=--A--user_custom_one--B--&user_custom_two=--A--user_custom_two--B--&user_custom_three=--A--user_custom_three--B--&user_custom_four=--A--user_custom_four--B--&user_custom_five=--A--user_custom_five--B--&preset_number_a=--A--preset_number_a--B--&preset_number_b=--A--preset_number_b--B--&preset_number_c=--A--preset_number_c--B--&preset_number_d=--A--preset_number_d--B--&preset_number_e=--A--preset_number_e--B--&preset_number_f=--A--preset_number_f--B--&preset_dtmf_a=--A--preset_dtmf_a--B--&preset_dtmf_b=--A--preset_dtmf_b--B--&did_id=--A--did_id--B--&did_extension=--A--did_extension--B--&did_pattern=--A--did_pattern--B--&did_description=--A--did_description--B--&closecallid=--A--closecallid--B--&xfercallid=--A--xfercallid--B--&agent_log_id=--A--agent_log_id--B--&entry_list_id=--A--entry_list_id--B--&call_id=--A--call_id--B--&&" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290" STYLE="z-index:17">
|
||||
<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&dialed_number=--A--dialed_number--B--&dialed_label=--A--dialed_label--B--&rank=--A--rank--B--&owner=--A--owner--B--&phone=--A--phone--B--&camp_script=--A--camp_script--B--&in_script=--A--in_script--B--&script_width=--A--script_width--B--&script_height=--A--script_height--B--&recording_filename=--A--recording_filename--B--&recording_id=--A--recording_id--B--&user_custom_one=--A--user_custom_one--B--&user_custom_two=--A--user_custom_two--B--&user_custom_three=--A--user_custom_three--B--&user_custom_four=--A--user_custom_four--B--&user_custom_five=--A--user_custom_five--B--&preset_number_a=--A--preset_number_a--B--&preset_number_b=--A--preset_number_b--B--&preset_number_c=--A--preset_number_c--B--&preset_number_d=--A--preset_number_d--B--&preset_number_e=--A--preset_number_e--B--&preset_number_f=--A--preset_number_f--B--&preset_dtmf_a=--A--preset_dtmf_a--B--&preset_dtmf_b=--A--preset_dtmf_b--B--&did_id=--A--did_id--B--&did_extension=--A--did_extension--B--&did_pattern=--A--did_pattern--B--&did_description=--A--did_description--B--&closecallid=--A--closecallid--B--&xfercallid=--A--xfercallid--B--&agent_log_id=--A--agent_log_id--B--&entry_list_id=--A--entry_list_id--B--&call_id=--A--call_id--B--&&user_group=--A--user_group--B--&&" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290" STYLE="z-index:17">
|
||||
</iframe>
|
||||
</DIV>
|
||||
<BR>
|
||||
@@ -9229,6 +9230,7 @@ if ($ADD==7111111)
|
||||
$agent_log_id = 'agent_log_id';
|
||||
$entry_list_id = 'entry_list_id';
|
||||
$call_id = 'call_id';
|
||||
$user_group = 'user_group';
|
||||
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -9380,6 +9382,7 @@ if ($ADD==7111111)
|
||||
$script_text = eregi_replace('--A--agent_log_id--B--',"$agent_log_id",$script_text);
|
||||
$script_text = eregi_replace('--A--entry_list_id--B--',"$entry_list_id",$script_text);
|
||||
$script_text = eregi_replace('--A--call_id--B--',"$call_id",$script_text);
|
||||
$script_text = eregi_replace('--A--user_group--B--',"$user_group",$script_text);
|
||||
$script_text = eregi_replace("\n","<BR>",$script_text);
|
||||
|
||||
|
||||
@@ -10731,7 +10734,7 @@ if ($ADD==1111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Script Text: </td><td align=left>";
|
||||
# BEGIN Insert Field
|
||||
echo "<select id=\"selectedField\" name=\"selectedField\">";
|
||||
echo "<option value=\"fullname\">Agent Name</option>";
|
||||
echo "<option value=\"fullname\">Agent Name(fullname)</option>";
|
||||
echo "<option>vendor_lead_code</option>";
|
||||
echo "<option>source_id</option>";
|
||||
echo "<option>list_id</option>";
|
||||
@@ -10803,6 +10806,7 @@ if ($ADD==1111111)
|
||||
echo "<option>agent_log_id</option>";
|
||||
echo "<option>entry_list_id</option>";
|
||||
echo "<option>call_id</option>";
|
||||
echo "<option>user_group</option>";
|
||||
echo "</select>";
|
||||
echo "<input type=\"button\" name=\"insertField\" value=\"Insert\" onClick=\"scriptInsertField();\"><BR>";
|
||||
# END Insert Field
|
||||
@@ -29807,7 +29811,7 @@ if ($ADD==3111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Script Text: <BR><BR><B><a href=\"javascript:openNewWindow('$PHP_SELF?ADD=7111111&script_id=$script_id')\">Preview Script</a></B> </td><td align=left>";
|
||||
# BEGIN Insert Field
|
||||
echo "<select id=\"selectedField\" name=\"selectedField\">";
|
||||
echo "<option value=\"fullname\">Agent Name</option>";
|
||||
echo "<option value=\"fullname\">Agent Name(fullname)</option>";
|
||||
echo "<option>vendor_lead_code</option>";
|
||||
echo "<option>source_id</option>";
|
||||
echo "<option>list_id</option>";
|
||||
@@ -29879,6 +29883,7 @@ if ($ADD==3111111)
|
||||
echo "<option>agent_log_id</option>";
|
||||
echo "<option>entry_list_id</option>";
|
||||
echo "<option>call_id</option>";
|
||||
echo "<option>user_group</option>";
|
||||
echo "</select>";
|
||||
echo "<input type=\"button\" name=\"insertField\" value=\"Insert\" onClick=\"scriptInsertField();\"><BR>";
|
||||
# END Insert Field
|
||||
|
||||
Reference in New Issue
Block a user