Avaya Client SDK

< Back to Package Overview

Call Participant Information

Using the Avaya Client SDK, you can easily integrate the ability for users of your application to retrieve information about call participants.

The methods to retrieve participant information are different between a peer-to-peer call (P2P) and a conference call. For a P2P call, participant information is obtained from the Call object whereas, for a conference call, information for the participant(s) are obtained from the Conference object.

Retrieving participant info for a P2P call

To get the participant's name only, use the getRemoteDisplayName() function.

String remotePartyName = call.getRemoteDisplayName();

To get full participant's data, use the getRemoteParticipant() function which returns the Participant object.

Participant remoteParticipant = call.getRemoteParticipant();

Retrieving participant info for a conference call

For a conference call, get a Conference object first using the Call.getConference() function.

if (call.isConference()) {
    Conference conference = call.getConference();
}

From the Conference object, use the getParticipants() function to retrieve a list which contains all the active participants in the Conference. From the list, information of an ActiveParticipant can be obtained by calling the appropriate method (e.g., for display name, use the getDisplayName() function).

List activeParticipants = conference.getParticipants();
List participants = new ArrayList<>();
for (ActiveParticipant participant : activeParticipants) {
    participants.add(participant.getDisplayName());
}