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

call: never set sent_answer to false #2674

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Aug 9, 2023

This flag is true if any SDP answer was already sent to the peer. It is used
in static_menu.c to decide if the ldir has to be set or not. After sending
the first SDP answer ldir should stay unchanged at the value that was used
during encoding the SDP answer. It is important for call_need_modify() to
decide if a re-INVITE is needed or not. That's why sent_answer should not be
reset to false. This could lead to a missing re-INVITE.

This flag is true if any SDP answer was already sent to the peer. It is used
in static_menu.c to decide if the `ldir` has to be set or not. After sending
the first SDP answer `ldir` should stay unchanged at the value that was used
during encoding the SDP answer. It is important for call_need_modify() to
decide if a re-INVITE is needed or not. That's why sent_answer should not be
reset to false. This could lead to a missing re-INVITE.
@sreimers sreimers merged commit 9d07db4 into baresip:main Aug 9, 2023
17 checks passed
@cspiel1 cspiel1 deleted the call_sent_answer branch August 10, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants