Presence Layer In Project WebSynergy
By murali529 on May 11, 2008
In the recent years with the increasing demand for web2.0 and social communities, real time collaboration and presence capabilites are of huge demand in portals.Two famous protocols for doing voice chat and IM are SIP and XMPP respectively.Although each one of these has its plus and minus,there is a need of a common layer on the top of both of these.
People usually communicate using different modes viz chat,call,sms,mail. ruon(r u on) project aims to expose presence and communication layer as a service across portal.It will even have a common layer above SIP and XMPP as both of these can handle voice chat and IM, but initially we are starting with XMPP for Chat and SIP for Voice Call .Sailfin ,a robust server based on popular opensource application server glassfish is used as a SIP server for doing voice call.
A portlet to demo this idea has been showcased at JavaOne and will later be available for download at http://ruon.dev.java.net.Here the details and configuration steps of that portlet.Webservices are used for communicating with sailfin to get user status and sip urls.
Stepping up the Sailfin Machine
4.Deploy the ConvergedSipWebapplication on sailfin
Imp:-Please make sure that database is started before you deploy the webapplication.
Deploying the Presence Portlet
1.deploy the portlet on the websynergy machine.
2.In the deployed location of the portlet go to WEB-INF/classes/com/sun/presence/portlet/PresenceProperties.properties file and then change the sailfin location to the machine where sailfin is deployed.
Usage of the portlet:-
1.If you are logging into portal using <username>@sun.com .Here are the steps to configure the xlite client.
1.launch the xlite client
2.right click and select SIP Account settings
3.then click add to add an user
4.Now in the DisplayName,username and authorization username give the user as <username> .
5.Give the domain as test.com
6.In the "domain proxy" select proxy and give the address as sailfin machine name or Ip and port number ex:- <sailfin IP> :5060
2.Now login into the portal and select the SunSpace tab.
3.In some other machine login as say "ed"(or any other) user in xlite client.Refresh the portal page and then see the user is online.You can click on the online icon and talk to that user.