AST_cleanup_agent_log

All installation and configuration problems and questions

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

AST_cleanup_agent_log

Postby khuff » Wed Nov 21, 2018 10:41 am

Hey all. So I discovered the magic of the AST_cleanup_agent_log script today. We had a report [Agent time detail] that was ran yesterday evening after the agents got off and then again this morning and some of the agent talk times were WAY different. Like hours of talk time gone. Some agents went from 80% talk time to 20% talk time. In fact only one agent had a change of less than 5% in talk time, everyone else was between 10-60%. This has thrown everything into disarray as they were using the report in the evening to track performance, and come to find out that it is very inaccurate.

So I have two questions;
  • Why is it off by so much? I get that it's doing some updates due to time differences, and fixing javascript time to server time, but I don't see where such a drastic change could be coming from. The log from yesterday had 40k updates.
  • Can I run the 24 fix more than once a day? I don't ever see any output if I run the hourly one by hand. We have a master slave db setup, and they are pretty beefy so I'm not too concerned about load, just wondering if it'll throw stuff off more by running it more than once every 24 hours.

As usual any assistance is greatly appreciated.
Vicibox 8.1 | ViciDial VERSION: 2.14-687a BUILD: 180908-1618 | Asterisk: 11.25.3-vici | Multi Server 12 x Dialers / 2 x Web / 1 x Master DB / 1 x Slave DB / 1 x Archive | No extra software or hardware after install
khuff
 
Posts: 80
Joined: Mon Feb 20, 2012 12:19 pm

Re: AST_cleanup_agent_log

Postby mflorell » Fri Nov 23, 2018 3:15 am

The main issue causing the initial inaccuracies is in Javascript. There isn't much we can do with that, so we had to write a process to correct those calculations. Yes, you can run that script more than once a day if you want.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

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