Posted by bhavanishankar
on June 19, 2010 at 12:19 PM PDT
MSRP support in CAFE has been evolving since I last wrote about it.
Among the many new things, I am going to cover one of its important capability i.e., ability to send large file(s) from a browser running on a remote machine to the SIP phones. Without such a support in CAFE/MSRP, it is very hard (if not impossible) to achieve such a functionality in a converged container.
Figure 1. Sending large file from remote client browser to the SIP phones.
In Figure 1, Alice, Bhavani and Bob are in a voice conference named firstname.lastname@example.org . Some other user running on a remote machine sends a large file from his browser to email@example.com using CAFE/MSRP. (Note that the SIP phones of Alice, Bhavani and Bob are MSRP capable eg.., Mercuro, Blink.)
CAFE/MSRP provides very simple APIs to do this. The end user need to write a simple web application and deploy it in CAFE container. The web application needs to contain following simple things:
(a) HTML page for the client browser (test.html):
(b) HTTP Servlet to handle the browser request and send the file to the SIP phones using the simple CAFE/MSRP APIs:
(c) And off course a VoiceConferenceBean is required for handling the voice conference. This bean gets invoked when the user joins the voice conference (As I mentioned earlier, we are sending file to voice conference attendees, using (a) and (b)).
To try it yourself:
The complete application is available here : https://sailfin-cafe.dev.java.net/files/documents/10280/150937/cafemsrp_...
Deploy it on SailFin container with CAFE framework (Get SailFin from sailfin.dev.java.net and CAFE from sailfin-cafe.dev.java.net ).
Once the application is deployed, let your SIP clients join the voice conference viz., firstname.lastname@example.org (refer initial few steps in my earlier SCREENCAST on how to create/join voice conference). Once the voice conference is established, send the file to conference attendees from remote browser by accessing http://<your-server-host:port>/cafemsrp_browser_file_transfer
For OCCAS deployment, I plan to write CAFE/MSRP on Oracle Communications Converged Application Server (OCCAS 4.0) which will cover how to deploy/run this application.
For the more details on MSRP APIs, refer CAFE javadocs at http://download.java.net/javaee5/sailfin-cafe/v1/apidocs/index.html
Write to me directly at email@example.com for any comments/questions.