microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

Issue with getting participants of a call in PSI Bot

Open Javeria-Arif opened this issue 1 year ago • 5 comments

Hi, I want to get all the participants of the meeting that the bot is in. But this line of code which is already present in MediaFrameSourceComponent.cs in Received() method. Looks like, the GetParticipantFromMSI() is returning null. The code I'm referring is:

var participant = CallHandler.GetParticipantFromMSI(this.callHandler.Call, buffer.ActiveSpeakerId);

Javeria-Arif avatar Mar 14 '24 10:03 Javeria-Arif

Please verify that the buffer.ActiveSpeakerId is not uint.MaxValue when trying to get the participant using that method. This will be the case, when nobody is currently the dominant speaker, which happens quite quickly after a short period of silence in the call.

InDieTasten avatar Mar 15 '24 17:03 InDieTasten

@InDieTasten ActiveSpeakerId changes for every speaker. It appears like '201' or '602'. So ig it is not uint.MaxValue

Javeria-Arif avatar Mar 19 '24 09:03 Javeria-Arif

I'm not familiar with the PSI bot. I would add logging that displays all participants using call.Participants collection and the respective Audio Socket IDs for each of them, whenever there is a change to the participant collection. Then it should become more clear, if there is an issue with the GetParticpantFromMSI method, or if something else in your setup is causing trouble.

InDieTasten avatar Mar 19 '24 15:03 InDieTasten

@InDieTasten Alright, thanks for the information🙂. I'll keep the issue open for any further responses, in case someone can provide any leads as to why this is occurring

Javeria-Arif avatar Mar 21 '24 09:03 Javeria-Arif