我正在尝试使用 UCMA 3.0 安排一次 lync 会议。创建会议后,我将 ConferenceUri 发送给用户并让他们加入会议。
<a href="callto:sip:tuser02@domain.ch;gruu;opaque=app:conf:focus:id:XXXXXXX">Lync Test 2.0</a>
我使用以下代码安排会议:
public LyncConference CreateConference(LyncConference lyncConference)
{
ApplicationEndpoint appEndpoint = CreateApplicationEndpoint();
if (appEndpoint == null)
{
return null;
}
// Event to notify the main thread when the endpoint has scheduled a conference.
AutoResetEvent waitForConferenceScheduling = new AutoResetEvent(false);
LyncConference newLyncConference = null;
ConferenceScheduleInformation conferenceScheduleInformation = CreateConferenceScheduleInformation(lyncConference, null);
WriteLine("New Conference Schedule Information created. Calling Lync ...", EventLogEntryType.Information);
Exception error = null;
appEndpoint.ConferenceServices.BeginScheduleConference(conferenceScheduleInformation,
result =>
{
try
{
Conference conference = appEndpoint.ConferenceServices.EndScheduleConference(result);
newLyncConference = CreateLyncConference(conference);
waitForConferenceScheduling.Set();
}
catch (Exception e)
{
error = e;
WriteLine(e.Message, EventLogEntryType.Error);
waitForConferenceScheduling.Set();
}
},
appEndpoint.ConferenceServices);
// Wait until scheduling of the conference completes.
waitForConferenceScheduling.WaitOne();
if (error != null)
{
String errorMessage = "Error while creating a new lync conference: " + error.Message;
WriteLine(errorMessage, EventLogEntryType.Error);
throw new Exception(error.Message, error);
}
WriteLine("Conference scheduled with ID: " + newLyncConference.ConferenceId, EventLogEntryType.Information);
PrintConferenceInfo(newLyncConference);
return newLyncConference;
}
安排会议后,我将属性 Conference.ConferenceUri 发送给用户。如果用户单击带有 ConferenceUri 的链接,则 lync 客户端会做出反应并询问是否要召开会议。一切正常,但我一个人在会议上,还有一个自 120 天以来一直处于离线状态的假冒用户。
有人能帮我吗?非常感谢。