diff --git a/UPGRADE b/UPGRADE
index 70f773f8..c660ad44 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -65,6 +65,14 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
15. Added live monitoring of calls and retrieval of recorded calls through the
QueueMetrics interface
+16. Added up to 40 records to one List Mix going down to 1% mix, as well as the
+ option to populate all records with a set of statuses
+
+17. Added ability to force auto-incremented ID values for Users, Campaigns,
+ Lists, Scripts, In-groups, etc... using the vicidial_override_ids table
+
+18. Added the HIDE option for Disable Alter Customer Phone field to hide the
+ customer phone number from the agent interface
diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql
index fd218e3c..0e32ba34 100644
--- a/extras/MySQL_AST_CREATE_tables.sql
+++ b/extras/MySQL_AST_CREATE_tables.sql
@@ -621,7 +621,7 @@ survey_ni_status VARCHAR(6) default 'NI',
survey_response_digit_map VARCHAR(255) default '1-DEMOCRAT|2-REPUBLICAN|3-INDEPENDANT|8-OPTOUT|X-NO RESPONSE|',
survey_xfer_exten VARCHAR(20) default '8300',
survey_camp_record_dir VARCHAR(255) default '/home/survey',
-disable_alter_custphone ENUM('Y','N') default 'Y',
+disable_alter_custphone ENUM('Y','N','HIDE') default 'Y',
display_queue_count ENUM('Y','N') default 'Y',
manual_dial_filter VARCHAR(50) default 'NONE',
agent_clipboard_copy VARCHAR(50) default 'NONE',
@@ -1522,6 +1522,11 @@ territory_description VARCHAR(255) default '',
unique index uniqueterritory (territory)
);
+CREATE TABLE vicidial_override_ids (
+id_table VARCHAR(50) PRIMARY KEY NOT NULL,
+active ENUM('0','1') default '1',
+value INT(9) default '0'
+);
ALTER TABLE vicidial_campaign_server_stats ENGINE=HEAP;
@@ -1598,6 +1603,16 @@ INSERT INTO vicidial_server_carriers SET carrier_id='IAXEXAMPLE', carrier_name='
INSERT INTO vicidial_inbound_dids SET did_pattern='default', did_description='Default DID', did_active='Y', did_route='EXTEN', extension='9998811112', exten_context='default';
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_users','0','1000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_campaigns','0','20000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_inbound_groups','0','30000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_lists','0','40000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_call_menu','0','50000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_user_groups','0','60000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_lead_filters','0','70000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_scripts','0','80000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('phones','0','100');
+
UPDATE system_settings SET qc_last_pull_time=NOW();
CREATE INDEX country_postal_code on vicidial_postal_codes (country_code,postal_code);
@@ -1618,7 +1633,7 @@ CREATE INDEX phone_number on vicidial_closer_log (phone_number);
CREATE INDEX date_user on vicidial_closer_log (call_date,user);
CREATE INDEX comment_a on live_inbound_log (comment_a);
-UPDATE system_settings SET db_schema_version='1145';
+UPDATE system_settings SET db_schema_version='1147';
GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost;
diff --git a/extras/upgrade_2.2.0.sql b/extras/upgrade_2.2.0.sql
index 996e0e11..b099626e 100644
--- a/extras/upgrade_2.2.0.sql
+++ b/extras/upgrade_2.2.0.sql
@@ -126,3 +126,23 @@ UPDATE system_settings SET db_schema_version='1145';
CREATE UNIQUE INDEX extenserver ON phones (extension, server_ip);
UPDATE system_settings SET db_schema_version='1146';
+
+CREATE TABLE vicidial_override_ids (
+id_table VARCHAR(50) PRIMARY KEY NOT NULL,
+active ENUM('0','1') default '0',
+value INT(9) default '0'
+);
+
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_users','0','1000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_campaigns','0','20000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_inbound_groups','0','30000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_lists','0','40000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_call_menu','0','50000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_user_groups','0','60000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_lead_filters','0','70000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('vicidial_scripts','0','80000');
+INSERT INTO vicidial_override_ids(id_table,active,value) values('phones','0','100');
+
+ALTER TABLE vicidial_campaigns MODIFY disable_alter_custphone ENUM('Y','N','HIDE') default 'Y';
+
+UPDATE system_settings SET db_schema_version='1147';
diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
index 1b7f5f3a..c2e3d2ff 100644
--- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
+++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
@@ -157,6 +157,7 @@ This field is where you set the maximum number of minutes that a call recording
This is the dial plan context that the agent applications, like ViciDial, primarily use. It is assumed that all numbers dialed by the client apps are using this context so it is a good idea to make sure this is the most wide context possible. verify with extensions.conf file before changing. default is default||
Phone Context||
This is the dial plan context that this phone will use to dial out. If you are running a call center and you do not want your agents to be able to dial out outside of the ViciDial applicaiton for example, then you would set this field to a dialplan context that does not exist, something like agent-nodial. default is default||
+Use the HIDE option to completely remove the customer phone number from the agent display||
add-file: user_territories.php
diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php
index be181765..7c035ddd 100644
--- a/www/agc/vicidial.php
+++ b/www/agc/vicidial.php
@@ -231,10 +231,11 @@
# 90519-0635 - Fixed manual dial status and logging bug
# 90525-1012 - Fixed transfer issue of auto-received call after manual dial call
# 90529-0741 - Added nophone agent phone login that will not show any empty session alerts
+# 90531-0635 - Added option to hide customer phone number
#
-$version = '2.2.0-209';
-$build = '90529-0741';
+$version = '2.2.0-210';
+$build = '90531-0635';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=60;
$one_mysql_log=0;
@@ -4327,10 +4328,13 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.vicidial_form.list_id.value = MDnextResponse_array[5];
document.vicidial_form.gmt_offset_now.value = MDnextResponse_array[6];
document.vicidial_form.phone_code.value = MDnextResponse_array[7];
- if (disable_alter_custphone=='Y')
+ if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
{
var tmp_pn = document.getElementById("phone_numberDISP");
- tmp_pn.innerHTML = MDnextResponse_array[8];
+ if (disable_alter_custphone=='Y')
+ {
+ tmp_pn.innerHTML = MDnextResponse_array[8];
+ }
}
document.vicidial_form.phone_number.value = MDnextResponse_array[8];
document.vicidial_form.title.value = MDnextResponse_array[9];
@@ -4592,7 +4596,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.vicidial_form.list_id.value ='';
document.vicidial_form.gmt_offset_now.value ='';
document.vicidial_form.phone_code.value ='';
- if (disable_alter_custphone=='Y')
+ if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
{
var tmp_pn = document.getElementById("phone_numberDISP");
tmp_pn.innerHTML = ' ';
@@ -5144,10 +5148,13 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.vicidial_form.list_id.value = check_VDIC_array[9];
document.vicidial_form.gmt_offset_now.value = check_VDIC_array[10];
document.vicidial_form.phone_code.value = check_VDIC_array[11];
- if (disable_alter_custphone=='Y')
+ if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
{
var tmp_pn = document.getElementById("phone_numberDISP");
- tmp_pn.innerHTML = check_VDIC_array[12];
+ if (disable_alter_custphone=='Y')
+ {
+ tmp_pn.innerHTML = check_VDIC_array[12];
+ }
}
document.vicidial_form.phone_number.value = check_VDIC_array[12];
document.vicidial_form.title.value = check_VDIC_array[13];
@@ -6207,7 +6214,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.vicidial_form.list_id.value ='';
document.vicidial_form.gmt_offset_now.value ='';
document.vicidial_form.phone_code.value ='';
- if (disable_alter_custphone=='Y')
+ if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
{
var tmp_pn = document.getElementById("phone_numberDISP");
tmp_pn.innerHTML = ' ';
@@ -7090,6 +7097,11 @@ function phone_number_format(formatphone) {
var regFR_SPACphone = new RegExp("FR_SPAC","g");
var status_display_number = formatphone;
var dispnum = formatphone;
+ if (disable_alter_custphone == 'HIDE')
+ {
+ var status_display_number = 'XXXXXXXXXX';
+ var dispnum = 'XXXXXXXXXX';
+ }
if (vdc_header_phone_format.match(regUS_DASHphone))
{
var status_display_number = dispnum.substring(0,3) + '-' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
@@ -8547,7 +8559,7 @@ RECORD ID: