Hi,I am trying to use the long term credentials using the dynamic user database file for WebRTC application. When I use normal username and passwords, everything's works fine. However, when I try to use those credentials with keys, I am getting 401 Unauthorized error form the TURN server. I will write down the steps that I've carried out, let me know if I am doing something wrong.
- I first generate a key for a user say John using the turnadmin.
- I add the following entry in the turnuserdb.conf file : John:0x5758abfebf8810a8befae5c1d8653d01
- I un-comment the appropriate lines in the turnserver.conf file.
- I provide the credentials in a WebRTC application as in the file attached 'TurnCredentials'.
- When I run the WebRTC application, I the get following error: "14: session 001000000000000001: user <John>: incoming packet message processed, error 401: Unauthorised" from the TURN server. I've attached the log file with this post.
Let me know of your comments.Thanks,Afaque.
--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/d/optout.
# Default file name is turnuserdb.conf.
userdb=/etc/turnuserdb.conf
I also got 401 unauthorized. But after I uncomment the userdb, everything works just fine!