The <Conference> Resource Object represents a single conference originated and terminated from an account.
A Conference with a given Sid can be fetched by the following code snippet
String Sid; . . . Conference Conf1 = Conference.getConference(Sid);
A Field of a Conference Object can be accessed by using the corresponding getMethod for that Field
String Name; Name = Conf1.getFriendly_name().
| Property | Method |
|---|---|
Sid |
getSid(). |
FriendlyName |
getFriendly_name(). |
Status |
getStatus(). |
DateCreated |
getDate_created(). |
DateUpdated |
getDate_updated(). |
AccountSid |
getAccount_sid(). |
ApiVersion |
getApi_version(). |
Uri |
getUri(). |
In addition to these, There are methods available to access the List of Participants in a Live Conference.
A Participant represents a single participant currently connected to a running conference. It is idefiable by its CallSid.
Fetching a Participant with a given Sid from a Live Conference by its CallSid.
String Callsid; . . . Participant jack = Conf1.getParticipant(Callsid);
Fetching the List of Participants in a Live Conference
ParticipantList Plist = Conf1.getParticipantList();
The different Fields of the Participant calls that can be accessed using the corresponding getMethod().
| Fields | Method |
|---|---|
CallSid |
getCall_sid(). |
ConferenceSid |
getConferenceSid(). |
DateCreated |
getDate_created(). |
DateUpdated |
getDate_updated(). |
AccountSid |
getAccount_sid(). |
Muted |
getMuted(). |
StartConferenceOnEnter |
getStart_conference_on_enter(). |
EndConferenceOnExit |
getEnd_conference_on_exit(). |
Uri |
getUri(). |
If you need to mute any particular Participant in a Live conference,
Participant jack ;
.
.
.
jack.Mute("True");
If you want to capture the new Muted Participant Call,
jack = jack.Mute("True");
The size of the Fetched List can be known by
int size = List.size();
The a Conference from the fetched ConferenceList Object can be obtained by
Conference a = List.get(1);
We can also access the Additional Paging Information by using the Methods of NotificationList
String Uri; Uri = List.getpreviouspageuri();
The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: