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.
To get the participant's name only, use the getRemoteDisplayName() function.
var remotePartyName = call.getRemoteDisplayName();
To get full participant's data, use the getRemoteParticipant() function which returns the Participant object.
var remoteParticipant = call.getRemoteParticipant();
For a conference call, get a Conference object first using the Call.getConference() function.
if (call.isConference()) {
var conference = call.getConference();
}
From the Conference object, use the getActiveParticipants() function to retrieve a DataSet which contains all the active participants in the Conference. From the DataSet, information of an ActiveParticipant can be obtained by calling the appropriate method (e.g., for display name, use the getDisplayName() function).
var participants = [];
conference.getActiveParticipants().forEach(function(participant) {
participants.push(participant.getDisplayName());
});
--- title: JavaScript Communication Services Package version: 4.31.0.0 - Aug 2023 copyright: Copyright © 2013-2023 by Avaya, All Rights Reserved. publisher: devconnectprogram.com publisherAddress: Avaya comments: '' tableOfContents: true tocAccordion: 2 rightPanel: false publicOnly: false leftPanel: true tableOfContentHeader: true showPageTitle: true gridLayout: toc: 2 codePanelPercent: 50 headerHeight: 0 footerHeight: 0 documentSearch: true languageTabs: - javascript: JavaScript laTexMath: false codeHighlight: true codeHighlightTheme: agate tocSelectors: h2,h3,h4 tocFooters: [] versionLinks: - title: Current link: "/site/global/products_resources/avaya_client_sdk/programming_docs/current/introduction/index.gsp" newTab: false siteLinks: - title: Avaya Home link: "/" newTab: false documentCollectionOptions: tabs: false baseUrl: '' documentCollection: [] source_file: "/home/build/.jenkins/workspace/avaya-slate/source/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide/call_participant_info.md" sourcePath: "/home/build/.jenkins/workspace/avaya-slate/source/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide" sourceFileName: call_participant_info sourceType: ".md" url: site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide/call_participant_info.gsp urlPath: site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide urlFileName: call_participant_info urlExtension: ".gsp" titlePage: true gvars: - productFolder: client_sdk - releaseFolder: current BackToPackageOverview: "< Back to Package Overview" BpImages: "/static/images/avaya_client_sdk/programming_docs/current/" DwlAndroidSdk: "Android SDK" DwlIosSdk: "iOS SDK" DwlWindowsSdk: "Windows SDK" DwlMacosSdk: "macOS SDK" DwlJavaScriptSdk: "JavaScript SDK" DwlReleaseNotes: "Avaya Client SDK Release Notes" Renderer_Konva_KonvaSelectionTool: "KonvaSelectionTool" Renderer_Konva_KonvaMarkerTool: "KonvaMarkerTool" Renderer_Konva_KonvaWhiteboardTools: "KonvaWhiteboardTools" Renderer_Konva_KonvaWhiteboardRenderer: "KonvaWhiteboardRenderer" Renderer_Konva_KonvaLineTool: "KonvaLineTool" Renderer: "Renderer" Renderer_Konva_KonvaPenTool: "KonvaPenTool" Renderer_Konva: "Konva" Renderer_Konva_KonvaWhiteboardConverter: "KonvaWhiteboardConverter" Renderer_Konva_KonvaContentSharingRenderer: "KonvaContentSharingRenderer" Renderer_Konva_KonvaTextTool: "KonvaTextTool" Renderer_Konva_KonvaStampTool: "KonvaStampTool" Renderer_Konva_KonvaCircleTool: "KonvaCircleTool" Renderer_Konva_KonvaRectangleTool: "KonvaRectangleTool" Services_Contacts_Terminal: "Terminal" Services_Contacts_EditableContactStringField: "EditableContactStringField" Config_AMMConfiguration: "AMMConfiguration" Config_InvalidCredentialsEvent: "InvalidCredentialsEvent" Services_Contacts_ContactsError: "ContactsError" Base_VideoDevice: "VideoDevice" Services_Collaboration_WhiteboardTools: "WhiteboardTools" Services_Call_CallException: "CallException" Services_Conference_ChatMessage: "ChatMessage" Config_SGConfiguration: "SGConfiguration" Services_Conference_Conference: "Conference" Services_Messaging: "Messaging" Services_Call_AudioDetails: "AudioDetails" Services_Collaboration_PenTool: "PenTool" Services_Call_ConferenceEntryOptions: "ConferenceEntryOptions" Base_Promise: "Promise" Services_Collaboration_Point: "Point" Services_Call_VideoChannel: "VideoChannel" Base_DataSet: "DataSet" Services_Contacts_Contacts: "Contacts" Services_Collaboration_WhiteboardText: "WhiteboardText" Services_Call_RingbackToneURLs: "RingbackToneURLs" Services_Contacts_ContactSearchRequest: "ContactSearchRequest" Services_Collaboration_Circle: "Circle" Services_Collaboration_RectangleTool: "RectangleTool" Services_Contacts_ContactPhoneField: "ContactPhoneField" Services_Collaboration_WhiteboardRenderer: "WhiteboardRenderer" Services_Collaboration_CollaborationError: "CollaborationError" Services_Presence_Presence: "Presence" Services_Messaging_Conversation: "Conversation" Services_Collaboration_ClearTool: "ClearTool" Services_Messaging_ChatStateEvent: "ChatStateEvent" Services_Contacts_ContactNumberField: "ContactNumberField" Services_Collaboration_ContentSharing: "ContentSharing" Services_Presence_PresenceService: "PresenceService" Config_AbstractCredentialProvider: "AbstractCredentialProvider" Services_VoiceMessaging_VoiceMessagingStatusParameters: "VoiceMessagingStatusParameters" Services_Messaging_Messaging: "Messaging" Services_Collaboration_Participant: "Participant" Base_MediaServices: "MediaServices" Services_Collaboration_TextTool: "TextTool" Services_Collaboration_AbstractShape: "AbstractShape" Config_NetworkProviderConfiguration: "NetworkProviderConfiguration" Services_Contacts_ContactStringField: "ContactStringField" Config_CollaborationConfiguration: "CollaborationConfiguration" Services_Messaging_MessagingQuery: "MessagingQuery" Services_Conference_PendingParticipant: "PendingParticipant" Services_Conference: "Conference" Config_VoIPConfigurationVideo: "VoIPConfigurationVideo" AvayaClientServices: "AvayaClientServices" Services_Messaging_Escalation: "Escalation" Base_Capability: "Capability" Base_VideoInterface: "VideoInterface" Config_UCCPConfiguration: "UCCPConfiguration" Config_CallUserConfiguration: "CallUserConfiguration" Base_BaseError: "BaseError" Services_Call_UserToUserInfo: "UserToUserInfo" Services_Collaboration_CircleTool: "CircleTool" Renderer_ContentSharingRenderer: "ContentSharingRenderer" Config_ServerInfo: "ServerInfo" Services_Conference_DroppedParticipant: "DroppedParticipant" Config_AnalyticsConfiguration: "AnalyticsConfiguration" Services_Contacts: "Contacts" Services_Call_CallCreationInfo: "CallCreationInfo" Services_Contacts_EditableContact: "EditableContact" Services_Collaboration_MarkerTool: "MarkerTool" Services_Collaboration_Bitmap: "Bitmap" Services_Collaboration_Collaboration: "Collaboration" Services_Messaging_MessagingError: "MessagingError" Base_AudioOutputInterface: "AudioOutputInterface" Services_Participant: "Participant" Config_ACSConfiguration: "ACSConfiguration" Services_Messaging_Attachment: "Attachment" User: "User" Services_Contacts_MatchedContactsWithMatchLevel: "MatchedContactsWithMatchLevel" Config_CredentialProvider: "CredentialProvider" Config_WCSCredentialTokenProvider: "WCSCredentialTokenProvider" Services_Contacts_ContactBooleanField: "ContactBooleanField" Services_Collaboration_Shape: "Shape" Base_AudioInterface: "AudioInterface" Services_Contacts_ResolveContactsRequest: "ResolveContactsRequest" Services_Presence_PresenceListSubscription: "PresenceListSubscription" Services_Messaging_Participant: "Participant" Services_Collaboration_DeleteTool: "DeleteTool" Services_Call_Call: "Call" Services_Conference_Chat: "Chat" Services_Collaboration: "Collaboration" Services_Contacts_ContactIMAddressField: "ContactIMAddressField" Base_SettingsFileParser: "SettingsFileParser" Services_Presence: "Presence" Services: "Services" Base_LoggerInterface: "LoggerInterface" Services_Presence_SelfPresence: "SelfPresence" Services_Call_VideoDetails: "VideoDetails" Services_Collaboration_Whiteboard: "Whiteboard" Config_CredentialTokenProvider: "CredentialTokenProvider" Services_Contacts_ContactFieldList: "ContactFieldList" Config_MediaConfiguration: "MediaConfiguration" Services_VoiceMessaging_VoiceMessaging: "VoiceMessaging" Config_VoIPConfigurationAudio: "VoIPConfigurationAudio" Services_Collaboration_WhiteboardSurface: "WhiteboardSurface" Services_Contacts_EditableContactBooleanField: "EditableContactBooleanField" Services_Contacts_ContactField: "ContactField" Services_Presence_PresenceError: "PresenceError" Services_Contacts_EditableContactNumberField: "EditableContactNumberField" Config_PresenceConfiguration: "PresenceConfiguration" Services_Collaboration_SelectionTool: "SelectionTool" Services_Contacts_Contact: "Contact" Services_Messaging_Message: "Message" Config_WCSConfiguration: "WCSConfiguration" Services_Collaboration_Frame: "Frame" Base_AudioDevice: "AudioDevice" Services_ContentSharing: "ContentSharing" Config_GuestCredentialProvider: "GuestCredentialProvider" Config: "Config" Services_Call_Calls: "Calls" Services_Contacts_EditableContactIMAddressField: "EditableContactIMAddressField" Base_AudioInputInterface: "AudioInputInterface" Config_UserConfiguration: "UserConfiguration" Services_VoiceMessaging: "VoiceMessaging" Services_Contacts_ResolveContactResult: "ResolveContactResult" Services_Call: "Call" Services_Contacts_EditableContactPhoneField: "EditableContactPhoneField" Services_Collaboration_Collaborations: "Collaborations" Services_Collaboration_StampTool: "StampTool" Services_Conference_Participant: "Participant" Services_Collaboration_LineTool: "LineTool" Services_Conference_ActiveParticipant: "ActiveParticipant" Base: "Base" Base_DataRetrieval: "DataRetrieval" Services_Contacts_EditableContactEmailAddressField: "EditableContactEmailAddressField" Services_Contacts_ContactEmailAddressField: "ContactEmailAddressField"