Getting Sessions List

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
noiptel
Posts: 68
Joined: Mon Feb 22, 2010 9:24 pm
Location: USA

Getting Sessions List

Post by noiptel »

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/ ... terns.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.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

if send command to brekeke on other pc, need to set IP instead of localhost
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

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
noiptel
Posts: 68
Joined: Mon Feb 22, 2010 9:24 pm
Location: USA

Post by noiptel »

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
Post Reply