Shruthi
Shruthi

Reputation: 11

Can a call be initiated in the same group as chat in Azure Communication Services

We are trying to integrate Group Chat and Calling application in Azure Communication service. We want users to initiate a Call in the same group in which the group chat is in the process without sharing the groupId for the call application. How do we achieve this?

Thankyou!

Upvotes: 0

Views: 151

Answers (1)

Reza Jooyandeh
Reza Jooyandeh

Reputation: 761

At this stage Azure Communication Services does not support calling a chat conversation directly. In the meantime, the recommendation would be to programmatically call the identifiers of the members of chat threads.

Initialize the chat thread client

let threadMembers = [];
for await (let page of chatThreadClient.listMembers().byPage()) {
  for (const threadMember of page) {
    threadMembers.push(threadMember);
  }
}
let ids = threadMembers.filter((threadMember) => threadMember.user);

Initialize call agent

callAgent.call(ids);

Upvotes: 1

Related Questions