tflucke / coturn

Automatically exported from code.google.com/p/coturn
Other
0 stars 0 forks source link

problem with adding users #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello currently i would like to use turnserver with peerjs. One think that 
bothers me is how to set users for turn.
I would like to store users in file turnuserdb.conf. My problem is when I use 
deafult user: ninefingers:youhavetoberealistic everything is fine(I can make 
video chat), but when I specify for example myuser:passw and then appy it  to 
the example 1) as: 

 var peer = new Peer({host: peerJsServerHost, port: peerJsServerPort, path: peerJsServerPath, debug:3, 
       config: {'iceServers': [
        {   url: 'turn:'+stunTurnServerHost+':3478',        credential: 'passw',        username: 'myuser'      },
        {   url: 'stun:'+stunTurnServerHost+':3478',        credential: 'passw',        username: 'myuser'      }
        ]}
    });  
there is no connection between those two peerjs. Can anybody give me hint or 
solution to this problem.
I'm starting turnserver with command:  turnserver -o -c 
/etc/turnserver/turnserver.conf -a 

1) https://github.com/peers/peerjs/blob/master/examples/videochat/index.html

Original issue reported on code.google.com by maxida...@interia.pl on 24 Oct 2014 at 11:39

GoogleCodeExporter commented 9 years ago
This is not an issue. This is a question. The questions are to be asked at the 
forum. This place is for reporting the bugs.

Original comment by mom040...@gmail.com on 29 Oct 2014 at 6:45