From f42e7d72137358cac1d87b5ad4c475e8406380f0 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 17 Mar 2011 02:31:53 +0000 Subject: [PATCH] Added Agent, Carrier and Preset options.php settings for realtime report git-svn-id: svn://192.168.202.10@1625 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/options-example.php | 3 +++ www/vicidial/realtime_report.php | 21 +++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/www/vicidial/options-example.php b/www/vicidial/options-example.php index dfc0a903..0f9ae711 100644 --- a/www/vicidial/options-example.php +++ b/www/vicidial/options-example.php @@ -44,6 +44,9 @@ $RS_PHONEdisplay = 0; # 0=no, 1=yes $RS_CUSTPHONEdisplay = 0; # 0=no, 1=yes $RS_PAUSEcodes = 'N'; $RS_with_inbound = 'Y'; +$RS_CARRIERstats = 0; # 0=no, 1=yes +$RS_PRESETstats = 0; # 0=no, 1=yes +$RS_AGENTtimeSTATS = 0; # 0=no, 1=yes # used by agent reports $user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change diff --git a/www/vicidial/realtime_report.php b/www/vicidial/realtime_report.php index 67bb79d6..5c69d053 100644 --- a/www/vicidial/realtime_report.php +++ b/www/vicidial/realtime_report.php @@ -16,10 +16,11 @@ # 110111-1557 - Added options.php options, minor bug fixes # 110113-1736 - Small fix # 110303-2124 - Added agent on-hook phone indication and RING status and color +# 110316-2216 - Added Agent, Carrier and Preset options.php settings # -$version = '2.4-5'; -$build = '110303-2124'; +$version = '2.4-6'; +$build = '110316-2216'; header ("Content-type: text/html; charset=utf-8"); @@ -200,6 +201,22 @@ if (!isset($with_inbound)) } else {$with_inbound = $RS_with_inbound;} } +if (!isset($CARRIERstats)) + { + if (!isset($RS_CARRIERstats)) {$CARRIERstats='0';} + else {$CARRIERstats = $RS_CARRIERstats;} + } +if (!isset($PRESETstats)) + { + if (!isset($RS_PRESETstats)) {$PRESETstats='0';} + else {$PRESETstats = $RS_PRESETstats;} + } +if (!isset($AGENTtimeSTATS)) + { + if (!isset($RS_AGENTtimeSTATS)) {$AGENTtimeSTATS='0';} + else {$AGENTtimeSTATS = $RS_AGENTtimeSTATS;} + } + $ingroup_detail=''; if ( (strlen($group)>1) and (strlen($groups[0])<1) ) {$groups[0] = $group;}