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

select answer should be used for outgoing calls.
This commit is contained in:
Benoit Marty 2021-12-03 16:56:13 +01:00 committed by GitHub
commit 9f4f15aa92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

1
changelog.d/4621.bugfix Normal file
View file

@ -0,0 +1 @@
Fix for outgoing voip call via sip bridge failing after 1 minute.

View file

@ -203,8 +203,11 @@ internal class MxCallImpl(
override fun selectAnswer() {
Timber.tag(loggerTag.value).v("select answer $callId")
if (isOutgoing) return
state = CallState.Answering
if (!isOutgoing) return
// This is an outgoing call, select the remote client that answered.
if (state != CallState.Dialing) {
Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing got $state.")
}
CallSelectAnswerContent(
callId = callId,
partyId = ourPartyId,