-
Notifications
You must be signed in to change notification settings - Fork 84
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
ice: add candidate sdp mdns support #917
Conversation
Wow, thanks for the PR! I was eager and patched it on-top of version 3.4.0. It seems to work very good, with the WebRTC demo without any ICE servers set. When i define ICE-Servers on WebRTC-Demo (Backend) and in the JS part of the demo and if i use Firefox (which sends all candidates; Chrome/Safari seem to skip sending external candidates on a loopback connection) then the demo crashes. See the attached log:
I tracked down the issue to this line: Maybe a race condition? |
Thanks for testing, yes the |
Some browsers anonymize local webrtc sdp candidate ip addresses with mDNS
[UUID].local
(like "1bbabc05-80d2-4386-8e39-9666b53900d0.local"), this PR uses getaddrinfo to resolve these if needed.TODO:
refs baresip/baresip#2137
https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates-03
Manual Testing:
baresip-webrtc -v
recvonly
(no microphone/camera permission) and connect