<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">We don't currently keep a counter of this. You might be able to craft one using limit, but more ideal is probably to create a patch to mod_sofia and contribute this feature.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 13, 2015, at 7:27 AM, Leonardo Lima Ribeiro <<a href="mailto:llribeiro90@gmail.com" class="">llribeiro90@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello all!<div class=""><br class=""></div><div class="">I need to know how many calls are running for each gateway (in my case outbound calls).</div><div class=""><br class=""></div><div class="">When I do sofia status I have the running number of calls for the external profile like RUNNING (1), but at the gateway line of the result, the state remains REGED.</div><div class=""><br class=""></div><div class="">I tried too sofia status gateway, but no success.</div><div class=""><br class=""></div><div class="">Here’s my Sofia status:</div><div class=""><div class=""><font face="Menlo" class="">freeswitch@internal> sofia status</font></div><div class=""><font face="Menlo" class=""> Name<span class="Apple-tab-span" style="white-space:pre">        </span> Type<span class="Apple-tab-span" style="white-space:pre">        </span> Data<span class="Apple-tab-span" style="white-space:pre">        </span>State</font></div><div class=""><font face="Menlo" class="">=================================================================================================</font></div><div class=""><font face="Menlo" class=""> external-ipv6<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:mod_sofia@[::1]:5080" class="">sip:mod_sofia@[::1]:5080</a><span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (0)</font></div><div class=""><font face="Menlo" class="">external-ipv6::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>NOREG</font></div><div class=""><font face="Menlo" class=""> 192.168.10.72<span class="Apple-tab-span" style="white-space:pre">        </span> alias<span class="Apple-tab-span" style="white-space:pre">        </span> internal<span class="Apple-tab-span" style="white-space:pre">        </span>ALIASED</font></div><div class=""><font face="Menlo" class=""> external<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:mod_sofia@192.168.10.72:5080" class="">sip:mod_sofia@192.168.10.72:5080</a><span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (1)</font></div><div class=""><font face="Menlo" class=""> external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>NOREG</font></div><div class=""><font face="Menlo" class=""> external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>NOREG</font></div><div class=""><font face="Menlo" class=""> external::5_JIVE<span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:**********@domain.jive.rtcfront.net" class="">sip:**********@domain.jive.rtcfront.net</a><span class="Apple-tab-span" style="white-space:pre">        </span>REGED</font></div><div class=""><font face="Menlo" class=""> external::4_NEXTIVA<span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:*******@sbc.voipdnsservers.com" class="">sip:*******@sbc.voipdnsservers.com</a><span class="Apple-tab-span" style="white-space:pre">        </span>REGED</font></div><div class=""><font face="Menlo" class=""> internal-ipv6<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:mod_sofia@[::1]:5060" class="">sip:mod_sofia@[::1]:5060</a><span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (0)</font></div><div class=""><font face="Menlo" class=""> internal<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> <a href="sip:mod_sofia@192.168.10.72:5060" class="">sip:mod_sofia@192.168.10.72:5060</a><span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (1)</font></div><div class=""><font face="Menlo" class="">=================================================================================================</font></div><div class=""><font face="Menlo" class="">4 profiles 1 alias</font></div></div><div class=""><br class=""></div><div class="">And my sofia status gateway, here I can’t see even the number of calls that is running:</div><div class=""><div class=""><font face="Menlo" class="">freeswitch@internal> sofia status gateway</font></div><div class=""><font face="Menlo" class=""> Profile::Gateway-Name<span class="Apple-tab-span" style="white-space: pre;">        </span> Data <span class="Apple-tab-span" style="white-space: pre;">        </span>State<span class="Apple-tab-span" style="white-space: pre;">        </span>Ping Time<span class="Apple-tab-span" style="white-space: pre;">        </span>IB Calls(F/T)<span class="Apple-tab-span" style="white-space: pre;">        </span>OB Calls(F/T)</font></div><div class=""><font face="Menlo" class="">=================================================================================================</font></div><div class=""><font face="Menlo" class="">external-ipv6::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>NOREG<span class="Apple-tab-span" style="white-space: pre;">        </span> 0.00<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0</font></div><div class=""><font face="Menlo" class=""> external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>NOREG<span class="Apple-tab-span" style="white-space: pre;">        </span> 0.00<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0</font></div><div class=""><font face="Menlo" class=""> external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span> <a href="sip:joeuser@example.com" class="">sip:joeuser@example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>NOREG<span class="Apple-tab-span" style="white-space: pre;">        </span> 0.00<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0</font></div><div class=""><font face="Menlo" class=""> external::5_JIVE<span class="Apple-tab-span" style="white-space: pre;">        </span><a href="sip:**********@domain.jive.rtcfront.net" class="">sip:**********@domain.jive.rtcfront.net</a><span class="Apple-tab-span" style="white-space: pre;">        </span>REGED<span class="Apple-tab-span" style="white-space: pre;">        </span> 0.00<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0</font></div><div class=""><font face="Menlo" class=""> external::4_NEXTIVA<span class="Apple-tab-span" style="white-space: pre;">        </span><a href="sip:*****@sbc.voipdnsservers.com" class="">sip:*****@sbc.voipdnsservers.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>REGED<span class="Apple-tab-span" style="white-space: pre;">        </span> 0.00<span class="Apple-tab-span" style="white-space: pre;">        </span>0/0<span class="Apple-tab-span" style="white-space: pre;">        </span>0/2</font></div><div class=""><font face="Menlo" class="">=================================================================================================</font></div><div class=""><font face="Menlo" class="">5 gateways: Inbound(Failed/Total): 0/0,Outbound(Failed/Total):0/2</font></div></div><div class=""><br class=""></div><div class="">So, I just want to know if my current call is using 5_JIVE or 4_NEXTIVA. In this actual scenario I can know that my calls are being made by Nextiva because I have 0/2 outbound calls there and for Jive I have 0/0… But if I have any number for Jive, I will not know anymore...</div><div class=""><br class=""></div><div class="">Any idea?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Leonardo Ribeiro</div><div class=""><br class=""></div></div>_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>