Azure-Samples/communication-services-javascript-quickstarts

Can't remove participant from video call

katyaechodxai opened this issue · 5 comments

Can't remove participant from call

Nothing happened during executing removeParticipant method from call

Minimal steps to reproduce

// Adding participant to call by phoneIdentifier 
const phoneIdentifier = { phoneNumber: <phoneNumber> };
const participantIdentifier = call.addParticipant(phoneIdentifier, { alternateCallerId: { phoneNumber: <azureCommunicationServicePhoneNumber> }});
// addParticipant executed

........


// Removing participant from call by participant Phone Identifier 
await call.removeParticipant(participantIdentifier ); // starts executing, but not finishes

Any log messages given by the failure

Error doesn't occur, just function doesn't work.

Expected/desired behavior

'removeParticipant' method remove participant from call by participantIdentifier

Did you populate the participant identifier for the participant to remove?

Also which quickstart are you referring to?

Yes, I populated participant identifier, and I managed to delete participant by his identifier only after he connected (his status updated to "Connected").
But I couldn't remove him during his status "Connecting". I need exactly this logic.
All examples I took from https://www.npmjs.com/package/@azure/communication-calling

This seems like a limitation of the @azure/communication-calling SDK. I'd recommend asking this question at https://docs.microsoft.com/en-us/answers/topics/azure-communication-services.html as there is a bigger community as well as the modality team answering questions there.

Closing due to lack of activity.