Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select answer should be used for outgoing calls. #4625

Merged
merged 8 commits into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/4621.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix for outgoing voip call via sip bridge failing after 1 minute.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,11 @@ internal class MxCallImpl(

override fun selectAnswer() {
Timber.tag(loggerTag.value).v("select answer $callId")
if (isOutgoing) return
state = CallState.Answering
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still set this state somewhere else or does CallState.Answering no longer need to exist?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still exists and is set for incoming calls here as described in it's definition here.

This selectAnswer function is actually used for outgoing calls the current state at this point is Dialing and stays as that until the Connected state.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for explaining

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!isOutgoing) {
return
}
// This is an outgoing call, select the remote client that answered.
// state is still DIALING.
langleyd marked this conversation as resolved.
Show resolved Hide resolved
CallSelectAnswerContent(
callId = callId,
partyId = ourPartyId,
Expand Down