microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
211 stars 236 forks source link

Unable to get Participant Info from Graph SDK #723

Open Javeria-Arif opened 6 months ago

Javeria-Arif commented 6 months ago

Describe the issue There is an intermittent issue observed where the Graph SDK returns null participants when the PSI bot joins a call with one or any x number of participants already present. It appears that the Graph SDK is intermittently failing to fetch participants, resulting in null values being returned. This behavior needs investigation and resolution to ensure consistent functionality.

Code Snippet This code snippet is from CallHandler class which triggers on ParticipantUpdate:

if (participantDetails != null)
{
    json = updateParticipant(this.BotMediaStream.participants, participant, added,participantDetails.DisplayName);
}
else if (participant.Resource.Info.Identity.AdditionalData?.Count > 0)
{
    if (CheckParticipantIsUsable(participant))
    {
        json = updateParticipant(this.BotMediaStream.participants, participant, added);
    }
}

Expected behavior The expected behavior is consistent retrieval of accurate participant information by the Graph SDK. Currently, the SDK intermittently fails to provide accurate participant details, requiring investigation and resolution for consistent functionality.

Graph SDK Version: Microsoft.Graph V 5.44