Creating a conference with only one user via Lync api - Meet Now

风格不统一 提交于 2019-12-05 15:47:59

I don't believe you can do this in the client side SDK.

One option would be to create a UCMA application that responds to an incoming conversation by escalating to a conference and returning the URI back to the user.

Your custom client could then start a conversation with your application and send an IM. The conversation would then be escalated to a conference, and the URI returned from the application as an IM. Your custom client could then handle the URI as it pleases.

The UCMA SDK contains enough example code to get you up and running with this quickly

You can do this by adding a dummy user to the conference when you start it. The dummy can be any URI of the form: dumb@dumber.dum, a@b etc. The client SDK will automatically escalate to a conference call and remove the dummy user. The escalation will persist. Note that this will take some time, as it does in Microsoft's client as well.

One method to simulate Meetnow in Lync is by using Automation Class in Lync SDK.

BeginMeetNow() will create a conference with IM Modality add Audio Video Modality to conference using BeginConnect().

Automation automation = LyncClient.GetAutomation();
automation.BeginMeetNow((ar) =>
{
    conferenceWindow = automation.EndMeetNow(ar);
    conference = conferenceWindow.Conversation;

    conference.Modalities[ModalityTypes.AudioVideo].BeginConnect((ar1) =>
    {
        conference.Modalities[ModalityTypes.AudioVideo].EndConnect(ar1);
    }, null);
}, null);

Lync SDK 2013 : https://www.microsoft.com/en-in/download/details.aspx?id=36824

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