User Left or Call Cancelled event is not firing after upgrading to 2.0.7-beta 1

Hi Support,

As a initiator, User Left or Call Cancelled event is not firing after upgrading to 2.0.7-beta 1 in audio and video call.

Thanks,

Hello @Mycortexdev,

We tried to replicate this issue but unfortunately we could not replicate it at our end. Can you please let us know if you face this issue every time or intermittently?

Issue happens everytime,

Tested below scenarios where i am facing problem,

  • Initiator calls
  • Initiator reject the call (Reject and End) before Receiver accepts
  • Initiator call ended, but Receiver not received any event (still in Call received event )
  • Initiator calls

  • Receiver accept the call

  • Receiver Ends the call

  • Initiator did not receive user left event

  • Initiator call
  • Receiver accept the call
  • Initiator ends the call
  • receiver received call ended event
  • but initiator did not receive call ended event

Thanks

Hello @Mycortexdev,

I did test the scenarios you mentioned, and everything seems to be working fine. Also for the first scenario, whenever the initiator cancels a call before the receiver accepts the call you need to call CometChat.rejectCall() as follows:

CometChat.rejectCall("SESSION_ID_OF_OUTGOING_CALL", CometChat.CALL_STATUS.CANCELLED).then(
    call => {
       console.log("Call rejected successfully", call);
    },
   error => {
       console.log("Call rejection failed with error:", error);
    }
);

You can check our ReactJs sample app here: https://github.com/cometchat-pro-samples/javascript-reactjs-chat-app