Mobicents Sip Servlets
Call Blocking
Service Description
When receiving an INVITE request, Call Blocking checks if the from address is a blocked contact. If that's the case it sends out a FORBIDDEN in response otherwise it does nothing.
The blocked contacts are for now hard-coded addresses, and should later evolve towards a database.
Here is the list of blocked contacts :
- sip:blocked-sender@sip-servlets.com
- sip:blocked-sender@127.0.0.1
How to activate it
From the binary
You can find the war file corresponding to this example
- Mobicents Sip Servlets 2.X : here .
- Mobicents Sip Servlets 1.X : here
.
Drop the downloaded war file into your tomcat_home/webapps directory or jboss_home/server/default/deploy directory
Get the corresponding dar configuration file . To understand what the dar configuration file is used for, check the Application Router Documentation .
Drop it in your tomcat_home/conf/dars directory or jboss_home/server/default/conf/dars directory.
To use this dar file for this service, specify in the Service xml tag, darConfigurationFileLocation attribute of the tomcat_home/conf/server.xml file or jboss_home/server/default/deploy/jboss-web.deployer/server.xml , the following :
conf/dars/call-blocking-servlet-dar.propertiesYou can now run your container (Tomcat or Jboss).
How to play with it
Start a SIP Phone of your choice such as the account name should be blocked-sender. The From Header should be one of the following addresses : sip:blocked-sender@sip-servlets.com or sip:blocked-sender@127.0.0.1
The SIP phone doesn't have to be registered.
Make a call to any address, you should receive a Forbidden.
Mobicents Sip Servlets
Overview
Documentation
Frameworks
Examples
Contribute
- How to Contribute
- Write a Test/Run the Testsuite
- Feedback
- Source Repository
- Mobicents Sip Servlets in Eclipse
