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

feat: allow specifying initial ice mode #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achingbrain
Copy link

RFC 8445 6.1.1 says:

The initiating agent that started the ICE processing MUST take the controlling role, and the other MUST take the controlled role.

The spec also shows how to resolve conflicts when both agents are in the controlling role.

From what I can see here, libjuice will always start in controlling mode and try to resolve the conflict before contining but it appears some implementations don't support that so one agent has to start in controlled role.

The change here is to allow passing the role to juice_set_local_ice_attributes in order to start the receiving agent off in the controlled role.

RFC 8445 6.1.1 says:

> The initiating agent that started the ICE processing MUST take the controlling role, and the other MUST take the controlled role.

The spec also shows how to resolve conflicts when both agents are
in the controlling role.

From what I can see here, libjuice will always start in controlling
mode and try to resolve the conflict before contining but it appears
some implementations [don't support that](pion/ice#359 (comment))
so one agent has to start in controlled role.

The change here is to allow passing the role to `juice_set_local_ice_attributes`
in order to start the receiving agent off in the controlled role.
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.

1 participant