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;
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>
> To post to this group, send email to