Presense integration for webbased applications

To BM I had shared a simple piece of code to have presence integration - term for linking office communicator to any normal windows or web application - for one of the applications in my orgn.
I am not going to explain it all over here - if you want that please refer to BM's blog - rather tell you how i did it.

Disclaimer : We had no chance to see that code works if you have Office / Live communicator 2007. It would be good if someone could test and share this to the community

I had seen Presence integration on the Sharepoint pages ( If i remember correctly its the contacts webpart) . I was landing into Microsoft's presence integration samples and the ASP.NET examples were not quite interesting and looked like a lot of plumbing. I abandoned that idea and started looking at the HTML (view source) of the sharepoint pages and understood, which javascript piece is required, what ActiveX control is used...etc... If i am not wrong its all the functions and variables that starts with "IMNRC" in the sharepoint's big javascript.
Then it was only a matter of time to gather things into one piece and little patches.

SIP ID - Session initiation protocol ID - is key for communicator to work properly. Generally email ID is supposed to be the SIP ID. AD - Active Directory- generally have SIP ID for each user, if they have registered to use Office/ Live communication system. There are possibilities that SIP ID can differ from email ID. Its a good practice to retrieve from AD.
There would be a another post soon on retrieving user related details from AD using .NET. ( ofcourse, it will internally use Windows API functionalities- netapi132.dll to be exact)
I wanted to use that code in sharepoint webparts and unfortunately it doesn't work - for security reasons i believe.However, as a normal web application or web service, it showed no issues.

Note: To have Presence integration its required to have communicator installed and signed into it. If you have Name.NameCtrl component installed by office system 2003 or lower, the actual online status may not be shown appropriately for the contact who are not in your buddy list. If Office 2007 is installed in the client system, the newer version of Name.NameCtrl will show the right online status of the contacts invariable of they being in our buddies list or not.

Comments

Popular posts from this blog

Open source grid computing software

TYK API Gateway to AWS API Execute Gateway + Lambda

Effective CPU Utilizing with Parallel Extensions for .NET 3.5