Azure-Samples / communication-services-web-calling-hero

Hero sample to showcase web calling capabilities for Azure Communication Services
MIT License
100 stars 157 forks source link

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

Open ramkrishnasamanta8 opened 3 months ago

ramkrishnasamanta8 commented 3 months ago

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 commented 3 months ago

Same issue here.