From b887de658772c4fa2fb983070ce3b7c2bcf3ca8b Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 6 Mar 2010 13:53:54 +0000 Subject: [PATCH] added options.php optional file to allow changes to agent interface options to survive upgrades updated UPGRADE docs git-svn-id: svn://192.168.202.10@1363 3d104415-ff17-0410-8863-d5cf3c621b8a --- UPGRADE | 22 +++++++++ www/agc/options-example.php | 49 ++++++++++++++++++++ www/agc/vicidial.php | 89 +++++++++++++++++++------------------ 3 files changed, 117 insertions(+), 43 deletions(-) create mode 100644 www/agc/options-example.php diff --git a/UPGRADE b/UPGRADE index b632ea77..6d45a783 100644 --- a/UPGRADE +++ b/UPGRADE @@ -57,6 +57,28 @@ OTHER CHANGES: user also uses that phone entry to login to vicidial.php that password will be changed as well +10. Changed AGENTDIRECT selection to be triggered by clicking on AGENTS link + instead of number-to-dial field + +11. Reformatted lead search page and added first and last name search options + +12. Added 3-WAY status to the Real-time report to show when agents are in + consultative transfer sessions + +13. Added AGENTONLY Scheduled Callbacks display options to allow the Callbacks + link line in the agent interface to show as red and/or blink + +14. Added carrier log display option to Real-time report to show the hangup + causes for the last 24/6/1 hours and 15/5/1 minutes of outbound calls + +15. Added agc/deactivate_lead.php script that can change the status of a lead in + another campaign with the same vendor_lead_code, source_id or other + field match. See the file comments for more information + +16. Added options.php for vicidial.php to give you the ability to change the + interface options in a separate file so that they can be preserved + through an upgrade. See options-example.php for more information + diff --git a/www/agc/options-example.php b/www/agc/options-example.php new file mode 100644 index 00000000..bf4cf9ee --- /dev/null +++ b/www/agc/options-example.php @@ -0,0 +1,49 @@ + LICENSE: AGPLv2 +# +# rename this file to options.php for the settings here to go into effect +# +# CHANGELOG +# 100306-0805 - First Build +# + +$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording +$dtmf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently +$HKuser_level = '5'; # minimum vicidial user_level for HotKeys +$campaign_login_list = '1'; # show drop-down list of campaigns at login +$manual_dial_preview = '1'; # allow preview lead option when manual dial +$multi_line_comments = '1'; # set to 1 to allow multi-line comment box +$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login +$view_scripts = '1'; # set to 1 to show the SCRIPTS tab +$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo +$callholdstatus = '1'; # set to 1 to show calls on hold count +$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count + $campagentstatctmax = '3'; # Number of seconds for campaign call and agent stats +$show_campname_pulldown = '1'; # set to 1 to show campaign name on login pulldown +$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL +$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server +$clientDST = '1'; # set to 1 to check for DST on server for agent time +$no_delete_sessions = '1'; # set to 1 to not delete sessions at logout +$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels +$PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets +$LogiNAJAX = '1'; # set to 1 to do lookups on campaigns for login +$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls" +$hangup_all_non_reserved= '1'; # set to 1 to force hangup all non-reserved channels upon Hangup Customer +$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout +$PhonESComPIP = '1'; # set to 1 to log computer IP to phone if blank, set to 2 to force log each login +$DefaulTAlTDiaL = '0'; # set to 1 to enable ALT DIAL by default if enabled for the campaign +$AgentAlert_allowed = '1'; # set to 1 to allow Agent alert option +$disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from the in-group chooser screen + +$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen + +$stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window +$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500 +$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770 +$MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6 +$SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0 +$SIDEBAR_COLOR = '#F6F6F6'; + +?> diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 76a10d68..42041d64 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -280,10 +280,11 @@ # 100221-1107 - Added Custom CID compatibility # 100301-1330 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # 100302-2145 - Added scheduled callbacks alert feature +# 100306-0852 - Added options.php optional file for setting interface options that will survive upgrade # -$version = '2.4-258'; -$build = '100302-2145'; +$version = '2.4-259'; +$build = '100306-0852'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -392,48 +393,50 @@ if ($qm_conf_ct > 0) ##### DEFINABLE SETTINGS AND OPTIONS ########################################### -$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording -$dtmf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently -$HKuser_level = '5'; # minimum vicidial user_level for HotKeys -$campaign_login_list = '1'; # show drop-down list of campaigns at login -$manual_dial_preview = '1'; # allow preview lead option when manual dial -$multi_line_comments = '1'; # set to 1 to allow multi-line comment box -$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login -$view_scripts = '1'; # set to 1 to show the SCRIPTS tab -$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo -$callholdstatus = '1'; # set to 1 to show calls on hold count -$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count - $campagentstatctmax = '3'; # Number of seconds for campaign call and agent stats -$show_campname_pulldown = '1'; # set to 1 to show campaign name on login pulldown -$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL -$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server -$clientDST = '1'; # set to 1 to check for DST on server for agent time -$no_delete_sessions = '1'; # set to 1 to not delete sessions at logout -$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels -$PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets -$LogiNAJAX = '1'; # set to 1 to do lookups on campaigns for login -$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls" -$hangup_all_non_reserved= '1'; # set to 1 to force hangup all non-reserved channels upon Hangup Customer -$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout -$PhonESComPIP = '1'; # set to 1 to log computer IP to phone if blank, set to 2 to force log each login -$DefaulTAlTDiaL = '0'; # set to 1 to enable ALT DIAL by default if enabled for the campaign -$AgentAlert_allowed = '1'; # set to 1 to allow Agent alert option -$disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from the in-group chooser screen -$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen +if (file_exists('options.php')) + { + require('options.php'); + } +else + { + $conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording + $dtmf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently + $HKuser_level = '5'; # minimum vicidial user_level for HotKeys + $campaign_login_list = '1'; # show drop-down list of campaigns at login + $manual_dial_preview = '1'; # allow preview lead option when manual dial + $multi_line_comments = '1'; # set to 1 to allow multi-line comment box + $user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login + $view_scripts = '1'; # set to 1 to show the SCRIPTS tab + $dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo + $callholdstatus = '1'; # set to 1 to show calls on hold count + $agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count + $campagentstatctmax = '3'; # Number of seconds for campaign call and agent stats + $show_campname_pulldown = '1'; # set to 1 to show campaign name on login pulldown + $webform_sessionname = '1'; # set to 1 to include the session_name in webform URL + $local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server + $clientDST = '1'; # set to 1 to check for DST on server for agent time + $no_delete_sessions = '1'; # set to 1 to not delete sessions at logout + $volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels + $PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets + $LogiNAJAX = '1'; # set to 1 to do lookups on campaigns for login + $HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls" + $hangup_all_non_reserved= '1'; # set to 1 to force hangup all non-reserved channels upon Hangup Customer + $LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout + $PhonESComPIP = '1'; # set to 1 to log computer IP to phone if blank, set to 2 to force log each login + $DefaulTAlTDiaL = '0'; # set to 1 to enable ALT DIAL by default if enabled for the campaign + $AgentAlert_allowed = '1'; # set to 1 to allow Agent alert option + $disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from the in-group chooser screen -$stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window -$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500 -$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770 -$MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6 -$SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0 -$SIDEBAR_COLOR = '#F6F6F6'; + $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen -# options now set in DB: -#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers -#$scheduled_callbacks = '1'; # set to 1 to allow agent to choose scheduled callbacks -# $agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks -#$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session + $stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window + $BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500 + $BROWSER_WIDTH = 770; # set to the minimum browser width, default=770 + $MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6 + $SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0 + $SIDEBAR_COLOR = '#F6F6F6'; + } $US='_'; @@ -2015,7 +2018,7 @@ else $b64_protocol = base64_encode($protocol); $WebPhonEurl = "$webphone_url?phone_login=$b64_phone_login&phone_login=$b64_phone_login&phone_pass=$b64_phone_pass&server_ip=$b64_server_ip&callerid=$b64_callerid&protocol=$b64_protocol"; - $webphone_content = ""; + $webphone_content = ""; } ##### grab the campaign_weight and number of calls today on that campaign for the agent @@ -10104,7 +10107,7 @@ else } if ( (VtigeRLogiNScripT == 'Y') && (VtigeREnableD > 0) ) { - document.getElementById("ScriptContents").innerHTML = " "; + document.getElementById("ScriptContents").innerHTML = " "; } if ( (VtigeRLogiNScripT == 'NEW_WINDOW') && (VtigeREnableD > 0) ) {