Added campaign option to move USERONLY scheduled callbacks to ANYONE callbacks after X minutes being LIVE without the agent calling them back.
Changed web admin sidebar menu design git-svn-id: svn://192.168.202.10@2492 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -248,6 +248,10 @@ OTHER CHANGES:
|
||||
|
||||
65. Added option to define a carrier across all active asterisk servers
|
||||
|
||||
66. Added campaign option to move USERONLY scheduled callbacks to ANYONE
|
||||
callbacks after X minutes being LIVE without the agent calling them
|
||||
back.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -109,9 +109,10 @@
|
||||
# 160305-2253 - Added --teod flag to log Timeclock End of Day processes to log file
|
||||
# Limited max-stats process to only run on voicemail server, also added alt-logging flags to cm.agi calls
|
||||
# 160306-1040 - Added option for carriers to be defined for all active asterisk servers
|
||||
# 160324-1655 - Added callback_useronly_move_minutes option
|
||||
#
|
||||
|
||||
$build = '160306-1040';
|
||||
$build = '160324-1655';
|
||||
|
||||
$DB=0; # Debug flag
|
||||
$teodDB=0; # flag to log Timeclock End of Day processes to log file
|
||||
@@ -3696,6 +3697,70 @@ if ($active_asterisk_server =~ /Y/)
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
##### START scheduled callbacks move old USERONLY triggered to ANYONE
|
||||
################################################################################
|
||||
# only run this on active voicemail servver
|
||||
if ( ($active_voicemail_server =~ /$server_ip/) && ((length($active_voicemail_server)) eq (length($server_ip))) )
|
||||
{
|
||||
##### BEGIN gather campaign settings #####
|
||||
$CBcampaign_id=$MT;
|
||||
$CBcallback_useronly_move_minutes=$MT;
|
||||
$stmtA = "SELECT campaign_id,callback_useronly_move_minutes FROM vicidial_campaigns where active='Y' and callback_useronly_move_minutes > 0 order by campaign_id;";
|
||||
if ($DBX) {print "$stmtA\n";}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$i=0;
|
||||
while ($sthArows > $i)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$CBcampaign_id[$i] = $aryA[0];
|
||||
$CBcallback_useronly_move_minutes[$i] = $aryA[1];
|
||||
$i++;
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
if ($DB) {print " old live scheduled callbacks move active campaigns: $i\n";}
|
||||
|
||||
$i=0;
|
||||
while ($sthArows > $i)
|
||||
{
|
||||
$CBmoveCOUNT=0;
|
||||
$stmtA = "SELECT count(*) from vicidial_callbacks where campaign_id='$CBcampaign_id[$i]' and status='LIVE' and recipient='USERONLY' and callback_time < (NOW() - INTERVAL $CBcallback_useronly_move_minutes[$i] MINUTE);";
|
||||
if ($DBX) {print "$stmtA\n";}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArowsX=$sthA->rows;
|
||||
if ($sthArowsX > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$CBmoveCOUNT = $aryA[0];
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
if ($CBmoveCOUNT > 0)
|
||||
{
|
||||
$stmtA = "UPDATE vicidial_callbacks SET recipient='ANYONE',status='ACTIVE' where campaign_id='$CBcampaign_id[$i]' and status='LIVE' and recipient='USERONLY' and callback_time < (NOW() - INTERVAL $CBcallback_useronly_move_minutes[$i] MINUTE);";
|
||||
$affected_rows = $dbhA->do($stmtA) or die "Couldn't execute query: |$stmtA|\n";
|
||||
if ($DBX) {print "Callback USERONLY old move query: |$affected_rows|$stmtA|\n";}
|
||||
|
||||
if ($teodDB)
|
||||
{
|
||||
$event_string = "Callback USERONLY old moved: $affected_rows|$CBmoveCOUNT|$CBcampaign_id[$i]|$CBcallback_useronly_move_minutes[$i]|";
|
||||
&teod_logger;
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
################################################################################
|
||||
##### END scheduled callbacks move old USERONLY triggered to ANYONE
|
||||
################################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
##### BEGIN Audio Store sync
|
||||
@@ -3783,7 +3848,6 @@ if ($sthBrows > 0)
|
||||
$stmtA="UPDATE vicidial_process_triggers SET trigger_run='0' where trigger_id='$trigger_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
|
||||
$MT[0]='';
|
||||
$trigger_results='';
|
||||
if ($DB) {print "running process trigger: $trigger_id\n";}
|
||||
@triggers = split(/\|/,$trigger_lines);
|
||||
|
||||
@@ -954,7 +954,8 @@ agent_display_fields VARCHAR(50) default '',
|
||||
am_message_wildcards ENUM('Y','N') default 'N',
|
||||
manual_dial_timeout VARCHAR(3) default '',
|
||||
routing_initiated_recordings ENUM('Y','N') default 'N',
|
||||
manual_dial_hopper_check ENUM('Y','N') default 'N'
|
||||
manual_dial_hopper_check ENUM('Y','N') default 'N',
|
||||
callback_useronly_move_minutes MEDIUMINT(5) UNSIGNED default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -3742,4 +3743,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1456',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1457',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -559,3 +559,7 @@ ALTER TABLE vicidial_admin_log MODIFY event_sql MEDIUMTEXT;
|
||||
ALTER TABLE vicidial_admin_log MODIFY event_notes MEDIUMTEXT;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1456',db_schema_update_date=NOW() where db_schema_version < 1456;
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD callback_useronly_move_minutes MEDIUMINT(5) UNSIGNED default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1457',db_schema_update_date=NOW() where db_schema_version < 1457;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_agent_time_sheet.php
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -24,6 +24,7 @@
|
||||
# 141114-0908 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1523 - Added code for on-the-fly language translations display
|
||||
# 151227-1735 - Added option for searching archived data
|
||||
# 160325-1428 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -293,6 +294,7 @@ $HEADER.="<TITLE>"._QXZ("$report_name");
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '3';
|
||||
$hh = 'users';
|
||||
$sh = 'sheet';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_lists_custom.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen manages the custom lists fields in ViciDial
|
||||
#
|
||||
@@ -34,6 +34,7 @@
|
||||
# 141230-0018 - Added code for on-the-fly language translations display
|
||||
# 150626-2120 - Modified mysqli_error() to mysqli_connect_error() where appropriate
|
||||
# 151007-2001 - Fixed issue with field deletion
|
||||
# 160325-1431 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$admin_version = '2.12-27';
|
||||
@@ -294,6 +295,7 @@ if ($action == "HELP")
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '100';
|
||||
$hh = 'lists';
|
||||
$sh = 'custom';
|
||||
$LOGast_admin_access = '1';
|
||||
$SSoutbound_autodial_active = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_search_lead.php version 2.12
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# AST GUI database administration search for lead info
|
||||
# admin_modify_lead.php
|
||||
@@ -44,6 +44,7 @@
|
||||
# 150312-1507 - Allow for single quotes in vicidial_list data fields
|
||||
# 150602-1207 - Allow for searching by email address
|
||||
# 151203-2104 - Added option for called_count as search variable
|
||||
# 160325-1427 - Changes for sidebar update
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -247,6 +248,7 @@ $regexLOGallowed_campaigns = " $LOGallowed_campaigns ";
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '100';
|
||||
$hh = 'lists';
|
||||
$sh = 'search';
|
||||
$LOGast_admin_access = '1';
|
||||
$SSoutbound_autodial_active = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# database connection settings and some global web settings
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES:
|
||||
# 130328-0022 - Converted ereg to preg functions
|
||||
@@ -14,6 +14,7 @@
|
||||
# 150216-1529 - Removed non-latin set to 0
|
||||
# 150313-0913 - Added ExpectedDBSchema conf file value
|
||||
# 150626-2120 - Modified mysqli_error() to mysqli_connect_error() where appropriate
|
||||
# 160325-1434 - Changes for sidebar update
|
||||
#
|
||||
|
||||
if ( file_exists("/etc/astguiclient.conf") )
|
||||
@@ -91,5 +92,9 @@ $WeBRooTWritablE = '1';
|
||||
# $non_latin = '0'; # set to 1 for UTF rules, overridden by system_settings
|
||||
$flag_channels=0;
|
||||
$flag_string = 'VICIast20';
|
||||
$Msubhead_color = '#E6E6E6';
|
||||
$Mselected_color = '#C6C6C6';
|
||||
$Mhead_color = '#A3C3D6';
|
||||
$Mmain_bgcolor = '#015B91';
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# group_hourly_stats.php
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -18,6 +18,7 @@
|
||||
# 140108-0724 - Added webserver and hostname to report logging
|
||||
# 141114-0043 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1343 - Added code for on-the-fly language translations display
|
||||
# 160325-1426 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -227,6 +228,7 @@ if ( (!preg_match('/\-\-ALL\-\-/i',$LOGadmin_viewable_groups)) and (strlen($LOGa
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '311111';
|
||||
$hh = 'usergroups';
|
||||
$sh = 'hour';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
# 160211-2255 - Added help text for remaining reports
|
||||
# 160305-2115 - Added Alt IVR(call menu) DTMF logging
|
||||
# 160306-1201 - Added new webphone options and server options
|
||||
# 160324-1940 - Added callback_useronly_move_minutes
|
||||
#
|
||||
|
||||
|
||||
@@ -1539,6 +1540,11 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Show Previous Callback"); ?> -</B><?php echo _QXZ("This option if enabled will show on the agent screen with a separate yellow panel information about the previously set callback that the agent has up on their screen. Disabling this option will not show that panel. Default is ENABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-callback_useronly_move_minutes">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Scheduled Callbacks Useronly Move Minutes"); ?> -</B><?php echo _QXZ("This option if set to a number greater than 0, will change all USERONLY Scheduled Callbacks that are X minutes after their callback time to ANYONE callbacks. This process runs every minute. Default is 0 for disabled."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-wrapup_seconds">
|
||||
<BR>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
# 141229-1820 - Added code for on-the-fly language translations display
|
||||
# 160105-1232 - Fixed SQL errors
|
||||
# 160106-1318 - Added options.php option to disable this utility
|
||||
# 160325-1429 - Changes for sidebar update
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -173,6 +174,7 @@ while ($i < $groups_to_print)
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '311111';
|
||||
$hh = 'usergroups';
|
||||
$sh = 'bulk';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
# 151227-1839 - Added option to search archived data
|
||||
# 160104-1226 - Added call type field to the agent activity table
|
||||
# 160112-0759 - Added link to direct to recording logging page
|
||||
# 160325-1430 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -416,6 +417,7 @@ else
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '3';
|
||||
$hh = 'users';
|
||||
$sh = 'stats';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
@@ -429,9 +431,11 @@ $users_color = '#FFFF99';
|
||||
$users_font = 'BLACK';
|
||||
$users_color = '#E6E6E6';
|
||||
$subcamp_color = '#C6C6C6';
|
||||
|
||||
if ($did > 0)
|
||||
{
|
||||
$hh = 'ingroups';
|
||||
$sh = 'listdid';
|
||||
$ADD = '3311';
|
||||
$ingroups_color = '#FFFF99';
|
||||
$ingroups_font = 'BLACK';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# user_status.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -35,6 +35,7 @@
|
||||
# 141229-1829 - Added code for on-the-fly language translations display
|
||||
# 150701-1250 - Modified mysqli_error() to mysqli_connect_error() where appropriate
|
||||
# 151211-1458 - Added chat visibility
|
||||
# 160325-1433 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -344,6 +345,7 @@ while ($i < $groups_to_print)
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '3';
|
||||
$hh = 'users';
|
||||
$sh = 'status';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# user_territories.php
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This territories script is for use with custom tables in Vtiger which is why
|
||||
# it is separate from the standard admin.php script. user_territories_active in
|
||||
@@ -18,10 +18,11 @@
|
||||
# 141007-2050 - Finalized adding QXZ translation to all admin files
|
||||
# 141229-1850 - Added code for on-the-fly language translations display
|
||||
# 150626-2120 - Modified mysqli_error() to mysqli_connect_error() where appropriate
|
||||
# 160325-1432 - Changes for sidebar update
|
||||
#
|
||||
|
||||
$version = '2.10-10';
|
||||
$build = '150626-2120';
|
||||
$version = '2.12-11';
|
||||
$build = '160325-1432';
|
||||
|
||||
$MT[0]='';
|
||||
|
||||
@@ -309,6 +310,7 @@ if ( ($action == "PROCESS_CHANGE_TERRITORY_OWNER_ACCOUNT") and ($enable_vtiger_i
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '0';
|
||||
$hh = 'users';
|
||||
$sh = 'territory';
|
||||
$LOGast_admin_access = '1';
|
||||
$ADMIN = 'admin.php';
|
||||
$page_width='770';
|
||||
|
||||
Reference in New Issue
Block a user