I do events plus you can query the DB for connected calls. If using PG or SQLite, then look into the tables for active calls information, else you may use “show calls” and parse the output.
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Bilal Abbasi <bilaln018@gmail.com>
Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Date: Friday, April 19, 2019 at 3:55 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] [Best way to get calls per client]
Hi Users,
I am just building a platform, where i need to show "live connected" calls per account/client. I know that it can be done via events, so to fire event at start of call and at the end of the call to get the count of calls for each client.
But i wanted to know if somebody has more better idea, or if somebody has done similar solution in a better way.
BR
Abbasi