MySQL accounting/Reporting issue
Posted: Tue Jun 23, 2020 1:15 pm
Hello,
We are seeing an interesting problem in the MySQL asterisk DB and with some of the reports. At the end of the day, we use the vicidial_agent_log table to compute the billable hours from the database. We do this by taking the SUM(wait_sec+talk_sec+dispo_sec). However, when we do the same calculation a day later the data appears to have changed. We get a lower number for the same sum over the same period.
We see the same issue if we execute the Agent Performance Detail and Team Performance Detail report for the same time period on different days (e.g. running it 45 minutes after end of shift produces different results if we run it again the next day for the same time period).
Any thoughts on why this would occur.
We're running VERSION: 2.14-708a BUILD: 190414-0924 on a Clustered configuration where we've got a MASTER and SLAVE DB Server, 4 Web Servers and 10 Dialer Servers.
Any insights would be appreciated.
Thanks and regards,
Peter Manley
We are seeing an interesting problem in the MySQL asterisk DB and with some of the reports. At the end of the day, we use the vicidial_agent_log table to compute the billable hours from the database. We do this by taking the SUM(wait_sec+talk_sec+dispo_sec). However, when we do the same calculation a day later the data appears to have changed. We get a lower number for the same sum over the same period.
We see the same issue if we execute the Agent Performance Detail and Team Performance Detail report for the same time period on different days (e.g. running it 45 minutes after end of shift produces different results if we run it again the next day for the same time period).
Any thoughts on why this would occur.
We're running VERSION: 2.14-708a BUILD: 190414-0924 on a Clustered configuration where we've got a MASTER and SLAVE DB Server, 4 Web Servers and 10 Dialer Servers.
Any insights would be appreciated.
Thanks and regards,
Peter Manley