couldn't get TURN REST API to work properly
GoogleCodeExporter opened this issue · comments
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
[deleted comment]
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
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
- Changed state: Invalid