Problem setting up TURN server with libjingle p2p

242 views
Skip to first unread message

Abdul Khaliq

unread,
Feb 25, 2014, 9:47:20 AM2/25/14
to turn-server-project...@googlegroups.com, mmi...@dincloud.com, mre...@dincloud.com
Hi
We are trying to run a libjingle based p2p  application for that we have configured turn server  rfc5766-turn-server

And as per our understanding there is a need of web server for that I'v installed nginx and setup https in that

When I request like this request
https://xyz.com:5349/
or
https://xyz.com:5350/
In both cases it replies
TURN Server

If I request like this
https://xyz.com/

It replies
TURN Server rfc5766-turn-server Citrix-3.2.2.5 'Marshal West' Type '?' for help > Unknown command >

According to Turn Rest api I have to send some request like this
https://xyz.com/create_session?username=3k7swXp4LOruhr1W&password=NjiZM8ussomMKG6nr0dHrzLb&sn=1

But in response of it there should come a json, comparising of relay uri, username, password, but thats not coming

Accordign to wireshark log, TLS connection resetting again and again client hello, server hello, changer cipher, new session etc. But no proceeding. Is there any problem with SSL settings? or there is something missing in Rest API setup?

Thanks


Oleg Moskalenko

unread,
Feb 25, 2014, 11:46:29 AM2/25/14
to turn-server-project...@googlegroups.com, mmi...@dincloud.com, mre...@dincloud.com
The TURN Server does not implement HTTP protocol and you must not send HTTP REST commands to it and you must not establish HTTP connection to it.

TURN REST API must be implemented by a separate web server on a separate system. The TURN client after receiving authentication data from the web server then will use that data for the TURN server connection establishment (over TURN protocol).

Read again the documentation on TURN REST API and try to understand how it works.

Regards,
Oleg

Oleg Moskalenko

unread,
Feb 25, 2014, 11:56:26 AM2/25/14
to Mark Millar, turn-server-project...@googlegroups.com, Mujeeb Rehman
The original source of information is in Justin Uberti's draft (the link somewhere on the front page of the project). I tried to provide a simple description in the wiki, in the section "TURN REST API":

https://code.google.com/p/rfc5766-turn-server/wiki/turnserver

Both documents cover it all. Also, check this forum - there are several discussions on this topic.

Regards,
Oleg



On Tue, Feb 25, 2014 at 8:53 AM, Mark Millar <MMi...@dincloud.com> wrote:

Thanks for your help Oleg! We were certainly heading in the wrong direction.

 

Could you please do us a favor and let us know the URL where we can find the exact documentation on this?

 

Thanks again.

 

Regards,

MM

Oleg Moskalenko

unread,
Feb 25, 2014, 11:57:52 AM2/25/14
to Mark Millar, turn-server-project...@googlegroups.com, Mujeeb Rehman
... and also, upgrade to 3.2.2.8 version

Tahir J. Malik

unread,
Feb 25, 2014, 12:02:30 PM2/25/14
to turn-server-project...@googlegroups.com
Thanks. We will go through the documentation once again

~ Tahir


On Tuesday, 25 February 2014 08:56:26 UTC-8, Oleg Moskalenko wrote:
The original source of information is in Justin Uberti's draft (the link somewhere on the front page of the project). I tried to provide a simple description in the wiki, in the section "TURN REST API":

https://code.google.com/p/rfc5766-turn-server/wiki/turnserver

Both documents cover it all. Also, check this forum - there are several discussions on this topic.

Regards,
Oleg

Reply all
Reply to author
Forward
0 new messages