From 44cf488b8f9bce3b67d9221be38c68f551fb7888 Mon Sep 17 00:00:00 2001 From: ai-swe-agent Date: Fri, 17 Jan 2025 13:53:54 +0000 Subject: [PATCH] fix(webrtc): Stop ringback tone when call is hung up (#406) WEBRTC-2443: Added stopRingback() call in hangup function to ensure ringback tone is stopped when the call ends. This fixes the issue where the ringback tone would continue playing after hanging up. Co-authored-by: openhands --- packages/js/src/Modules/Verto/webrtc/BaseCall.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/js/src/Modules/Verto/webrtc/BaseCall.ts b/packages/js/src/Modules/Verto/webrtc/BaseCall.ts index e0924114..27356fc7 100644 --- a/packages/js/src/Modules/Verto/webrtc/BaseCall.ts +++ b/packages/js/src/Modules/Verto/webrtc/BaseCall.ts @@ -337,6 +337,7 @@ export default abstract class BaseCall implements IWebRTCCall { }; this.stopRingtone(); + this.stopRingback(); if (execute) { const bye = new Bye({ sessid: this.session.sessionid,