From 70dc488e861d0d671d9a6022b1ef3aa7f91b2717 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 30 Nov 2012 12:46:39 +0000 Subject: [PATCH] Added call notes option to dispo call url, issue #611, reported by abostick git-svn-id: svn://192.168.202.10@1894 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/CALL_URL_FEATURES.txt | 2 +- www/agc/vdc_db_query.php | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/CALL_URL_FEATURES.txt b/docs/CALL_URL_FEATURES.txt index d963b6f4..57a96fde 100644 --- a/docs/CALL_URL_FEATURES.txt +++ b/docs/CALL_URL_FEATURES.txt @@ -23,7 +23,7 @@ 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 and talk_time are the variables you can use to retrieve the +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. diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index a4a0d9a4..f991e293 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -318,10 +318,11 @@ # 121116-1409 - Added QC functionality # 121120-0838 - Added QM socket-send functionality # 121124-2357 - Added Other Campaign DNC option +# 121130-0740 - Added call notes option to dispo call url # -$version = '2.6-216'; -$build = '121124-2357'; +$version = '2.6-217'; +$build = '121130-0740'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=446; $one_mysql_log=0; @@ -7419,6 +7420,13 @@ if ($ACTION == 'updateDISPO') } $dispo_name = urlencode(trim($status_name)); + if (eregi('--A--call_notes',$dispo_call_url)) + { + if (strlen($call_notes) > 1) + {$url_call_notes = urlencode(trim($call_notes));} + else + {$url_call_notes = urlencode(" ");} + } if (eregi('--A--dialed_',$dispo_call_url)) { @@ -7608,6 +7616,7 @@ if ($ACTION == 'updateDISPO') $dispo_call_url = eregi_replace('--A--closecallid--B--',urlencode(trim($INclosecallid)),$dispo_call_url); $dispo_call_url = eregi_replace('--A--xfercallid--B--',urlencode(trim($INxfercallid)),$dispo_call_url); $dispo_call_url = eregi_replace('--A--call_id--B--',urlencode(trim($MDnextCID)),$dispo_call_url); + $dispo_call_url = eregi_replace('--A--call_notes--B--',"$url_call_notes",$dispo_call_url); if (strlen($FORMcustom_field_names)>2) {