From 2460e17bf5bd47246cc80832b027cda429b6ad54 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 11 May 2016 00:49:17 +0000 Subject: [PATCH] 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 --- agc_2-X/trunk/docs/CALL_URL_FEATURES.txt | 10 ++++---- agc_2-X/trunk/www/agc/vdc_db_query.php | 6 +++-- agc_2-X/trunk/www/vicidial/help.php | 2 +- .../trunk/www/vicidial/lead_report_export.php | 24 +++++++++++++++++++ 4 files changed, 35 insertions(+), 7 deletions(-) diff --git a/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt b/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt index 95bac3d6..2895dfd7 100644 --- a/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt +++ b/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt @@ -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 diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 6dd01f69..d813e666 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -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) { diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index 503d8a7e..7c2b62cc 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -1902,7 +1902,7 @@ if ($SSqc_features_active > 0)

- - + -
diff --git a/agc_2-X/trunk/www/vicidial/lead_report_export.php b/agc_2-X/trunk/www/vicidial/lead_report_export.php index b57279ac..f65fd86c 100644 --- a/agc_2-X/trunk/www/vicidial/lead_report_export.php +++ b/agc_2-X/trunk/www/vicidial/lead_report_export.php @@ -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 0) while ($recordings_ct > $u) { $row=mysqli_fetch_row($rslt); + + ### PARSE TAB CHARACTERS FROM THE DATA ITSELF + for ($t=0; $t 0) if ($vle_ct > 0) { $row=mysqli_fetch_row($rslt); + ### PARSE TAB CHARACTERS FROM THE DATA ITSELF + for ($t=0; $t 0) if ($vcarl_ct > 0) { $row=mysqli_fetch_row($rslt); + ### PARSE TAB CHARACTERS FROM THE DATA ITSELF + for ($t=0; $t 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);