-
Notifications
You must be signed in to change notification settings - Fork 181
ConferenceDemo
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.
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).
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
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.