Added User Location to the Modify User page. Also added Queue Groups Admin pages, allowing you to define multiple campaigns and/or in-groups in a single Queue Group to be used in some reports.

git-svn-id: svn://192.168.202.10@3543 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-12-09 06:42:28 +00:00
parent 72e16ead6e
commit 4db3b9ff1e
8 changed files with 557 additions and 12 deletions
+4
View File
@@ -697,6 +697,10 @@ OTHER CHANGES:
194. Added MIN LENGTH to the Dispo Call URL ALT admin screen, allowing for a
minimum call time threshold before a Dispo Call URL will trigger.
195. Added User Location to the Modify User page. Also added Queue Groups Admin
pages, allowing you to define multiple campaigns and/or in-groups in a
single Queue Group to be used in some reports.
+13 -2
View File
@@ -691,7 +691,8 @@ max_inbound_filter_min_sec SMALLINT(5) default '-1',
status_group_id VARCHAR(20) default '',
mobile_number VARCHAR(20) default '',
two_factor_override ENUM('NOT_ACTIVE','ENABLED','DISABLED') default 'NOT_ACTIVE',
manual_dial_filter VARCHAR(50) default 'DISABLED'
manual_dial_filter VARCHAR(50) default 'DISABLED',
user_location VARCHAR(100) default ''
) ENGINE=MyISAM;
CREATE UNIQUE INDEX user ON vicidial_users (user);
@@ -4685,6 +4686,15 @@ index (call_date),
unique index cicc_cd (caller_code, uniqueid)
) ENGINE=MyISAM;
CREATE TABLE vicidial_queue_groups (
queue_group VARCHAR(20) NOT NULL,
queue_group_name VARCHAR(40) NOT NULL,
included_campaigns TEXT,
included_inbound_groups TEXT,
user_group VARCHAR(20) default '---ALL---',
active ENUM('Y','N')
) ENGINE=MyISAM;
ALTER TABLE vicidial_email_list MODIFY message text character set utf8;
@@ -5026,7 +5036,8 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('PHONE_DEFAULTS','Default phone settings for preloading','PHONE_DEFAULTS','---ALL---','# Below are all phone settings recognized under the PHONE_DEFAULTS \r\n# container type and the type of data each accepts. Any setting that\r\n# uses a default value in the database has said value pre-set below\r\n\r\n# 10 char max\r\nvoicemail_id => \r\n \r\n# 15 char max\r\nserver_ip => \r\n\r\n# 100 char max\r\npass => \r\n\r\n# 10 char max\r\nstatus => \r\n\r\n# Y/N only\r\nactive => Y\r\n\r\n# 50 char max\r\nphone_type => \r\n\r\n# \'SIP\',\'Zap\',\'IAX2\' or \'EXTERNAL\'\r\nprotocol => SIP\r\n\r\n# positive or negatier 2-decimal floating point number\r\nlocal_gmt => -5.00\r\n\r\n# 20 char max\r\nvoicemail_dump_exten => 85026666666666\r\n\r\n# 20 char max\r\noutbound_cid => \r\n\r\n# 100 char max\r\nemail => \r\n\r\n# 15 char max\r\ntemplate_id => \r\n\r\n# text, conf_override can span multiple lines, see below\r\nconf_override => \r\n# type=friend\r\n# host=dynamic\r\n# canreinvite=no\r\n# context=default1\r\n\r\n# 50 char max\r\nphone_context => default\r\n\r\n# Unsigned - max value 65536\r\nphone_ring_timeout => 60\r\n\r\n# 20 char max\r\nconf_secret => test\r\n\r\n# Y/N only\r\ndelete_vm_after_email => N\r\n\r\n# Options - Y, N, or Y_API_LAUNCH\r\nis_webphone => N\r\n\r\n# Y/N only\r\nuse_external_server_ip => N\r\n\r\n# 100 char max\r\ncodecs_list => \r\n\r\n# 0/1 only\r\ncodecs_with_template => 0\r\n\r\n# Options - Y, N, TOGGLE, or TOGGLE_OFF\r\nwebphone_dialpad => Y\r\n\r\n# Y/N only\r\non_hook_agent => N\r\n\r\n# Y/N only\r\nwebphone_auto_answer => Y\r\n\r\n# 30 char max\r\nvoicemail_timezone => eastern\r\n\r\n# 255 char max\r\nvoicemail_options => \r\n\r\n# 20 char max\r\nuser_group => ---ALL---\r\n\r\n# 100 char max\r\nvoicemail_greeting => \r\n\r\n# 20 char max\r\nvoicemail_dump_exten_no_inst => 85026666666667\r\n\r\n# Y/N only\r\nvoicemail_instructions => Y\r\n\r\n# Y/N only\r\non_login_report => N\r\n\r\n# 40 char max\r\nunavail_dialplan_fwd_exten => \r\n\r\n# 100 char max\r\nunavail_dialplan_fwd_context => \r\n\r\n# text\r\nnva_call_url => \r\n\r\n# 40 char max\r\nnva_search_method => \r\n\r\n# 255 char max\r\nnva_error_filename => \r\n\r\n# Integer, any size\r\nnva_new_list_id => 995\r\n\r\n# 10 char max\r\nnva_new_phone_code => 1\r\n\r\n# 6 char max\r\nnva_new_status => NVAINS\r\n\r\n# Y/N only\r\nwebphone_dialbox => Y\r\n\r\n# Y/N only\r\nwebphone_mute => Y\r\n\r\n# Y/N only\r\nwebphone_volume => Y\r\n\r\n# Y/N only\r\nwebphone_debug => N\r\n\r\n# 20 char max\r\noutbound_alt_cid => \r\n\r\n# Y/N only\r\nconf_qualify => Y\r\n\r\n# 255 char max\r\nwebphone_layout => \r\n');
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('QC_STATUS_TEMPLATE','Sample QC Status Template','QC_TEMPLATE','---ALL---','# These types of containers are simply used for creating a list of \r\n# QC-enabled statuses to apply to campaigns, lists, and ingroups.\r\n# Simply put all the statuses that this template should allow in\r\n# a comma-delimited string, as below:\r\n\r\nSALE,DNC,NI');
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('INTERNATIONAL_DNC_IMPORT','Process DNC lists of various countries from FTP site','PERL_CLI','---ALL---','# This setting container is used for the international DNC system. \r\n# The below two settings are mandatory for importing suppression lists\r\n# and tell the import process where to look for new files and where to\r\n# move them when handled. These settings cannot have the same value. \r\n--file-dir=/root/ftp\r\n--file-destination=/root/ftp/DONE\r\n\r\n# Uncomment below and set the status to whatever custom disposition you \r\n# would like already-loaded leads to be set to when they dedupe against\r\n# a country\'s DNC list (default is \"DNCI\")\r\n# --dnc-status-override=BMNR\r\n\r\n# The below settings are optional for when files are stored on a remote\r\n# server. It is strongly recommended these settings are not used and\r\n# that the processing scripts and files are stored locally on the same\r\n# server. \r\n# --ftp-host=localhost\r\n# --ftp-user=user\r\n# --ftp-pwd=pwd\r\n# --ftp-port=21\r\n# --ftp-passive=1\r\n'),('DNC_IMPORT_FORMATS','Import formats for DNC files','OTHER','---ALL---','# This setting container is used for storing file formats used when \r\n# loading DNC suppression lists into the dialer. \r\n#\r\n# import template => (delimited|fixed),delimiter,phone1(,phone2,phone3)\r\n#\r\n# For delimited files, the phone1 value should be the index value of\r\n# the field where the phone appears. The first array index is 0 and\r\n# indexes continue through the natural numbers.\r\n\r\n# In delimited files, acceptable values for the \"delimiter\" field are:\r\n# - \"tab\", \"pipe\", \"comma\", \"quote-comma\"\r\nBASIC_DELIMITED_FORMAT => delimited,pipe,0\r\n\r\n# If the phone number is split into multiple fields (ex: area code in\r\n# one field, rest of the number in another), simply list additional \r\n# indices of the phone number fields separated by commas in the order \r\n# in which the data should be combined to make the complete phone \r\n# number \r\nDELIMITED_WITH_AC_AND_EXCHANGE_SPLIT => delimited,tab,0,1\r\n\r\n# For fixed-length files, the phone field values should be of the type:\r\n# - \"starting_position|length\"\r\nBASIC_FIXED_FORMAT => fixed,,0|10\r\n\r\n# (delimited|fixed) is not used for CSV/Excel files, so all that needs \r\n# providing for those is the index field value(s) of the phone number\r\nBASIC_CSV_OR_EXCEL_FORMAT => ,,0'),('DNC_CURRENT_BLOCKED_LISTS','Lists currently blocked due to pending DNC scrub','READ_ONLY','---ALL---','');
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('USER_LOCATIONS_SYSTEM','User Locations List','OTHER','---ALL---',';location|description\n|default\n');
UPDATE system_settings set vdc_agent_api_active='1';
UPDATE system_settings SET db_schema_version='1648',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1649',db_schema_update_date=NOW(),reload_timestamp=NOW();
+15
View File
@@ -1835,3 +1835,18 @@ UPDATE system_settings SET db_schema_version='1647',db_schema_update_date=NOW()
ALTER TABLE vicidial_url_multi ADD url_call_length SMALLINT(5) default '0';
UPDATE system_settings SET db_schema_version='1648',db_schema_update_date=NOW() where db_schema_version < 1648;
ALTER TABLE vicidial_users ADD user_location VARCHAR(100) default '';
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('USER_LOCATIONS_SYSTEM','User Locations List','OTHER','---ALL---',';location|description\n|default\n');
CREATE TABLE vicidial_queue_groups (
queue_group VARCHAR(20) NOT NULL,
queue_group_name VARCHAR(40) NOT NULL,
included_campaigns TEXT,
included_inbound_groups TEXT,
user_group VARCHAR(20) default '---ALL---',
active ENUM('Y','N')
) ENGINE=MyISAM;
UPDATE system_settings SET db_schema_version='1649',db_schema_update_date=NOW() where db_schema_version < 1649;
+510 -9
View File
File diff suppressed because one or more lines are too long
+12
View File
@@ -89,6 +89,7 @@
# 210306-0902 - Changes for new QC module
# 210707-0730 - Added header links for timezones, phone codes and postal codes
# 210907-1904 - Added new OWNERCUSTOMx handle methods for menu options
# 211208-1920 - Added Queue Groups to admin sidebar and sub-menu
#
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists from system_settings;";
@@ -2334,6 +2335,7 @@ if ($subcamp_font_size < 4) {$subcamp_font_size='11';}
$sg_sh="CLASS=\"subhead_style\"";
$cg_sh="CLASS=\"subhead_style\"";
$vmmg_sh="CLASS=\"subhead_style\"";
$qg_sh="CLASS=\"subhead_style\"";
$emails_sh="CLASS=\"subhead_style\"";
$ar_sh="CLASS=\"subhead_style\"";
$il_sh="CLASS=\"subhead_style\"";
@@ -2361,6 +2363,7 @@ if ($subcamp_font_size < 4) {$subcamp_font_size='11';}
if ($sh=='sg') {$sg_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='cg') {$cg_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='vmmg') {$vmmg_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='qg') {$qg_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='emails') {$emails_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='ar') {$ar_sh="CLASS=\"subhead_style_selected\"";}
if ($sh=='il') {$il_sh="CLASS=\"subhead_style_selected\"";}
@@ -2483,6 +2486,11 @@ if ($subcamp_font_size < 4) {$subcamp_font_size='11';}
</TR>
<?php }
?>
</TR><TR <?php echo $qg_sh ?><?php if ($SSadmin_row_click > 0) {echo " onclick=\"window.document.location='$ADMIN?ADD=198000000000';\"";} ?>><TD ALIGN=LEFT <?php echo $qg_sh ?>> &nbsp;
<a href="<?php echo $ADMIN ?>?ADD=198000000000" STYLE="text-decoration:none;"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> &nbsp; <img src="images/icon_queuegroups.png" border=0 alt=\"Queue Groups\" width=14 height=14 valign=middle> <?php echo _QXZ("Queue Groups"); ?> </a></TD>
</TR>
<?php
}
}
else
@@ -2675,6 +2683,10 @@ if ($SSenable_languages == '1')
?>
<TR BGCOLOR=<?php echo $vmmg_color ?>><TD ALIGN=LEFT COLSPAN=2> &nbsp; <a href="<?php echo $ADMIN ?>?ADD=197000000000"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("VM Message Groups"); ?> </a> &nbsp; |<?php if ($add_copy_disabled < 1) { ?> &nbsp; <a href="<?php echo $ADMIN ?>?ADD=197111111111"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("Add A VM Message Group"); ?> </a><?php } ?></TD></TR>
<?php }
if (strlen($qg_sh) > 25) {
?>
<TR BGCOLOR=<?php echo $qg_color ?>><TD ALIGN=LEFT COLSPAN=2> &nbsp; <a href="<?php echo $ADMIN ?>?ADD=198000000000"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("Queue Groups"); ?> </a> &nbsp; |<?php if ($add_copy_disabled < 1) { ?> &nbsp; <a href="<?php echo $ADMIN ?>?ADD=198111111111"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("Add A Queue Group"); ?> </a><?php } ?></TD></TR>
<?php }
if ( (strlen($status_sh) > 25) and (!preg_match('/campaign|user/i',$hh) ) ) {
?>
<TR BGCOLOR=<?php echo $status_color ?>><TD ALIGN=LEFT COLSPAN=2> &nbsp; <a href="<?php echo $ADMIN ?>?ADD=321111111111111"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("System Statuses"); ?> </a> &nbsp; | &nbsp; <a href="<?php echo $ADMIN ?>?ADD=331111111111111"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("Status Categories"); ?> </a> &nbsp; | &nbsp; <a href="<?php echo $ADMIN ?>?ADD=341111111111111"><FONT STYLE="font-family:HELVETICA;font-size:<?php echo $subcamp_font_size ?>;color:BLACK;"> <?php echo _QXZ("QC Status Codes"); ?> </a></TD></TR>
+3 -1
View File
@@ -1,4 +1,4 @@
# version: 20211117202701
# version: 20211208172501
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
@@ -11,6 +11,7 @@ users-phone_pass Phone Pass <QXZ>Here is where you can set a default phone pass
users-active Active <QXZ>This field defines whether the user is active in the system and can log in as an agent or manager. Default is Y.</QXZ>
users-voicemail_id Voicemail ID <QXZ>This is the voicemail box that calls will be directed to in an AGENTDIRECT in-group at the drop time if the in-group has the drop method set to VOICEMAIL and the Voicemail field set to AGENTVMAIL.</QXZ>
users-optional User Code and Territory <QXZ>These are optional fields.</QXZ>
users-user_location User Location <QXZ>This menu allows you to choose the location for this user. This location can be used by some reports in the system. The options for this menu are defined in the USER_LOCATIONS_SYSTEM Settings Container in the Admin - Settings Containers web admin page. The format for this container is -location|description- without the dashes. Locations and their Descriptions must each be less than 100 characters in length. default is -blank-.</QXZ>
users-email Email <QXZ>This field can be used by some scripts and functions, like dispo_send_email.php and two-factor-authentication, referenced by the --A--agent_email--B-- variable.</QXZ>
users-mobile_number Mobile Number <QXZ>This field can be used by two-factor-authentication, if your system is configured for it.</QXZ>
users-user_nickname User Nickname <QXZ>Optional alternative name used for agent when chatting with customers in the customer website chat feature. Only used if populated.</QXZ>
@@ -746,6 +747,7 @@ cid_groups-cid_auto_rotate_minutes CID Auto Rotate Minutes <QXZ>This feature onl
cid_groups-cid_auto_rotate_minimum CID Auto Rotate Minimum <QXZ>Works together with the CID Auto Rotate Minutes setting above, if it is enabled, and will not rotate to the next CID until at least this number of calls have been placed while active for the current CID that is dialing. Default is 0 for no limit.</QXZ>
cid_groups-cid_auto_rotate_calls CID Auto Rotate Calls, CID and Time <QXZ>Shows the number of calls placed using the current CID, the CID currently being used and the Date-Time the CID was activated.</QXZ>
vm_message_groups VM Message Groups <QXZ>Voicemail Message Groups are designed to allow agents to select from several messages to leave on a customer voicemail box when transferring to a voicemail message in the agent screen. The ID must be from 2 to 40 characters in length with no punctuation other than an underscore allowed. The Name must be from 5 to 255 characters in length. Active will determine if the VM Message Group is shown as an option in the campaign modify screen setting for VM Message Groups. For the Audio Files, you can define the order in which they appear on the agent screen by using the Rank setting. The Time Range will define what time of the customers day the message are displayed on the agent screen, in 2400 hours time format. The Display is what text will show up for this audio file on the agent screen.</QXZ>
queue_groups Queue Groups <QXZ>Queue Groups are used by some reports to show stats from a group of campaigns and-or inbound groups. The ID must be from 2 to 20 characters in length with no punctuation other than an underscore allowed. The Name must be from 5 to 40 characters in length. Active will determine if the Queue Group is shown as an option in reports. For the Included Campaigns and Inbound Groups, you can select the ones that you want to be included in the Queue Group.</QXZ>
inbound_groups-park_ext Park Music-on-Hold <QXZ>This optional setting will override the agent campaign setting for Park Music-on-Hold, if populated. Default is empty for disabled.</QXZ>
inbound_groups-populate_lead_source Populate Lead Source <QXZ>If this option is not DISABLED and there is no source_id channel variable set on the call, then the system will fill the source_id lead field with one of the other options when leads are added with an inbound call. INBOUND_NUMBER will use the inbound phone number dialed. BLANK will leave the source_id field blank. DISABLED will use the default behavior which will set the source_id field to VDCL. Default is DISABLED.</QXZ>
user_groups-user_group User Group <QXZ>This is the short name of a User group, try not to use any spaces or punctuation for this field. max 20 characters, minimum of 2 characters.</QXZ>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB