Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide
// use the first recording device in the array
var
recordingAlias = recordingDevicesWithAliases.First
();
if
(recordingAlias.Aliases !=
null
&& recordingAlias.Aliases.Any())
{
foundAliasInformation =
true
;
// use the first alias found on the first recording device
AliasInfo aliasInfo = recordingAlias.Aliases.First();
recordingParticipant.ParticipantCallType = ParticipantType.TMS;
recordingParticipant.ParticipantId = aliasInfo.SystemId;
recordingParticipant.NameOrNumber = aliasInfo.AliasId;
}
}
if
(foundAliasInformation)
{
conference.Participants =
new
[]
{
dialOutParticipant,
recordingParticipant
};
}
else
{
// no alias information found in TMS
conference.Participants =
new
[]
{
dialOutParticipant
};
}
// Save the conference, saving the returned conference (where all values are now specified)
conference = bookingService.SaveConference(conference);
PrintConferenceInformation(conference);
}
Booking Example Where One Occurrence is Saved as Defective
The code snippet below demonstrates how to create a conference with two participants. One of the participants is a
recording participant, the other a video system registered in TMS.
recording participant, the other a video system registered in TMS.
public
void
SaveConferenceOneInstanceBecomesDefective()
{
InitBookingService();
var
start = DateTime.Now.AddHours(1);
var
end = start.AddMinutes(10);
var
conflictingConference = bookingService.GetDefaultConference();
// Conflicting conference starts tomorrow
conflictingConference.StartTimeUTC = start.AddDays(1).ToString(
"u"
);
conflictingConference.EndTimeUTC = end.AddDays(1).ToString(
"u"
);
var
conflictingParticipant =
new
Participant
{
ParticipantCallType = ParticipantType.TMS,
ParticipantId = 1009
};
// Add two SIP dial in participants, and one meeting room
conflictingConference.Participants =
new
[] { conflictingParticipant };
// Save the conference, saving the returned conference (where all values are now specified)
58
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide