<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=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Limit" class="">https://freeswitch.org/confluence/display/FREESWITCH/Limit</a><div class=""><br class=""><div style=""><blockquote type="cite" class=""><div class="">On Oct 13, 2015, at 10:52 AM, Leonardo Lima Ribeiro &lt;<a href="mailto:llribeiro90@gmail.com" class="">llribeiro90@gmail.com</a>&gt; 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="">I’ve searched a bit more and I think I will be fine using:<div class=""><br class=""></div><div class="">show channels</div><div class=""><br class=""></div><div class="">Then I can parse the result to see if my gateway is there…</div><div class=""><br class=""></div><div class="">What do you mean by using limit? It’s an api command?</div><div class=""><br class=""></div><div class="">Thank you!</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Em 13/10/2015, à(s) 11:42 AM, Michael Jerris &lt;<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>&gt; escreveu:</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="">We don't currently keep a counter of this. &nbsp;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 class=""><blockquote type="cite" class=""><div class="">On Oct 13, 2015, at 7:27 AM, Leonardo Lima Ribeiro &lt;<a href="mailto:llribeiro90@gmail.com" class="">llribeiro90@gmail.com</a>&gt; 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&gt; sofia status</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; Type<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external-ipv6<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 192.168.10.72<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;alias<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;internal<span class="Apple-tab-span" style="white-space:pre">        </span>ALIASED</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;external<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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="">&nbsp; &nbsp; 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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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="">&nbsp; &nbsp; 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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;external::5_JIVE<span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; <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="">&nbsp; &nbsp; &nbsp; external::4_NEXTIVA<span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp;<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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; internal-ipv6<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;internal<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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&gt; sofia status gateway</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; Profile::Gateway-Name<span class="Apple-tab-span" style="white-space: pre;">        </span>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Data &nbsp; &nbsp;<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>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp;&nbsp;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="">&nbsp; &nbsp; external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp;&nbsp;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="">&nbsp; &nbsp; external::<a href="http://example.com/" class="">example.com</a><span class="Apple-tab-span" style="white-space: pre;">        </span>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp;&nbsp;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="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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>&nbsp;&nbsp;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="">&nbsp; &nbsp; &nbsp; 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>&nbsp;&nbsp;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=""><a href="http://www.freeswitchsolutions.com/" class="">http://www.freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org" class="">http://www.freeswitch.org</a><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></div>_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com" class="">http://www.freeswitchsolutions.com</a><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></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>