Forums Read-only archive

Filtering Policy reliad from CLI

5 posts · Brekeke SIP Server Forum

cphillips.ia Original post
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
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
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
java -classpath /var/lib/tomcat7/webapps/sip/WEB-INF/lib/ondosip.jar svctl localhost update policy

:)
cphillips.ia
That was simple enough... Thanks!