chore: Implement the onAnsweredElsewhere function.

This commit is contained in:
cloudwebrtc 2021-12-02 23:18:01 +08:00
parent 9bc35a216a
commit 61da76a26a
1 changed files with 3 additions and 0 deletions

View File

@ -1258,6 +1258,9 @@ class VoIP {
if (!call._answeredByUs) {
delegate.stopRingtone();
}
if (call.state == CallState.kRinging) {
call.onAnsweredElsewhere('Call ID ' + callId + ' answered elsewhere');
}
return;
}