mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08: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
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 New Issue
Block a user