shijingyao1990 / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

couldn't get TURN REST API to work properly #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to generate the username and password in node.js. It seems my 
password doesnot match with the one generated by TURN server. 

Here is the code I am trying:
 var turn_user='arafat';
 var timestamp= Math.round(new Date().getTime() / 1000) ;
 var turn_username=turn_user+':'+timestamp;
 var turn_password=crypto.createHmac('sha1','abc').update(turn_username).digest('base64');
 var turnCredentials={};

    turnCredentials.username=turn_username;
    turnCredentials.password=turn_password;

What version of the product are you using? On what operating system?
3.2.4.4 on CentOS 6.5

Original issue reported on code.google.com by arafat.a...@gmail.com on 1 Oct 2014 at 8:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
and my server url is:

    var server = {
        iceServers: [    
                {url: "stun:stun.l.google.com:19302"},  //google's stun server
                {url: "stun:23.21.150.121"},   //mozilla's stun server
                {url: "turn:"+url, credential: turnCredentials.password, username: turnCredentials.username}   // our working turn server
            ]
    }

Here is the message I am getting from turn server:

 ERROR: check_stun_auth: Cannot find credentials of user <arafat:1412151745>

Original comment by arafat.a...@gmail.com on 1 Oct 2014 at 8:42

GoogleCodeExporter commented 8 years ago
Stop filing the bugs when you cannot figure out how to configure the TURN 
server. Read the docs and the wiki, think, and ask at the forum if you cannot 
find a solution. DO not file the bugs.

Original comment by mom040...@gmail.com on 1 Oct 2014 at 8:44