Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Getting Sessions List
Author Message
noiptel
Brekeke Talented


Joined: 22 Feb 2010
Posts: 68
Location: USA

PostPosted: Mon Sep 19, 2011 6:12 am    Post subject: Getting Sessions List Reply with quote

1. Brekeke Product Name and version: SIP SERVER 2.4.3.9/286

2. Java version: 1.6.0_16

3. OS type and the version: Windows 2003 / 5.2

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:

I am trying to get the session list from the Command prompt to execute certain tasks, but I am getting time out every time. I know the command works as I have used on a different server successfully, but for some reason it does not work on this one. Could someone please shed some light on why this java command is not working ? Below the output of the command:

C:\>java -classpath "\Program Files\Brekeke\proxy\webapps\proxy\WEB-INF\lib\ondosip.jar" svctl localhost sessionlist

Management tool for Brekeke's telephony server

error: time out.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Sep 19, 2011 10:08 am    Post subject: Reply with quote

if send command to brekeke on other pc, need to set IP instead of localhost
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Sep 19, 2011 10:58 am    Post subject: Reply with quote

Go to SIP Server's [Configuration] > [Advanced] page.
add "sipadmin.cmd.hosts.allow" with your PC's IP address.

For example:
sipadmin.cmd.hosts.allow=172.16.1.1
or
sipadmin.cmd.hosts.allow=172.+
(It can accept Regular expression.)

Push the [Save] button.


Access
http://<WEB_ADDESSS>/proxy/cmd?cmd=<COMMAND>

For example
http://172.16.14.10:8080/proxy/cmd?cmd=sessionlist
Back to top
View user's profile
noiptel
Brekeke Talented


Joined: 22 Feb 2010
Posts: 68
Location: USA

PostPosted: Tue Sep 20, 2011 6:39 pm    Post subject: Reply with quote

Thanks for your responses, I also realized I am not using the standard port 5060 on this server, so after adding the port it worked fine from the command prompt.

The command I used was:

C:\>java -classpath "\Program Files\Brekeke\proxy\webapps\proxy\WEB-INF\lib\ondosip.jar" svctl localhost:5160 sessionlist
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1