You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ringing through the Calls SDK. initiateCall(receiver:options:onSuccess:onError:) starts a call to a user or group, connect(sessionID:callSetting:onSuccess:onError:) prepares the session while it rings so answering joins almost immediately, and endCall(sessionID:status:onSuccess:onError:) ends it with an EndCallStatus (rejected, cancelled, busy or unanswered) that the other side receives.
Added CometChatCalls.addIncomingCallListener(_:_:) and CometChatIncomingCallListener to report incoming calls and how they ended, and injectIncomingCall(payload:) and injectIncomingCallEnded(payload:reason:) to hand a call push to the SDK.
Added CometChatCalls.getActiveSession() to return the live session, and CallSession.leave() to leave it.
Added CometChatCalls.addLoginListener(_:_:) and CometChatLoginDelegate to report Calls SDK login and logout results.
Added the onConnected and onParticipantConnected session events, which fire while a session is prepared and before the user joins.
Added setPeerCall(_:) on SessionSettingsBuilder for one-to-one calls, so the call ends for both participants when either one leaves.
Added CometChatAudioSession.callKitAudioEnabled to hand the audio session to CallKit. When it is on, the SDK starts audio when CallKit activates the session.
Enhancements
Updated WebRTC to 155.
Fixes
Fixed voice calls starting on the speaker. Voice calls now start on the earpiece.
Fixed one-to-one calls showing a reconnecting state and holding the call when the direct peer-to-peer link dropped while the media server link was still up.
Deprecations
Deprecated CallSession.leaveSession(). Use CallSession.leave() instead.