Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide

Page of 81
Externally Hosted Conference example
The code snippet below demonstrates how to create an Externally Hosted Conference, that is, a conference 
with a given SIP video address.
public
 
void
 SaveConferenceWithExternallyHostedConference()
 
    {
 
        InitBookingService();
 
        
var
 conference = bookingService.GetDefaultConference();
 
 
        
// Add two SIP dial in participants, and one meeting room
 
        conference.Participants = 
new
[]
 
            {
 
                
new
 Participant
 
                   {
 
                        NameOrNumber = 
"SIP Dial-in 1"
, ParticipantCallType = ParticipantType.SIP
 
                   },
 
                
new
 Participant
 
                   {
 
                        NameOrNumber = 
"SIP Dial-in 2"
, ParticipantCallType = ParticipantType.SIP
 
                   },
 
                
new
 Participant
 
                   {
 
                        
// Adds a TMS participant
 
                        ParticipantCallType = ParticipantType.TMS, ParticipantId = 4
 
                   }
 
            };
 
 
        
// Add the externally hosted conference
 
        conference.ExternalConference = 
new
 ExternalConference
 
            {
 
                ExternallyHosted = 
new
 ExternalHost
 
                   {
 
                        DialString = 
"externalhost@example.com"
,
 
                   }
 
            };
 
 
        
// Save the conference, saving the returned conference (where all values are now specified) 
 
        conference = bookingService.SaveConference(conference);
 
 
        PrintConferenceInformation(conference);
 
    }
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide (14.6)     
Page 73 of 81
Code examples
Externally Hosted Conference example