I found how SharePoint shows the lync presence on SharePoint, the magic is in the communication between IE & name.dll ActiveX control (which comes with OCS or office). This is something a hidden communication/integration done by Microsoft. Can we interfere in this communication for our advantage or use it to integrate SharePoint pages with our custom control?
Or more precisely, how about if I have my own presence server and want sharepoint to use my server to display the presence in the same manner as it shows the lync presence. What should I do to support such implemention? Should I hook the name.dll call and inject my dll code to return the presence? Please suggest.