Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incomingCall' listener not working . Getting error "Callingcommunicatoirerror at callAgentImpl.on" when using callAgent.on('incomingCall', handleIncomingCall) in reactjs #231

Open
ramkrishnasamanta8 opened this issue Jun 10, 2024 · 2 comments

Comments

@ramkrishnasamanta8
Copy link

No incoming event getting called when a remote participants join the call or exit from the call.

I have used the below code in App.js

const { token, user } = await fetchTokenResponse();
const tokenCredential = new AzureCommunicationTokenCredential(token);

const callClient = new CallClient();

const callAgent = await callClient.createCallAgent(tokenCredential);

callAgent.on('incomingCall', (incomingCallEvent) => {

      console.log('Incoming call event:', incomingCallEvent);

  });
@developerbaba443
Copy link

Same issue here.

@JamesBurnside
Copy link
Contributor

Hi @ramkrishnasamanta8, incomingCall is used for listening to new calls where your ACS client has been directly called by another client.

For getting events when a user joins or leaves a specific call use the call.on('remoteParticipantsUpdated') event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants