simplewebrtc / signalmaster

simple socket.io server for webrtc signaling
Other
1.31k stars 486 forks source link

Turn Server and Parameters #22

Closed PascalPflaum closed 10 years ago

PascalPflaum commented 10 years ago

Hi, i would like to know, which turn server you recommend?

I tested it with https://code.google.com/p/rfc5766-turn-server/ and it seems to work quite well.

I noticed in the server.js code a passage about a single pre-shared-key and timestamp-based usernames. Would you mind sharing your turn server configuration to use this pre-shared key?

Or did i fully misunderstood the security concept of TURN and it is just required that both p2p clients have a hmac based on the same shared key?

fippo commented 10 years ago

the preshared key api is the same as the REST api which rfc-5766-turn-server implements. https://github.com/andyet/signalmaster/blob/master/dev_config.json#L10 shows what you need to set in your config.

I prefer restund with modifications from https://github.com/andyet/otalk-server/tree/master/restund -- but you get alot less support for that.

fippo commented 10 years ago

updated README.md accordingly in https://github.com/andyet/signalmaster/commit/8b9aada0d9557807987b03bf65370a395792fdc6

thanks!