From 61da76a26a1787d9dbb3f4f800da439dfb231206 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Thu, 2 Dec 2021 23:18:01 +0800 Subject: [PATCH] chore: Implement the onAnsweredElsewhere function. --- lib/src/voip.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/voip.dart b/lib/src/voip.dart index 3d0d5b14..42ffcd21 100644 --- a/lib/src/voip.dart +++ b/lib/src/voip.dart @@ -1258,6 +1258,9 @@ class VoIP { if (!call._answeredByUs) { delegate.stopRingtone(); } + if (call.state == CallState.kRinging) { + call.onAnsweredElsewhere('Call ID ' + callId + ' answered elsewhere'); + } return; }