diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 70f773f8..c660ad44 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/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/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index fd218e3c..0e32ba34 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/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/agc_2-X/trunk/extras/upgrade_2.2.0.sql b/agc_2-X/trunk/extras/upgrade_2.2.0.sql index 996e0e11..b099626e 100644 --- a/agc_2-X/trunk/extras/upgrade_2.2.0.sql +++ b/agc_2-X/trunk/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/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt index 1b7f5f3a..c2e3d2ff 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt +++ b/agc_2-X/trunk/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/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index be181765..7c035ddd 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/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:
Phone:                     "; echo ""; diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 906c33da..85240597 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -1261,7 +1261,6 @@ if ($non_latin < 1) $human_answered = ereg_replace("[^NY]","",$human_answered); $tovdad_display = ereg_replace("[^NY]","",$tovdad_display); $campaign_allow_inbound = ereg_replace("[^NY]","",$campaign_allow_inbound); - $disable_alter_custphone = ereg_replace("[^NY]","",$disable_alter_custphone); $display_queue_count = ereg_replace("[^NY]","",$display_queue_count); $qc_show_recording = ereg_replace("[^NY]","",$qc_show_recording); $sale_category = ereg_replace("[^NY]","",$sale_category); @@ -1316,6 +1315,7 @@ if ($non_latin < 1) $survey_third_status = ereg_replace("[^0-9a-zA-Z]","",$survey_third_status); $survey_fourth_status = ereg_replace("[^0-9a-zA-Z]","",$survey_fourth_status); $sounds_web_directory = ereg_replace("[^0-9a-zA-Z]","",$sounds_web_directory); + $disable_alter_custphone = ereg_replace("[^0-9a-zA-Z]","",$disable_alter_custphone); ### DIGITS and Dots $server_ip = ereg_replace("[^\.0-9]","",$server_ip); @@ -1783,11 +1783,13 @@ else # 90522-0506 - Security fix for logins when using non-latin setting # 90524-2307 - Chaned Reports screen layout # 90528-2055 - Added ViciDial recording limit field in servers and phone_context to phones +# 90530-1206 - Changed List Mix to allow for 40 mixes +# 90531-1802 - Added auto-generated options for users, campaigns, in-groups, etc..., added option to HIDE custphone # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$admin_version = '2.2.0-188'; -$build = '90528-2055'; +$admin_version = '2.2.0-190'; +$build = '90531-1802'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -3502,7 +3504,7 @@ if ($SSoutbound_autodial_active > 0)

-Disable Alter Customer Phone - If set to Y, does not change the customer phone number when an agent dispositions the call. Default is Y. +Disable Alter Customer Phone - If set to Y, does not change the customer phone number when an agent dispositions the call. Default is Y. Use the HIDE option to completely remove the customer phone number from the agent display.
@@ -5651,6 +5653,17 @@ if ($ADD=="1") { if ($LOGmodify_users==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_users' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
\n"; echo ""; @@ -5658,7 +5671,14 @@ if ($ADD=="1") echo "\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "
User Number: $NWB#vicidial_users-user$NWE
User Number: Auto-Generated $NWB#vicidial_users-user$NWE
User Number: $NWB#vicidial_users-user$NWE
Password: $NWB#vicidial_users-pass$NWE
Full Name: $NWB#vicidial_users-full_name$NWE
User Level:
\n"; echo ""; @@ -5714,7 +5745,14 @@ if ($ADD=="1A") echo "\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; @@ -5756,13 +5794,31 @@ if ($ADD==11) { if ($LOGmodify_campaigns==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
User Number: $NWB#vicidial_users-user$NWE
User Number: Auto-Generated $NWB#vicidial_users-user$NWE
User Number: $NWB#vicidial_users-user$NWE
Password: $NWB#vicidial_users-pass$NWE
Full Name: $NWB#vicidial_users-full_name$NWE
\n"; echo ""; echo "
ADD A NEW CAMPAIGN
\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -5861,13 +5917,31 @@ if ($ADD==12) { if ($LOGmodify_campaigns==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
Campaign ID: $NWB#vicidial_campaigns-campaign_id$NWE
Campaign ID: Auto-Generated $NWB#vicidial_campaigns-campaign_id$NWE
Campaign ID: $NWB#vicidial_campaigns-campaign_id$NWE
Campaign Name: $NWB#vicidial_campaigns-campaign_name$NWE
Campaign Description: $NWB#vicidial_campaigns-campaign_description$NWE
Active: $NWB#vicidial_campaigns-active$NWE
\n"; echo ""; echo "
COPY A CAMPAIGN\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "
Campaign ID: $NWB#vicidial_campaigns-campaign_id$NWE
Campaign ID: Auto-Generated $NWB#vicidial_campaigns-campaign_id$NWE
Campaign ID: $NWB#vicidial_campaigns-campaign_id$NWE
Campaign Name: $NWB#vicidial_campaigns-campaign_name$NWE
Source Campaign:
\n"; echo ""; echo "
ADD A NEW LIST\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "
List ID: (digits only)$NWB#vicidial_lists-list_id$NWE
List ID: Auto-Generated $NWB#vicidial_lists-list_id$NWE
List ID: (digits only)$NWB#vicidial_lists-list_id$NWE
List Name: $NWB#vicidial_lists-list_name$NWE
List Description: $NWB#vicidial_lists-list_description$NWE
Campaign:
\n"; echo ""; echo "
ADD A NEW INBOUND GROUP\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -6145,13 +6255,31 @@ if ($ADD==1211) { if ($LOGmodify_ingroups==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_inbound_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
Group ID: (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE
Group ID: Auto-Generated $NWB#vicidial_inbound_groups-group_id$NWE
Group ID: (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE
Group Name: $NWB#vicidial_inbound_groups-group_name$NWE
Group Color: $NWB#vicidial_inbound_groups-group_color$NWE
Active: $NWB#vicidial_inbound_groups-active$NWE
\n"; echo ""; echo "
COPY INBOUND GROUP\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "
Group ID: (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE
Group ID: Auto-Generated $NWB#vicidial_inbound_groups-group_id$NWE
Group ID: (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE
Group Name: $NWB#vicidial_inbound_groups-group_name$NWE
Source Group ID:
\n"; echo ""; echo "
ADD A NEW CALL MENU\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "
Menu ID: (no spaces or special characters)$NWB#vicidial_call_menu-menu_id$NWE
Menu ID: Auto-Generated $NWB#vicidial_call_menu-menu_id$NWE
Menu ID: (no spaces or special characters)$NWB#vicidial_call_menu-menu_id$NWE
Menu Name: $NWB#vicidial_call_menu-menu_name$NWE
\n"; @@ -6289,13 +6435,31 @@ if ($ADD==1611) { if ($LOGmodify_dids==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_call_menu' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
\n"; echo ""; echo "
COPY CALL MENU\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "
Menu ID: (no spaces or special characters)$NWB#vicidial_call_menu-menu_id$NWE
Menu ID: Auto-Generated $NWB#vicidial_call_menu-menu_id$NWE
Menu ID: (no spaces or special characters)$NWB#vicidial_call_menu-menu_id$NWE
Menu Name: $NWB#vicidial_call_menu-menu_name$NWE
Source Menu:
\n"; echo ""; echo "
ADD NEW USERS GROUP\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "
Group: (no spaces or punctuation)$NWB#vicidial_user_groups-user_group$NWE
Group: Auto-Generated $NWB#vicidial_user_groups-user_group$NWE
Group: (no spaces or punctuation)$NWB#vicidial_user_groups-user_group$NWE
Description: (description of group)$NWB#vicidial_user_groups-group_name$NWE
\n"; @@ -6400,6 +6582,17 @@ if ($ADD==1111111) { if ($LOGmodify_scripts==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_scripts' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
\n"; echo ""; @@ -6407,7 +6600,14 @@ if ($ADD==1111111) echo "\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -6474,13 +6674,31 @@ if ($ADD==11111111) { if ($LOGmodify_filters==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='vicidial_lead_filters' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
Script ID: (no spaces or punctuation)$NWB#vicidial_scripts-script_id$NWE
Script ID: Auto-Generated $NWB#vicidial_scripts-script_id$NWE
Script ID: (no spaces or punctuation)$NWB#vicidial_scripts-script_id$NWE
Script Name: (title of the script)$NWB#vicidial_scripts-script_name$NWE
Script Comments: $NWB#vicidial_scripts-script_comments$NWE
Active: $NWB#vicidial_scripts-active$NWE
\n"; echo ""; echo "
ADD NEW FILTER\n"; echo "\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -6604,6 +6822,17 @@ if ($ADD==11111111111) { if ($LOGast_admin_access==1) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT count(*) FROM vicidial_override_ids where id_table='phones' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $voi_count = "$row[0]"; + } + ##### END ID override optional section ##### + echo "
Filter ID: (no spaces or punctuation)$NWB#vicidial_lead_filters-lead_filter_id$NWE
Filter ID: Auto-Generated $NWB#vicidial_lead_filters-lead_filter_id$NWE
Filter ID: (no spaces or punctuation)$NWB#vicidial_lead_filters-lead_filter_id$NWE
Filter Name: (short description of the filter)$NWB#vicidial_lead_filters-lead_filter_name$NWE
Filter Comments: $NWB#vicidial_lead_filters-lead_filter_comments$NWE
Filter SQL: $NWB#vicidial_lead_filters-lead_filter_sql$NWE
\n"; echo ""; @@ -6612,7 +6841,14 @@ if ($ADD==11111111111) echo "
\n"; echo "
\n"; - echo "\n"; + if ($voi_count > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -6912,6 +7148,20 @@ if ($ADD==11111111111111) if ($ADD=="2") { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_users' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $user = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$user' where id_table='vicidial_users' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_users where user='$user';"; $rslt=mysql_query($stmt, $link); @@ -7179,6 +7429,20 @@ if ($ADD=="2") if ($ADD=="2A") { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_users' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $user = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$user' where id_table='vicidial_users' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_users where user='$user';"; $rslt=mysql_query($stmt, $link); @@ -7452,6 +7716,20 @@ if ($ADD=="2A") if ($ADD==21) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $campaign_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$campaign_id' where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id';"; $rslt=mysql_query($stmt, $link); @@ -7502,6 +7780,20 @@ if ($ADD==21) if ($ADD==20) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $campaign_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$campaign_id' where id_table='vicidial_campaigns' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id';"; $rslt=mysql_query($stmt, $link); @@ -7828,6 +8120,20 @@ if ($ADD==28) if ($ADD==211) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_lists' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $list_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$list_id' where id_table='vicidial_lists' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_lists where list_id='$list_id';"; $rslt=mysql_query($stmt, $link); @@ -7870,6 +8176,20 @@ if ($ADD==211) if ($ADD==2111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_inbound_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $group_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$group_id' where id_table='vicidial_inbound_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$group_id';"; $rslt=mysql_query($stmt, $link); @@ -7921,6 +8241,20 @@ if ($ADD==2111) if ($ADD==2011) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_inbound_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $group_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$group_id' where id_table='vicidial_inbound_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$group_id';"; $rslt=mysql_query($stmt, $link); @@ -8057,6 +8391,20 @@ if ($ADD==2411) if ($ADD==2511) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_call_menu' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $menu_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$menu_id' where id_table='vicidial_call_menu' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_call_menu where menu_id='$menu_id';"; $rslt=mysql_query($stmt, $link); @@ -8096,6 +8444,20 @@ if ($ADD==2511) if ($ADD==2611) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_call_menu' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $menu_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$menu_id' where id_table='vicidial_call_menu' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_call_menu where menu_id='$menu_id';"; $rslt=mysql_query($stmt, $link); @@ -8176,6 +8538,20 @@ if ($ADD==21111) if ($ADD==211111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_user_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $user_group = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$user_group' where id_table='vicidial_user_groups' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_user_groups where user_group='$user_group';"; $rslt=mysql_query($stmt, $link); @@ -8290,6 +8666,20 @@ if ($ADD==211111) if ($ADD==2111111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_scripts' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $script_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$script_id' where id_table='vicidial_scripts' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_scripts where script_id='$script_id';"; $rslt=mysql_query($stmt, $link); @@ -8329,6 +8719,20 @@ if ($ADD==2111111) if ($ADD==21111111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_lead_filters' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $lead_filter_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$lead_filter_id' where id_table='vicidial_lead_filters' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_lead_filters where lead_filter_id='$lead_filter_id';"; $rslt=mysql_query($stmt, $link); @@ -8449,6 +8853,20 @@ if ($ADD==2111111111) if ($ADD==231111111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='vicidial_shifts' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $shift_id = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$shift_id' where id_table='vicidial_shifts' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from vicidial_shifts where shift_id='$shift_id';"; $rslt=mysql_query($stmt, $link); @@ -8499,6 +8917,20 @@ if ($ADD==231111111) if ($ADD==21111111111) { + ##### BEGIN ID override optional section, if enabled it increments user by 1 ignoring entered value ##### + $stmt = "SELECT value FROM vicidial_override_ids where id_table='phones' and active='1';"; + $rslt=mysql_query($stmt, $link); + $voi_ct = mysql_num_rows($rslt); + if ($voi_ct > 0) + { + $row=mysql_fetch_row($rslt); + $extension = ($row[0] + 1); + + $stmt="UPDATE vicidial_override_ids SET value='$extension' where id_table='phones' and active='1';"; + $rslt=mysql_query($stmt, $link); + } + ##### END ID override optional section ##### + echo ""; $stmt="SELECT count(*) from phones where extension='$extension' and server_ip='$server_ip';"; $rslt=mysql_query($stmt, $link); @@ -14532,7 +14964,7 @@ if ($ADD==31) echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; if ($SSoutbound_autodial_active > 0) { @@ -15798,6 +16230,14 @@ if ( ($ADD==34) or ($ADD==31) ) echo "
WARNING, we only recommend List Mix for advanced users, Please read the ViciDial Manager Manual
\n"; + $stmt="SELECT dial_statuses from vicidial_campaigns where campaign_id='$campaign_id'"; + $rslt=mysql_query($stmt, $link); + $statuses = mysql_num_rows($rslt); + if ($statuses > 0) + { + $rowy=mysql_fetch_row($rslt); + $LMdial_statuses=$rowy[0]; + } $stmt="SELECT * from vicidial_campaigns_list_mix where campaign_id='$campaign_id' order by status, vcl_id"; $rslt=mysql_query($stmt, $link); @@ -15818,11 +16258,11 @@ if ( ($ADD==34) or ($ADD==31) ) else {$tablecolor='bgcolor="#9BB9FB"'; $bgcolor='bgcolor="#B9CBFD"';} } - echo "
\n"; + echo "

\n"; echo ""; echo "
Phone extension: $NWB#phones-extension$NWE
Phone extension: Auto-Generated $NWB#phones-extension$NWE
Phone extension: $NWB#phones-extension$NWE
Dial Plan Number: (digits only)$NWB#phones-dialplan_number$NWE
Voicemail Box: (digits only)$NWB#phones-voicemail_id$NWE
Outbound CallerID: (digits only)$NWB#phones-outbound_cid$NWE
Campaign Stats Refresh: $NWB#vicidial_campaigns-campaign_stats_refresh$NWE
Disable Alter Customer Data: $NWB#vicidial_campaigns-disable_alter_custdata$NWE
Disable Alter Customer Phone: $NWB#vicidial_campaigns-disable_alter_custphone$NWE
Disable Alter Customer Phone: $NWB#vicidial_campaigns-disable_alter_custphone$NWE
\n"; echo "\n"; + echo "List: $MIXdetailsLIST   REMOVE\n"; echo "\n"; @@ -15928,8 +16368,8 @@ if ( ($ADD==34) or ($ADD==31) ) echo "\n"; - echo "\n"; + echo "\n"; - if ($q > 9) {$AE_disabled = 'DISABLED';} + if ($q > 39) {$AE_disabled = 'DISABLED';} else {$AE_disabled = '';} - echo "\n"; + + $X='X'; + echo "\n"; echo "
\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -15873,10 +16313,10 @@ if ( ($ADD==34) or ($ADD==31) ) echo "
\n"; echo "\n"; - echo "List: $MIXdetailsLIST   REMOVE
\n"; - echo "
\n"; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -15938,11 +16378,27 @@ if ( ($ADD==34) or ($ADD==31) ) echo "List: \n"; + echo "\n"; + echo "\n"; + echo "
\n"; + echo "\n"; + echo "
CHANGE: \n"; + echo "ALL   \n"; + echo "EMPTY\n"; + echo "
\n"; + echo " \n"; + echo "ADD   \n"; + echo "REMOVE\n"; echo "
\n"; } @@ -15950,7 +16406,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo "

ADD NEW LIST MIX
\n"; echo "\n"; - echo "
\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/vicidial/admin_header.php b/agc_2-X/trunk/www/vicidial/admin_header.php index 00f14a44..d622fa90 100644 --- a/agc_2-X/trunk/www/vicidial/admin_header.php +++ b/agc_2-X/trunk/www/vicidial/admin_header.php @@ -8,6 +8,7 @@ # 90310-0709 - First Build # 90508-0542 - Added Call Menu option, changed script to use long PHP tags # 90514-0605 - Added audio prompt selection functions +# 90530-1206 - Changed List Mix to allow for 40 mixes and a default populate option # @@ -170,36 +171,76 @@ if ( ( ($ADD==34) or ($ADD==31) or ($ADD==49) ) and ($SUB==29) and ($LOGmodify_c // List Mix status add and remove function mod_mix_status(stage,vcl_id,entry) { - var mod_status = document.getElementById("dial_status_" + entry + "_" + vcl_id); - if (mod_status.value.length < 1) + if (stage=="ALL") { - alert("You must select a status first"); + var count=0; + var ROnew_statuses = document.getElementById("ROstatus_X_" + vcl_id); + + while (count < entry) + { + var old_statuses = document.getElementById("status_" + count + "_" + vcl_id); + var ROold_statuses = document.getElementById("ROstatus_" + count + "_" + vcl_id); + + old_statuses.value = ROnew_statuses.value; + ROold_statuses.value = ROnew_statuses.value; + count++; + } } else { - var old_statuses = document.getElementById("status_" + entry + "_" + vcl_id); - var ROold_statuses = document.getElementById("ROstatus_" + entry + "_" + vcl_id); - var MODstatus = new RegExp(" " + mod_status.value + " ","g"); - if (stage=="ADD") + if (stage=="EMPTY") { - if (old_statuses.value.match(MODstatus)) + var count=0; + var ROnew_statuses = document.getElementById("ROstatus_X_" + vcl_id); + + while (count < entry) { - alert("The status " + mod_status.value + " is already present"); + var old_statuses = document.getElementById("status_" + count + "_" + vcl_id); + var ROold_statuses = document.getElementById("ROstatus_" + count + "_" + vcl_id); + + if (ROold_statuses.value.length < 3) + { + old_statuses.value = ROnew_statuses.value; + ROold_statuses.value = ROnew_statuses.value; + } + count++; + } + } + + else + { + var mod_status = document.getElementById("dial_status_" + entry + "_" + vcl_id); + if (mod_status.value.length < 1) + { + alert("You must select a status first"); } else { - var new_statuses = " " + mod_status.value + "" + old_statuses.value; - old_statuses.value = new_statuses; - ROold_statuses.value = new_statuses; - mod_status.value = ""; + var old_statuses = document.getElementById("status_" + entry + "_" + vcl_id); + var ROold_statuses = document.getElementById("ROstatus_" + entry + "_" + vcl_id); + var MODstatus = new RegExp(" " + mod_status.value + " ","g"); + if (stage=="ADD") + { + if (old_statuses.value.match(MODstatus)) + { + alert("The status " + mod_status.value + " is already present"); + } + else + { + var new_statuses = " " + mod_status.value + "" + old_statuses.value; + old_statuses.value = new_statuses; + ROold_statuses.value = new_statuses; + mod_status.value = ""; + } + } + if (stage=="REMOVE") + { + var MODstatus = new RegExp(" " + mod_status.value + " ","g"); + old_statuses.value = old_statuses.value.replace(MODstatus, " "); + ROold_statuses.value = ROold_statuses.value.replace(MODstatus, " "); + } } } - if (stage=="REMOVE") - { - var MODstatus = new RegExp(" " + mod_status.value + " ","g"); - old_statuses.value = old_statuses.value.replace(MODstatus, " "); - ROold_statuses.value = ROold_statuses.value.replace(MODstatus, " "); - } } } @@ -244,7 +285,7 @@ function submit_mix(vcl_id,entries) var j=1; var list_mix_container=''; var mod_list_mix_container_field = document.getElementById("list_mix_container_" + vcl_id); - while(h < 11) + while(h < 41) { var i=0; while(i < entries)