mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
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:
commit
9f4f15aa92
2 changed files with 6 additions and 2 deletions
1
changelog.d/4621.bugfix
Normal file
1
changelog.d/4621.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix for outgoing voip call via sip bridge failing after 1 minute.
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue