3.3. The Call-Blocking Service
3.3.1. The Call-Blocking Service: Installing, Configuring and Running
Software Prerequisites
- Either an MSS for JBoss or an MSS for Tomcat Installation
The Call-Blocking Service requires either an MSS for JBoss or an MSS for Tomcat binary installation.
Both the call-blocking-1.1.war WAR file and the call-blocking-servlet-dar.properties DAR file that you downloaded should be placed into different directories in your SIP Servlet Server installation hierachy. Which directory depends on whether you are using the Call-Blocking Service with MSS for JBoss or with MSS for Tomcat:
- MSS for JBoss
Place call-blocking-1.1.war into the JBOSS_HOME/server/default/deploy/ directory, and call-blocking-servlet-dar.properties into the JBOSS_HOME/server/default/conf/dars/ directory.
- MSS for Tomcat
Place call-blocking-servlet-dar.properties into the CATALINA_HOME/webapps/ directory, and call-blocking-servlet-dar.properties into the CATALINA_HOME/conf/dars/ directory.
The darConfigurationFileLocation attribute of the Service element must be set to the value conf/dars/call-blocking-servlet-dar.properties. The instructions for doing so are given below by SIP Servlets Server type:
- MSS for JBoss
Open the JBOSS_HOME/server/default/deploy/jboss-web.deployer/server.xml configuration file and find the Service element. Add an attribute to it called darConfigurationFileLocation, and set it to conf/dars/call-blocking-servlet-dar.properties:
<Service
name="jboss.web"
className="org.mobicents.servlet.sip.startup.SipStandardService"
sipApplicationDispatcherClassName="org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl"
darConfigurationFileLocation="conf/dars/call-blocking-servlet-dar.properties">
Example 3.4. Editing MSS for JBoss's server.xml for the Call-Blocking Service
Make sure that the configuration file only contains one darConfigurationFileLocation attribute: your new one.
- MSS for Tomcat
Open the CATALINA_HOME/conf/server.xml configuration file and find the Service element. Add an attribute to it called darConfigurationFileLocation, and set it to conf/dars/call-blocking-servlet-dar.properties:
<Service
name="Sip-Servlets"
className="org.mobicents.servlet.sip.startup.SipStandardService"
sipApplicationDispatcherClassName="org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl"
darConfigurationFileLocation="conf/dars/call-blocking-servlet-dar.properties">
Example 3.5. Editing MSS for Tomcat's server.xml for the Call-Blocking Service
Make sure that the configuration file only contains one darConfigurationFileLocation attribute: your new one.
Once the WAR and DAR files have been placed in the right directories, and the JBoss Application Server or Tomcat Servlet Container knows where to find them (which you specified in a server.xml file), then you should go ahead and run SIP Servlets Server.
The following procedure shows how to test the Call-Blocking Service.
Procedure 3.5.
Start a SIP softphone of your choice. The account name should be blocked-sender. The From Header should list one of the following addresses: sip:blocked-sender@sip-servlets.com or sip:blocked-sender@127.0.0.1. The SIP softphone does not need to be registered.
Make a call to any address, and you should receive a FORBIDDEN response.
You may also wish to delete the WAR and DAR files for the Call-Blocking Service, which you installed in
Installing.