[Freeswitch-users] Gateway State

Michael Jerris mike at jerris.com
Tue Oct 13 18:42:10 MSD 2015


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.

> On Oct 13, 2015, at 7:27 AM, Leonardo Lima Ribeiro <llribeiro90 at gmail.com> wrote:
> 
> Hello all!
> 
> I need to know how many calls are running for each gateway (in my case outbound calls).
> 
> 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.
> 
> I tried too sofia status gateway, but no success.
> 
> Here’s my Sofia status:
> freeswitch at internal> sofia status
>                      Name	   Type	                                      Data	State
> =================================================================================================
>             external-ipv6	profile	                  sip:mod_sofia@[::1]:5080 <sip:mod_sofia@[::1]:5080>	RUNNING (0)
> external-ipv6::example.com <http://example.com/>	gateway	                   sip:joeuser at example.com <sip:joeuser at example.com>	NOREG
>             192.168.10.72	  alias	                                  internal	ALIASED
>                  external	profile	          sip:mod_sofia at 192.168.10.72:5080 <sip:mod_sofia at 192.168.10.72:5080>	RUNNING (1)
>     external::example.com <http://example.com/>	gateway	                   sip:joeuser at example.com <sip:joeuser at example.com>	NOREG
>     external::example.com <http://example.com/>	gateway	                   sip:joeuser at example.com <sip:joeuser at example.com>	NOREG
>          external::5_JIVE	gateway	   sip:**********@domain.jive.rtcfront.net <sip:**********@domain.jive.rtcfront.net>	REGED
>       external::4_NEXTIVA	gateway	      sip:*******@sbc.voipdnsservers.com <sip:*******@sbc.voipdnsservers.com>	REGED
>             internal-ipv6	profile	                  sip:mod_sofia@[::1]:5060 <sip:mod_sofia@[::1]:5060>	RUNNING (0)
>                  internal	profile	          sip:mod_sofia at 192.168.10.72:5060 <sip:mod_sofia at 192.168.10.72:5060>	RUNNING (1)
> =================================================================================================
> 4 profiles 1 alias
> 
> And my sofia status gateway, here I can’t see even the number of calls that is running:
> freeswitch at internal> sofia status gateway
>     Profile::Gateway-Name	                        Data    	State	Ping Time	IB Calls(F/T)	OB Calls(F/T)
> =================================================================================================
> external-ipv6::example.com <http://example.com/>	         sip:joeuser at example.com <sip:joeuser at example.com>	NOREG	  0.00	0/0	0/0
>     external::example.com <http://example.com/>	         sip:joeuser at example.com <sip:joeuser at example.com>	NOREG	  0.00	0/0	0/0
>     external::example.com <http://example.com/>	         sip:joeuser at example.com <sip:joeuser at example.com>	NOREG	  0.00	0/0	0/0
>          external::5_JIVE	sip:**********@domain.jive.rtcfront.net <sip:**********@domain.jive.rtcfront.net>	REGED	  0.00	0/0	0/0
>       external::4_NEXTIVA	sip:*****@sbc.voipdnsservers.com <sip:*****@sbc.voipdnsservers.com>	REGED	  0.00	0/0	0/2
> =================================================================================================
> 5 gateways: Inbound(Failed/Total): 0/0,Outbound(Failed/Total):0/2
> 
> 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...
> 
> Any idea?
> 
> Thank you,
> Leonardo Ribeiro
> 
> _________________________________________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151013/a73b2cf2/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list