Added callback_lead_status as dispo_call_url variable, Issue #954
Added coding to remove tab characters from the data, Issue #953 git-svn-id: svn://192.168.202.10@2531 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -23,10 +23,12 @@ dial calls. Default is blank.
|
||||
Dispo Call URL - This web URL address is not seen by the agent, but it
|
||||
is called every time a call is dispositioned by an agent if it is
|
||||
populated. Uses the same variables as the web form fields and scripts.
|
||||
dispo, talk_time and call_notes are the variables you can use to retrieve the
|
||||
agent-defined disposition for the call and the actual talk time in
|
||||
seconds of the call. This URL can NOT be a relative path. Default is
|
||||
blank.
|
||||
dispo, talk_time, call_notes and callback_lead_status are the extra variables
|
||||
you can use with this specific function. 'dispo' is the actual agent-defined
|
||||
status disposition for the call, and callback_lead_status is the agent-selected
|
||||
status when a scheduled callback status has been selected by the agent. The
|
||||
actual talk time in seconds of the call is talk_time. This URL can NOT be a
|
||||
relative path. It is always called from the webserver. Default is blank.
|
||||
|
||||
Add Lead URL - This web URL address is not seen by the agent, but it is called
|
||||
every time a lead is added to the system through the inbound process. Default
|
||||
|
||||
@@ -405,10 +405,11 @@
|
||||
# 160326-1002 - Fixed issue #934, phone_login
|
||||
# 160331-2130 - Fixed missing start and dispo call url variables, issue #938
|
||||
# 160414-0944 - Added default_phone_code value instead of hard-coded '1'
|
||||
# 160510-0840 - Added callback_lead_status as dispo_call_url variable
|
||||
#
|
||||
|
||||
$version = '2.12-299';
|
||||
$build = '160414-0944';
|
||||
$version = '2.12-300';
|
||||
$build = '160510-0840';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=654;
|
||||
@@ -11440,6 +11441,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--did_custom_four--B--/i',urlencode(trim($DID_custom_four)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--did_custom_five--B--/i',urlencode(trim($DID_custom_five)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--callback_lead_status--B--/i',urlencode(trim($CallBackLeadStatus)),$dispo_call_urlARY[$j]);
|
||||
|
||||
if (strlen($FORMcustom_field_names)>2)
|
||||
{
|
||||
|
||||
@@ -1902,7 +1902,7 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<A NAME="campaigns-dispo_call_url">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Dispo Call URL"); ?> -</B><?php echo _QXZ("This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo and talk_time are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call. This URL can NOT be a relative path. Default is blank.") . " " . _QXZ("If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them."); ?>
|
||||
<B><?php echo _QXZ("Dispo Call URL"); ?> -</B><?php echo _QXZ("This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo, callback_lead_status and talk_time are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call. This URL can NOT be a relative path. Default is blank.") . " " . _QXZ("If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-na_call_url">
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
# 150903-1539 - Added compatibility for custom fields data options
|
||||
# 150909-0749 - Fixed issues with translated select list values, issue #885
|
||||
# 160420-1407 - Added archive search options
|
||||
# 160509-2155 - Added coding to remove tab characters from the data
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -551,6 +552,11 @@ if ($run_export > 0)
|
||||
{$data_temp = $row[28]; $row[28] = preg_replace("/./",'X',$data_temp);}
|
||||
}
|
||||
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
for ($t=0; $t<count($row); $t++){
|
||||
$row[$t]=preg_replace('/\t/', ' -- ', $row[$t]);
|
||||
}
|
||||
|
||||
$export_fieldsDATA='';
|
||||
if ($export_fields == 'EXTENDED')
|
||||
{$export_fieldsDATA = "$row[39]\t$row[40]\t$row[41]\t$row[42]\t$row[43]\t";}
|
||||
@@ -724,6 +730,12 @@ if ($run_export > 0)
|
||||
while ($recordings_ct > $u)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
for ($t=0; $t<count($row); $t++){
|
||||
$row[$t]=preg_replace('/\t/', ' -- ', $row[$t]);
|
||||
}
|
||||
|
||||
$rec_id .= "$row[0]|";
|
||||
$rec_filename .= "$row[1]|";
|
||||
$rec_location .= "$row[2]|";
|
||||
@@ -761,6 +773,10 @@ if ($run_export > 0)
|
||||
if ($vle_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
for ($t=0; $t<count($row); $t++){
|
||||
$row[$t]=preg_replace('/\t/', ' -- ', $row[$t]);
|
||||
}
|
||||
$extended_data_a = "\t$row[0]\t$row[1]";
|
||||
$export_call_id[$i] = $row[0];
|
||||
}
|
||||
@@ -772,6 +788,10 @@ if ($run_export > 0)
|
||||
if ($vcarl_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
for ($t=0; $t<count($row); $t++){
|
||||
$row[$t]=preg_replace('/\t/', ' -- ', $row[$t]);
|
||||
}
|
||||
$extended_data_b = "\t$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]";
|
||||
}
|
||||
|
||||
@@ -782,6 +802,8 @@ if ($run_export > 0)
|
||||
if ($vcpdl_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
$row[0]=preg_replace('/\t/', ' -- ', $row[0]);
|
||||
$extended_data_c = "\t$row[0]";
|
||||
}
|
||||
|
||||
@@ -807,6 +829,8 @@ if ($run_export > 0)
|
||||
if ($notes_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### PARSE TAB CHARACTERS FROM THE DATA ITSELF
|
||||
$row[0]=preg_replace('/\t/', ' -- ', $row[0]);
|
||||
$notes_data = $row[0];
|
||||
}
|
||||
$notes_data = preg_replace("/\r\n/",' ',$notes_data);
|
||||
|
||||
Reference in New Issue
Block a user