问题
Currently I am running an ASP.NET web application and my web page needs to provide a button to get the Lync Meeting URL just like the Outlook does:
Please see the screenshot here: Lync Meeting Address in Outlook
The behavior of this button is when it is clicked, the Lync Meeting URL is retrieved (maybe from the Exchange server) and is shown on a asp:Label control on the web page.
I googled but I have been told that there are three SDKs can be considered for this scenario:
- Lync SDK - seems the Lync client must be running while the SDK is in use
- Microsoft Unified Communications Managed API (UCMA)
- Microsoft Exchange Web Services (EWS)
I am really confused on these three SDKs, and don't know how to achieve my goal by utilizing these SDKs, could someone please help me? It would be much appreciate if you can post some sample code here.
Thank you!
回答1:
I have implemented a similar solution(winform application) on UCMA. But you need a trusted application server to run such program.
回答2:
Connect to Exchange and retrieve the user's meeting schedule using Exchange WebServices (like you said with EWS), there is a property that hold the meeting URL in each meeting object, here is a good overview https://mohamedasakr.wordpress.com/2012/05/16/get-lync-online-meetings-information-using-the-ews-managed-api-2/
Make sure you are connected to the Lync Server and signed in. there are a bunch of good tutorials in the "How To" tab on the MSDN Lync 2013 guide
Once you have an instance of LyncClient initialized, call
yourLyncClientInstanceConversationManager.AddConversation();
In your Conversation added event handler, use
yourLyncClientInstance.ConversationManager.JoinConference(exchangeUrl);
来源:https://stackoverflow.com/questions/18049575/how-can-i-get-the-lync-meeting-url-programmatically-in-c