Agents logging out every day night

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Agents logging out every day night

Postby arunkooods » 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.
arunkooods
 
Posts: 16
Joined: Mon Nov 14, 2016 3:15 am

Re: Agents logging out every day night

Postby udy786 » Sat Sep 09, 2017 7:00 am

I had same issue its solved. Don't do any changes in script file. Just change cron time. Looks like your server have IST time and you are dialing for USA. Just change cron time like run when you are not dialing. Below link will help you more.

http://vicidial.org/VICIDIALforum/viewtopic.php?f=4&t=13747&p=129861#p55068
udy786
 
Posts: 148
Joined: Fri Jul 19, 2013 10:55 am

Re: Agents logging out every day night

Postby arunkooods » Sat Sep 09, 2017 8:27 am

Dear Udy,
My script is actually running at 2:59 am IST and my process is 24/7 incoming and cannot have down time or not dialing time.
What will be the problem if i dont run this script ?

### reset several temporary-info tables in the database
59 02 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
arunkooods
 
Posts: 16
Joined: Mon Nov 14, 2016 3:15 am

Re: Agents logging out every day night

Postby arunkooods » Sun Sep 10, 2017 2:26 am

Hi mflorell,

Can i run this script every week and not every day ? what will be the effect...........
arunkooods
 
Posts: 16
Joined: Mon Nov 14, 2016 3:15 am

Re: Agents logging out every day night

Postby mflorell » Sun Sep 10, 2017 10:25 am

Yes, you can run it weekly. We have done this for several clients and as long as it's not a heavy-dialing server, it should be fine.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Agents logging out every day night

Postby arunkooods » Mon Sep 11, 2017 1:25 am

Hi mflorell,
Thanks for the response,ours is a huge incoming call centre with 20 thousand calls a day.What could be impact of running it every week.
arunkooods
 
Posts: 16
Joined: Mon Nov 14, 2016 3:15 am

Re: Agents logging out every day night

Postby mflorell » Mon Sep 11, 2017 2:02 pm

20,000/day shouldn't be a problem. Give it a try and see if you have any issues.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Agents logging out every day night

Postby arunkooods » Tue Sep 12, 2017 2:20 am

Yes will try and update the results
arunkooods
 
Posts: 16
Joined: Mon Nov 14, 2016 3:15 am

Re: Agents logging out every day night

Postby williamconley » Thu Sep 14, 2017 12:40 am

arunkooods wrote:Yes will try and update the results

If it does present a problem: Consider changing those queries to include a date statement that would make it unlikely (impossible?) for the records to be valid. For instance: An auto-call should never be older than the longest call you've ever made. And the live agents table should never have a record in it older than your longest shift.

Not a perfect solution, but may allow you to run for a lot longer without a full reset before a problem arises (perhaps forever).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 92 guests