Agents logging out every day night
Posted: Sat Sep 09, 2017 5:00 am
Dear mflorell,
I am using vicidial scratch installed VERSION: 2.7-401a BUILD: 130508-2256 , with centos and the CRON has AST_reset_mysql_vars.pl script which every day night logs-out all the agents and cannot do any calls for 2 minutes till the database gets optimized.
### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
i have read the script and found the optimization script deletes entries in vicidial_auto_calls and vicidial_live_agents tables.So i commented those entries
## $stmtA = "DELETE from vicidial_auto_calls where server_ip='$server_ip';";
## if($DB){print STDERR "\n|$stmtA|\n";}
## $affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query: |$stmtA|\n";
## print " - vicidial_auto_calls delete\n";
## $stmtA = "DELETE from vicidial_live_agents where server_ip='$server_ip';";
## if($DB){print STDERR "\n|$stmtA|\n";}
## $affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query: |$stmtA|\n";
## print " - vicidial_live_agents delete\n";
After commenting the entries i found that agents are not logging out and agents who are in live calls are not disturbed.But calls waiting in the in-group does not land to the waiting agents for 2 minutes until the dabase tables are optimized.Also agents cannot dial any new manual calls or conference calls for that 2 minutes.
So please guide me whether this script is mandatory and need to run every day ? it is there any solution for this? as my call-center is 24/7 i cannot ave this downtime.
I am using vicidial scratch installed VERSION: 2.7-401a BUILD: 130508-2256 , with centos and the CRON has AST_reset_mysql_vars.pl script which every day night logs-out all the agents and cannot do any calls for 2 minutes till the database gets optimized.
### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
i have read the script and found the optimization script deletes entries in vicidial_auto_calls and vicidial_live_agents tables.So i commented those entries
## $stmtA = "DELETE from vicidial_auto_calls where server_ip='$server_ip';";
## if($DB){print STDERR "\n|$stmtA|\n";}
## $affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query: |$stmtA|\n";
## print " - vicidial_auto_calls delete\n";
## $stmtA = "DELETE from vicidial_live_agents where server_ip='$server_ip';";
## if($DB){print STDERR "\n|$stmtA|\n";}
## $affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query: |$stmtA|\n";
## print " - vicidial_live_agents delete\n";
After commenting the entries i found that agents are not logging out and agents who are in live calls are not disturbed.But calls waiting in the in-group does not land to the waiting agents for 2 minutes until the dabase tables are optimized.Also agents cannot dial any new manual calls or conference calls for that 2 minutes.
So please guide me whether this script is mandatory and need to run every day ? it is there any solution for this? as my call-center is 24/7 i cannot ave this downtime.