[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
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
To add: You also have “show bridged_calls” On Fri, Apr 19, 2019 at 07:20 Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
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 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Thanks for your reply, but the system will be handling thousands of calls per minute, i am almost sure that cli commands will be very heavy for that. plus doing that on all of the connected FS servers, and parsing the results and showing them on UI does not seems to be feasible solution. additionally i was looking at this module along with events. https://freeswitch.org/confluence/display/FREESWITCH/mod_hash Still looking for experts to have their word. On Fri, Apr 19, 2019 at 10:31 PM Joel Serrano <joel@textplus.com> wrote:
To add:
You also have “show bridged_calls”
On Fri, Apr 19, 2019 at 07:20 Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
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 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
I have tried sqlite with hash and postgres with db with around 5000 concurrent calls. No performance issues displaying active calls, connecting calls and a few other stats. You can also send async call events to redis or some other im-mem cashing engine and parse output from there. Try yourself to see how it works rather than just guessing it may or may not work :) Thanks. On Apr 19, 2019, 23:33 +0500, Bilal Abbasi <bilaln018@gmail.com>, wrote:
Thanks for your reply, but the system will be handling thousands of calls per minute, i am almost sure that cli commands will be very heavy for that. plus doing that on all of the connected FS servers, and parsing the results and showing them on UI does not seems to be feasible solution. additionally i was looking at this module along with events. https://freeswitch.org/confluence/display/FREESWITCH/mod_hash Still looking for experts to have their word.
On Fri, Apr 19, 2019 at 10:31 PM Joel Serrano <joel@textplus.com> wrote:
To add:
You also have “show bridged_calls”
On Fri, Apr 19, 2019 at 07:20 Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
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 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
Bilal Abbasi
-
Joel Serrano
-
Muhammad Naseer Bhatti