Filtering Policy reliad from CLI

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
cphillips.ia
Posts: 21
Joined: Tue Nov 18, 2014 3:56 am
Location: USA

Filtering Policy reliad from CLI

Post by cphillips.ia »

1. Brekeke Product Name and Version: Brekeke SIP Server - 3.3.8.1/379-7

2. Java version: OpenJDK 64-Bit Server VM

3. OS type and the version: Debian 7 - 3.2.0-4-amd64

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

5. Your Problem: -- No Problem, just a question...

How would I reload the filtering policy from the CLI after updating the filterpolicy.tbl file directly (looking for the equivalent of pressing the "Apply Policies" button)?

Thanks!
Haddas
Posts: 170
Joined: Thu Jan 17, 2008 11:55 am

Post by Haddas »

Do you know the way to execute a management command from web and command line?

If your company is a Brekeke's partner, you can access the API information.
cphillips.ia
Posts: 21
Joined: Tue Nov 18, 2014 3:56 am
Location: USA

Post by cphillips.ia »

For example, we reload the dialplan after updating dialplan.tbl with:

java -classpath /var/lib/tomcat7/webapps/sip/WEB-INF/lib/ondosip.jar svctl localhost update rule

I was just looking for the correct function to call to apply the filtering policies....
Haddas
Posts: 170
Joined: Thu Jan 17, 2008 11:55 am

Post by Haddas »

java -classpath /var/lib/tomcat7/webapps/sip/WEB-INF/lib/ondosip.jar svctl localhost update policy

:)
cphillips.ia
Posts: 21
Joined: Tue Nov 18, 2014 3:56 am
Location: USA

Post by cphillips.ia »

That was simple enough... Thanks!
Post Reply