diff --git a/src/platform/web/session-manager/session-manager.ts b/src/platform/web/session-manager/session-manager.ts index 24a21a317..b39e9f8d2 100644 --- a/src/platform/web/session-manager/session-manager.ts +++ b/src/platform/web/session-manager/session-manager.ts @@ -571,7 +571,9 @@ export class SessionManager { throw new Error("Session description handler not instance of SessionDescriptionHandler"); } sessionDescriptionHandler.peerConnectionDelegate = { + ...sessionDescriptionHandler.peerConnectionDelegate, onicecandidate: (event) => { + sessionDescriptionHandler.peerConnectionDelegate?.onicecandidate?.(event) if (event.candidate?.type === "srflx") { this.logger.log(`[${inviter.id}] Found srflx ICE candidate, stop waiting...`); // In sip.js > 0.20.1 this cast should be removed as iceGatheringComplete will be public