Hello everyone .. I’ve been dredging the ‘net for a week trying to find a solution but can’t find one. I have a complicated system with 3 2n gateways with sim cards. Two have been dedicated to national calls and the last to international calls (the SIMS have been purchased with special deals according to the destination) I just need a simple method to find out how many current calls are on each gateway so I can route my calls accordingly. I use ESL to route my calls. I’ve tried all the variations of sofia status, show calls, show channels, but I cant find any that just tell me how many calls each gateway is handling at present (in and out)
mod_distributor could handle all this. On Thu, 30 Apr 2020 at 15:26, Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
Hello everyone .. I’ve been dredging the ‘net for a week trying to find a solution but can’t find one.
I have a complicated system with 3 2n gateways with sim cards.
Two have been dedicated to national calls and the last to international calls (the SIMS have been purchased with special deals according to the destination)
I just need a simple method to find out how many current calls are on each gateway so I can route my calls accordingly. I use ESL to route my calls.
I’ve tried all the variations of sofia status, show calls, show channels, but I cant find any that just tell me how many calls each gateway is handling at present (in and out)
_________________________________________________________________________
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
-- Regards, Faisal Hanif
That looks like it's just balancing, how would you do limits with that? On Thu, Apr 30, 2020, 2:21 PM Faisal Hanif <imfanee@gmail.com> wrote:
mod_distributor could handle all this.
On Thu, 30 Apr 2020 at 15:26, Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
Hello everyone .. I’ve been dredging the ‘net for a week trying to find a solution but can’t find one.
I have a complicated system with 3 2n gateways with sim cards.
Two have been dedicated to national calls and the last to international calls (the SIMS have been purchased with special deals according to the destination)
I just need a simple method to find out how many current calls are on each gateway so I can route my calls accordingly. I use ESL to route my calls.
I’ve tried all the variations of sofia status, show calls, show channels, but I cant find any that just tell me how many calls each gateway is handling at present (in and out)
_________________________________________________________________________
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
-- Regards,
Faisal Hanif _________________________________________________________________________
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
Hy AVI I have a complicated routing structure, and I do that all from db, managed by frontend. I have a background process monitoring ESL, and it’s easy to monitor usage for outgoing calls, I can just use events “CHANNEL_CREATE” and “CHANNEL_HANGUP” and look at the “variable_sip_gateway_name” But, with all the tons of info you get for every event, NEVER is the gateway name specified for incoming calls .. so I have no way to monitor usage on incoming. I cant believe no fs_cli command exists to just check how many active calls you have on each gateway. Just for monitoring, this is an essential value, or am I missing something? From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Avi Marcus Sent: giovedì 30 aprile 2020 13:26 To: FreeSWITCH Users Help <FreeSWITCH-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Calls per gateway That looks like it's just balancing, how would you do limits with that? On Thu, Apr 30, 2020, 2:21 PM Faisal Hanif <imfanee@gmail.com <mailto:imfanee@gmail.com> > wrote: mod_distributor could handle all this. On Thu, 30 Apr 2020 at 15:26, Francesco Facco de Lagarda <francesco@delagarda.com <mailto:francesco@delagarda.com> > wrote: Hello everyone .. I’ve been dredging the ‘net for a week trying to find a solution but can’t find one. I have a complicated system with 3 2n gateways with sim cards. Two have been dedicated to national calls and the last to international calls (the SIMS have been purchased with special deals according to the destination) I just need a simple method to find out how many current calls are on each gateway so I can route my calls accordingly. I use ESL to route my calls. I’ve tried all the variations of sofia status, show calls, show channels, but I cant find any that just tell me how many calls each gateway is handling at present (in and out) _________________________________________________________________________ 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 <mailto: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 <mailto: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 -- Regards, Faisal Hanif _________________________________________________________________________ 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 <mailto: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 <mailto: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
Oh, your issue is about incoming calls on those gateways? If it's actually via the FreeSWITCH system of a gateway (instead of just an open IP:PORT) you can have it set a variable that you can monitor for: https://freeswitch.org/confluence/display/FREESWITCH/Gateways+Configuration#... <gateway> ...params... <variables> * <variable name="inbound_var_name" value="this is inbound" direction="inbound"/>* <variable name="outbound_var_name" value="this is outbound" direction="outbound"/> <variable name="both_var_name" value="this on any direction"/> </variables> </gateway>
Usually this is done with mod_limit, but I'm not sure how that will interact with your ESL usage. You may want to use it simply to track active calls. On Thu, Apr 30, 2020, 1:21 PM Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
Hello everyone .. I’ve been dredging the ‘net for a week trying to find a solution but can’t find one.
I have a complicated system with 3 2n gateways with sim cards.
Two have been dedicated to national calls and the last to international calls (the SIMS have been purchased with special deals according to the destination)
I just need a simple method to find out how many current calls are on each gateway so I can route my calls accordingly. I use ESL to route my calls.
I’ve tried all the variations of sofia status, show calls, show channels, but I cant find any that just tell me how many calls each gateway is handling at present (in and out)
_________________________________________________________________________
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)
-
Avi Marcus
-
Faisal Hanif
-
Francesco Facco de Lagarda