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
|
@ -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() {
|
override fun selectAnswer() {
|
||||||
Timber.tag(loggerTag.value).v("select answer $callId")
|
Timber.tag(loggerTag.value).v("select answer $callId")
|
||||||
if (isOutgoing) return
|
if (!isOutgoing) return
|
||||||
state = CallState.Answering
|
// 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(
|
CallSelectAnswerContent(
|
||||||
callId = callId,
|
callId = callId,
|
||||||
partyId = ourPartyId,
|
partyId = ourPartyId,
|
||||||
|
|
Loading…
Reference in New Issue