[Freeswitch-users] Count calls on specific gateway on failover bridge scenario
Vallimamod Abdullah
vma at vallimamod.org
Mon Jan 2 18:34:15 MSK 2017
Hi Marc,
Are you by any chance in bypass media mode?
If so that could explain why the application name is set to signal_bridge. I have tried with your dialplan in "normal" mode and I actually get the full dial url in the 12th field.
Unfortunately, it won't help either in your case as you won't know which gateway did actually take the call. But you can set continue_on_fail and add a second bridge app:
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/gateway/primary/dialstring"/>
<action application="bridge" data="sofia/gateway/secondary/dialstring"/>
This way you will get the specific dial url in the channel list.
Best Regards,
--
Vallimamod Abdullah
vma at vallimamod.org
.
> On 2 Jan 2017, at 14:00, Marc S <therebel22 at gmail.com> wrote:
>
> Hi Vallimamod,
>
> Thanks for reply. Here the result :
>
> signal_bridge,3c77e89c-d0ea-11e6-8e01-c7c4c1737996
> signal_bridge,cf214562-d0ea-11e6-8eb6-c7c4c1737996
>
> Problem is that "show channels" not giving me any sofia/gateway/.. string because, i think, i use brige like this :
>
> <action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/>
>
>
> Marc
>
> 2017-01-02 12:27 GMT+01:00 Vallimamod Abdullah <vma at vallimamod.org>:
> 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
>
>
> _________________________________________________________________________
> 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
>
> _________________________________________________________________________
> 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