I am trying to construct a query to get concurrent calls of of my Asterisk CDR that I uploaded into MySQL.
I have tried the following examples located on these threads:
mysql query - peak concurrent calls CDR data but my results were not what I expected.
fetch max number of concurrent phone calls from call_log and this seems to take forever and the results are not what I expected either.
I cant even rewrite them because the base was not what I expected so I wouldnt even know where to start.
What I would like are the following:
1 - query for peak calls for the system as a whole for the day
2015-06-01 | 134
2 - query to get a list of times of the top 10 concurrent calls for a selected period.
2015-06-01 9:32:21 | 50
2015-06-01 10:15:11 | 43
2015-06-01 15:45:14 | 40
.......
I have other complex queries but for now this would get me started.
Eventually, I want to get max concurrent calls of a specified day where src or dst equals a pool of specified DIDs
My MySQL database is in the format of
source destination calldate endtime duration uniqueid
Any help is appreciated.