From 2b6def40a778bf312d388f6c4bc5e80b487263dd Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 12 Feb 2018 21:41:03 +0000 Subject: [PATCH] Added callback_datetime as dispo call url variable small fix to cached stats in AST_VDadapt.pl script git-svn-id: svn://192.168.202.10@2913 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_VDadapt.pl | 2 +- agc_2-X/trunk/docs/CALL_URL_FEATURES.txt | 11 ++++++----- agc_2-X/trunk/www/agc/vdc_db_query.php | 6 ++++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_VDadapt.pl b/agc_2-X/trunk/bin/AST_VDadapt.pl index e3a9b960..efa3f260 100644 --- a/agc_2-X/trunk/bin/AST_VDadapt.pl +++ b/agc_2-X/trunk/bin/AST_VDadapt.pl @@ -5462,7 +5462,7 @@ sub calculate_drops_inbound {$update_SQL .= ",max_agents='$itotal_agents[$p]'";} if ($STATSmax_remote_agents < $itotal_remote_agents[$p]) {$update_SQL .= ",max_remote_agents='$itotal_remote_agents[$p]'";} - if ($STATStotal_calls < $iVCScalls_today[$p]) + if ($STATStotal_calls != $iVCScalls_today[$p]) {$update_SQL .= ",total_calls='$iVCScalls_today[$p]'";} if (length($update_SQL) > 5) { diff --git a/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt b/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt index 2895dfd7..1a76388f 100644 --- a/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt +++ b/agc_2-X/trunk/docs/CALL_URL_FEATURES.txt @@ -23,11 +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, 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 +dispo, talk_time, call_notes, callback_lead_status and callback_datetime are the +extra variables you can use with this specific function. 'dispo' is the actual +agent-defined status disposition for the call, callback_lead_status is the +agent-selected status when a scheduled callback status has been selected by the +agent, and callback_datetime is the agent selected date and time for a callback. +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 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 9c22a975..fb387761 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -447,10 +447,11 @@ # 180131-1116 - Fixed ereg issue # 180204-1651 - Added update for inbound callback queue functionality # 180210-0707 - Fix for callback list issue #1062 +# 180212-0654 - Added callback_datetime as dispo call url variable # -$version = '2.14-341'; -$build = '180210-0707'; +$version = '2.14-342'; +$build = '180212-0654'; $php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=709; @@ -12780,6 +12781,7 @@ if ($ACTION == 'updateDISPO') $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]); + $dispo_call_urlARY[$j] = preg_replace('/--A--callback_datetime--B--/i',urlencode(trim($CallBackDatETimE)),$dispo_call_urlARY[$j]); $dispo_call_urlARY[$j] = preg_replace('/--A--called_count--B--/i',"$called_count",$dispo_call_urlARY[$j]);