[Freeswitch-users] Count calls on specific gateway on failover bridge scenario

Vallimamod Abdullah vma at vallimamod.org
Mon Jan 2 14:27:33 MSK 2017


Hi Marc,

AFAIK, there is no per-gateway call count directly available. You can only get the per-profile call count with "sofia status". But if you are only routing inbound calls to these gateways, you can easily retrieve the numbers with:

fs_cli -x 'show channels' | grep inbound | cut -d',' -f11,12

You will get something like:

bridge,{ignore_display_update=true}sofia/gateway/gw1/+XXX
bridge,{ignore_display_update=true}sofia/gateway/gw1/+XXX
bridge,{ignore_display_update=true}sofia/gateway/gw2/+XXX
bridge,{ignore_display_update=true}sofia/gateway/gw2/+XXX

So you just have to count the lines corresponding to each gateway to get your numbers.

Best Regards,
-- 
Vallimamod Abdullah
vma at vallimamod.org
.

> On 1 Jan 2017, at 22:21, Marc S <therebel22 at gmail.com> wrote:
> 
> Hello,
> 
> i'm trying to get current calls count on a specific gateway in failover bridge scenario :
> 
> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+bridge#mod_dptools:bridge-ImplementingFailover
> 
> I have tried :
> 
> show calls
> show channels
> 
> but gateway name doesn't appears on list
> 
> sofia status
> sofia status gateway GATEWAY_NAME
> 
> but no help, no counter of current calls.
> 
> Any ideas ?
> 
> Thanks,
> Marc
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list