Merge pull request #4637 from vector-im/feature/dla/outgoing_pstn_call_fails

Feature/dla/outgoing pstn call fails
This commit is contained in:
Benoit Marty 2021-12-06 21:37:11 +01:00 committed by GitHub
commit f1d8b9e974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/4636.bugfix Normal file
View File

@ -0,0 +1 @@
Update log warning for call selection during voip calls.

View File

@ -205,8 +205,8 @@ internal class MxCallImpl(
Timber.tag(loggerTag.value).v("select answer $callId") Timber.tag(loggerTag.value).v("select answer $callId")
if (!isOutgoing) return if (!isOutgoing) return
// This is an outgoing call, select the remote client that answered. // This is an outgoing call, select the remote client that answered.
if (state != CallState.Dialing) { if (state != CallState.Dialing && state !is CallState.Connected) {
Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing got $state.") Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing or CallState.Connected got $state.")
} }
CallSelectAnswerContent( CallSelectAnswerContent(
callId = callId, callId = callId,