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 日以上オフラインになっている別のなりすましユーザーと一緒に会議に参加しているのは私だけです。
誰かが私を助けることができますか?どうもありがとう。