What steps will reproduce the problem?
1. Setup coturn in AWS Amazon instances, lt-cred-mech, use-auth-secret, static-auth-secret=Veureka123, without database, just generic username (timestamp:userx), credential base64(hmac(Veureka123, username)).
2. Use SimpleWebRTC in client side.
3. Create crdentials like:
self.webrtc.config.peerConnectionConfig.iceServers = [{"url" : "stun:myStunIP:3478"},
{
"url" : "turn:myTurnIP:3478?transport=udp",
"username": username,
"credential":hashEncoded
}];
What is the expected output? What do you see instead?
In Firefox it works fine, but in Chrome it isn't.
What version of the product are you using? On what operating system?
I test coTurn 4.2.3.1, 4.0.0.0 and 4.1.1.1, all they fail. All in Ubuntu 13.10
Is there any reason of structure in ice servers config?? I tried use adapterjs but simplewebrtc don't supports it.
Thanks for your time.
Regards, Hector
For all that I think the error is that coturn is not receiving the credentials in the right format, because it looks like the auth fails and thats the reason the turn service is not working. So I think the error is the iceServers struct in Chrome. I tried to use adapter.js but the framework SimpleWebRTC is not compatible with that.
About wireshark I can do the test and send to you if you want, but I wuld like to know if you have another idea now that I have explained a little more my problem.
Best Regards, Hector
Sorry sir, I have not solved my problem yet. I want to explain better the situation:
FIRST:
- I download and install coturn server in an Amazon instance, I use the .deb package and gdebi.
- I configured the server just changing the follow lines in the .conf file:
- listening-port=3478
- external-ip=[MyExternalIP]
- lt-cred-mech
- use-auth-secret
- static-auth-secret=[MySecret]
- All else as default
- My client app generate the credential with base64(hmac(MySecret, username)), where username = timestamp:useridX. I know that generation must be secure but now it is just for test.
- Using all that in two different networks, one behind a proxy, I have the follow results:
- With Firefox-Firefox peers it works perfectly! The Firefox webrtc log shows some like this:
...