<action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/>
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@vallimamod.org
.
> ______________________________
> On 1 Jan 2017, at 22:21, Marc S <therebel22@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@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@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch- users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ options/freeswitch-users
> http://www.freeswitch.org
____________________________________________________________ _____________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch- users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ options/freeswitch-users
http://www.freeswitch.org