Home > Software engineering >  How do I start a group call on Azure Communication Services with the JavaScript SDK?
How do I start a group call on Azure Communication Services with the JavaScript SDK?

Time:06-15

I am trying to implement group calling using Azure Communication Services, using only azure-communication-calling which provides the CallClient. When I access the group Id from Call, that is returned after CallClient.startCall, through Call.info.groupId it's blank.
My question is, how do I get the group Id so that other users can join. Or is there a way to call CallClient.startCall that initiates the call as a group call?

CodePudding user response:

My question is, how do I get the group Id so that other users can join. Or is there a way to call CallClient.startCall that initiates the call as a group call?

According to documentation:

The groupId parameter requires data to be in GUID format. We recommend using randomly generated GUIDs that aren't considered personal data in your systems.

To start a new group call or join an ongoing group call, use the join method and pass an object with a groupId.

const context = { groupId: '<GUID>'};
const call = callAgent.join(context);

To generate GUID, you can refer to How to create a GUID / UUID

Updated references: CallInfo interface, Call Automation overview, Learn Azure Communication Services and Learn Azure Communication Services Day 7 – Joining a Group Call

  • Related