-
Notifications
You must be signed in to change notification settings - Fork 486
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
Cant make turn server work at my signal master #85
Comments
I have tested at http://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ (say is working fine) with this configurartio is not working with signalmaster "turnservers": [ |
signalmaster only supports the shared secret mechanism, not hardcoded usernames and passwords |
That is a shame, I have take a look to the code and cannot add credential and username, I will explain how I got simpleWebrtc working with the turn server. I used free turn server, please use it only to test http://numb.viagenie.ca I have add the configuration directly at the SimpleWebrtc constructor, unfortunately did not use signal master to sove the problem.
To test turn server I added the code bellow, dont forget to take off after test
I have edit SimpleWebrtc and comment the lines bellow so the code wont override my configuration
Tu run the new javascript I went to terminal.
add the code to my project, after all this is working without signal master, signal master should make it work with the normal configuration, would be easier. |
the problem with this method is that your credentials are exposed to javascript and anyone can grab them from there. The shared secret method limits the risk of this. |
Is quite easy to solve that only bring it from api. |
hi Fippo, you mentioned:
Where and how (as in the code) exactly it's doing that? What if my TURN server doesn't support that secret mechanism? How do I turn that feature off? |
@fippo Thanks! Do I need to change anything in the SimpleWebrtc library? |
hi @fippo , I replaced that line with this:
But the TURN server credentials are not returned back to the browser. What did I do wrong? |
I modified my scokets.js in my signalmaster with these lines:
Mine works now. |
My configuration bellow is not working can someone help
"turnservers": [
{
"url": "turn:192.158.29.39:3478?transport=udp",
"username": "28224511:1379330808",
"secret": "JZEOEt2V3Qb0y27GRntt2u2PAYA=",
"expiry": 86400
},
{
"url": "turn:192.158.29.39:3478?transport=tcp",
"username": "28224511:1379330808",
"secret": "JZEOEt2V3Qb0y27GRntt2u2PAYA=",
"expiry": 86400
}
]
The text was updated successfully, but these errors were encountered: