<div dir="ltr"><div><div>Hi Vallimamod,<br><br></div>Thanks for reply. Here the result :<br><br>signal_bridge,3c77e89c-d0ea-11e6-8e01-c7c4c1737996<br>signal_bridge,cf214562-d0ea-11e6-8eb6-c7c4c1737996<br><br></div>Problem is that "show channels" not giving me any sofia/gateway/.. string because, i think, i use brige like this :<br><br><div title="Hint: double-click to select code" class="gmail-container"><div class="gmail-line gmail-number1 gmail-index0 gmail-alt2"><code class="gmail-xml gmail-plain"><</code><code class="gmail-xml gmail-keyword">action</code> <code class="gmail-xml gmail-color1">application</code><code class="gmail-xml gmail-plain">=</code><code class="gmail-xml gmail-string">"bridge"</code> <code class="gmail-xml gmail-color1">data</code><code class="gmail-xml gmail-plain">=</code><code class="gmail-xml gmail-string">"sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"</code><code class="gmail-xml gmail-plain">/><br><br></code></div><div class="gmail-line gmail-number1 gmail-index0 gmail-alt2"><code class="gmail-xml gmail-plain"><br></code></div></div><div><div><div><div><div class="gmail_extra">Marc<br><br></div><div class="gmail_extra"><div class="gmail_quote">2017-01-02 12:27 GMT+01:00 Vallimamod Abdullah <span dir="ltr"><<a target="_blank" href="mailto:vma@vallimamod.org">vma@vallimamod.org</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Hi Marc,<br>
<br>
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:<br>
<br>
fs_cli -x 'show channels' | grep inbound | cut -d',' -f11,12<br>
<br>
You will get something like:<br>
<br>
bridge,{ignore_display_update=<wbr>true}sofia/gateway/gw1/+XXX<br>
bridge,{ignore_display_update=<wbr>true}sofia/gateway/gw1/+XXX<br>
bridge,{ignore_display_update=<wbr>true}sofia/gateway/gw2/+XXX<br>
bridge,{ignore_display_update=<wbr>true}sofia/gateway/gw2/+XXX<br>
<br>
So you just have to count the lines corresponding to each gateway to get your numbers.<br>
<br>
Best Regards,<br>
--<br>
Vallimamod Abdullah<br>
<a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a><br>
.<br>
<div><div class="gmail-h5"><br>
> On 1 Jan 2017, at 22:21, Marc S <<a href="mailto:therebel22@gmail.com">therebel22@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> i'm trying to get current calls count on a specific gateway in failover bridge scenario :<br>
><br>
> <a target="_blank" rel="noreferrer" href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+bridge#mod_dptools:bridge-ImplementingFailover">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_dptools%3A+bridge#mod_<wbr>dptools:bridge-<wbr>ImplementingFailover</a><br>
><br>
> I have tried :<br>
><br>
> show calls<br>
> show channels<br>
><br>
> but gateway name doesn't appears on list<br>
><br>
> sofia status<br>
> sofia status gateway GATEWAY_NAME<br>
><br>
> but no help, no counter of current calls.<br>
><br>
> Any ideas ?<br>
><br>
> Thanks,<br>
> Marc<br>
</div></div>> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a target="_blank" rel="noreferrer" href="http://www.freeswitchsolutions.com">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a target="_blank" rel="noreferrer" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
> <a target="_blank" rel="noreferrer" href="http://confluence.freeswitch.org">http://confluence.freeswitch.<wbr>org</a><br>
> <a target="_blank" rel="noreferrer" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
> <a target="_blank" rel="noreferrer" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a target="_blank" rel="noreferrer" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a target="_blank" rel="noreferrer" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a target="_blank" rel="noreferrer" href="http://www.freeswitchsolutions.com">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a target="_blank" rel="noreferrer" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a target="_blank" rel="noreferrer" href="http://confluence.freeswitch.org">http://confluence.freeswitch.<wbr>org</a><br>
<a target="_blank" rel="noreferrer" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a target="_blank" rel="noreferrer" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a target="_blank" rel="noreferrer" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a target="_blank" rel="noreferrer" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div></div></div></div>