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

Enforce media direction policies when SIP call is on hold #3087

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

lminiero
Copy link
Member

This is a PR inspired by this post on the group, where setting a call on hold doesn't seem to be working as expected. In this specific case, it looks like Janus is correctly negotiating sendonly when putting a call on hold, but the call is then handled via a B2BUA, that sets sendrecv on the other end: since we don't have checks on whether we should actually send a packet, or accept an incoming one, when the call is on hold, this results in media still flowing in both directions when it shouldn't.

This patch adds such checks, and adds an enforced check on receiving packets as well when not on hold, which seemed to be missing. I didn't test this yet, so you may want to check whether or not this introduces any regression. While the patch is for 0.x (that's what the OP is using), I'll port it to master as well in case it's considered safe to merge.

@lminiero lminiero added the legacy Related to Janus 0.x label Oct 14, 2022
@lminiero
Copy link
Member Author

Merging.

@lminiero lminiero merged commit 17e5c0f into 0.x Oct 25, 2022
@lminiero lminiero deleted the hold-fix branch October 25, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy Related to Janus 0.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant