From 9b8f3dae81a09885384e05de2f5c0925ec299c82 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 16 Jun 2022 12:08:37 +0200 Subject: [PATCH] fix: ringtone not stopping when rejecting a call --- lib/src/voip/call.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/voip/call.dart b/lib/src/voip/call.dart index ab9ad840..a1f9970c 100644 --- a/lib/src/voip/call.dart +++ b/lib/src/voip/call.dart @@ -920,6 +920,9 @@ class CallSession { /// event as of MSC2746. /// void reject() { + // stop play ringtone + voip.delegate.stopRingtone(); + if (state != CallState.kRinging) { Logs().e('[VOIP] Call must be in \'ringing\' state to reject!'); return;