Open zlobar opened 10 years ago
By the way, thanks for module! :)
You're very welcome!
I made some changes to support custom trunks but have no way to test. Give this a try:
cd /var/www/html/admin/modules/callstatistics/concurrentcalls
mv concurrentcalls.php concurrentcalls.php.back
wget https://raw.githubusercontent.com/POSSA/freepbx-Call-Statistics/working/concurrentcalls/concurrentcalls.php
chown asterisk:asterisk concurrentcalls.php
Now go to the GUI and load the concurrent calls graph and see what happens.
This code does not work. In order to query the CDR for calls to a single custom trunk you need to:
A custom trunk defined with a SIP/ dial string gets recorded in the CDR as a SIP call not a 'custom' call, so it will be included in all queries looking for SIP trunks. There is not an easy way of aggregating all custom trunks together.
For example, chan_dongle's "custom" trunks for USB GSM modems.