Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide
Code examples
Cisco TMS Extension Booking API Programming Reference Guide (13.0.1)
Page 27 of 33
The code snippet below show how to create a conference to two external participants (specified by IP-
address). A Cisco TelePresence MCU is required for this call to be saved.
address). A Cisco TelePresence MCU is required for this call to be saved.
// Specify username and password to authenticate to service.
// (Can also be done in web.config)
NetworkCredential credentials = new NetworkCredential(“xxx”, “yyy”, “ZZZ”);
BookingService bookingService = new BookingService();
bookingService.Credentials = credentials;
// Set API to use version 6
if (bookingService.ExternalAPIVersionSoapHeaderValue == null)
bookingService.ExternalAPIVersionSoapHeaderValue = new
BookingService.ExternalAPIVersionSoapHeader();
bookingService.ExternalAPIVersionSoapHeaderValue.ClientVersionIn = 5;
// Get a default conference object, where most common values are set
// (using default values specified in TMS)
Conference conference = bookingService.GetDefaultConference();
// Create an array of participants
Participant[] participants = new Participant[2];
// Create the elements of the array (the actual participants)
participants[0] = new Participant();
participants[0].ParticipantCallType = ParticipantType.IPVideo1; // Dial-out video
participants[0].NameOrNumber = “10.47.8.170”;
participants[1] = new Participant();
participants[1].ParticipantCallType = ParticipantType.IPVideo1; // Dial-out video
participants[1].NameOrNumber = “10.47.8.171”;
// Add the participants to the conference.
conference.Participants = participants;
// Save the conference, saving the returned conference (where all values are now
specified)
specified)
conference = bookingService.SaveConference(conference);
// Output information about the conference.
Console.Out.WriteLine(conference.ConferenceInfoText);
Console.Out.WriteLine(conference.UserMessageText);
Console.Out.WriteLine(conference.ConferenceId);
Booking API example with a recording participant
The code snippet below show how to create a conference to 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.
// Specify username and password to authenticate to service.