Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Programmatically "Apply Rules" in Dial Plan?
Author Message
kelinger
Brekeke Newbie


Joined: 21 Jan 2011
Posts: 1
Location: Phoenix, AZ

PostPosted: Fri Jan 21, 2011 12:16 pm    Post subject: Programmatically "Apply Rules" in Dial Plan? Reply with quote

1. Brekeke Product Name and version:
Brekeke SIP Server
Version 2.4.7.3 Advanced

2. Java version:
Version 6, Update 23

3. OS type and the version:
Windows XPsp3

4. UA (phone), gateway or other hardware/software involved:
Siemens enterprise communications server

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
Pattern 8 (SIP Server inside network utilizing SIP trunking via Internet)

6. Your problem:

Everything is working as designed. However, we have about 800 rules setup and they point to one, two, or both master switches as end-points. Typically, these do not change but if we take a system down for maintenance, etc., we want to redirect or some or all inbound calls to the other switch.

We've developed an interface for select users to change the rules on a bulk basis (eg. change the dial plan for the 50 DNISs related to project X to go from switch 1 to switch 2). This program then generates a new "dialplan.tbl" file and uploads it to C:\program files\Brekeke\proxy\webapps\proxy\WEB-INF\work\sv\etc\ (or the user can use the Brekeke web interface and import the rules).

In either case, however, the rules are not truly active until the user goes to the Brekeke web interface, dialplan, and hits the "Apply Rules" button.

The question is this: is there a way that, after we copy the rules to C:\program files\Brekeke\proxy\webapps\proxy\WEB-INF\work\sv\etc\, we can trigger the "Apply Rules" function without having users go into your interface to do so? In other words, we'd like to have OUR interface that generates the rules themselves actually apply them in one step versus requiring access through YOUR interface?

As always, thanks for a great product and all the user-to-user support!

Ken
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Jan 24, 2011 1:21 pm    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=update&param=rule

For example
http://172.16.14.10:8080/proxy/cmd?cmd=update&param=rule
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