Skip to content
deruelle edited this page Dec 17, 2014 · 1 revision

Table of Contents

Service Description

This example is focusing on the interaction with the more advanced features in Mobicents Media Server - endpoint composition and conferencing.

It is using the Google's GWT Ajax framework with server-push updates (a.k.a "reverse Ajax" or Comet) to provide desktop-like experience for the user interface.

The application is demonstrating how Sip Servlets can work seamlessly with any third-party web framework without repackaging or modifying the deployment descriptors.

All that is needed are a two Java annotations in the code to specify the application name and the servlet name, nothing else.

How to activate it

From the binary

Download the latest version of the war file corresponding to this example from 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/conference-demo-dar.properties

You can now run your container (Tomcat or Jboss).




From the source

Please check out the speed dial example located under this location from the svn repository. Just call mvn clean install war:inplace to create the war file in the target directory

How to play with it

Once the application is deployed it is ready to serve requests. You can navigate to the application homepage to observe the conference status. There are two way to join the conference:

  # You can dial "sip-servlets-conference@localhost:5080" from a SIP Phone in order to join the conference.
  # You can dial a SIP Phone from the form in the web application.

Additionally once the conference is started you can play an announcement by typing a file name in the respective text-box and pressing "Play file". The file must be PCM, mono, 16 bits, 8KHz WAV. Participants can be muted and unmuted at any time.