How can I get the Lync Meeting URL programmatically in C#?

邮差的信 提交于 2019-12-25 07:15:44

问题


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:

  1. Lync SDK - seems the Lync client must be running while the SDK is in use
  2. Microsoft Unified Communications Managed API (UCMA)
  3. 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:


  1. 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/

  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

  3. Once you have an instance of LyncClient initialized, call

    yourLyncClientInstanceConversationManager.AddConversation();
    
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!