Re: TURN Server support in the WebRTC Native API

529 views
Skip to first unread message

Josef Grunig

unread,
Jan 22, 2013, 5:32:49 AM1/22/13
to discuss...@googlegroups.com

I found the turnserver.cc in the sources here: http://code.google.com/p/libjingle/source/browse/#svn%2Ftrunk%2Ftalk%2Fp2p%2Fbase
which are different from those I get following the guide http://www.webrtc.org/reference/getting-started
Why?

Anyway I cant understand how chrome does support TURN server when here (http://www.webrtc.org/reference/native-apis) is stated that TURN is not supported.

Can somebody explain?

Justin Uberti

unread,
Jan 24, 2013, 11:24:54 AM1/24/13
to discuss-webrtc
That document was out of date. I have removed the offending lines.



--
 
 
 

V

unread,
May 24, 2013, 12:13:18 PM5/24/13
to discuss...@googlegroups.com
I'm always crashing with the latest libjingle/trunk when trying to use TURN over STUN with the native c++ example app.  I am getting past the validate stage of TURN (username password).  It appears to be crashing when trying to allocate the ports.  Are you guys experiencing the same issue?  Its so simple to change between TURN and STUN  I don't see how I could be doing something wrong, but I also don't understand how this could be working for anyone!

  server.uri = "turn:numb.viagenie.ca";
  server.username = "***************";
  server.password = "*****";
  servers.push_back(server);

  peer_connection_ = peer_connection_factory_->CreatePeerConnection(servers,
                                                                    &setup_constraints,
                                                                    this);
Thanks,
V

On Monday, January 21, 2013 10:27:17 AM UTC-5, Josef Grunig wrote:
Hi,

I built successfully the client/server WebRTC example from the native API sources.
Peer Connection and Video/Audio Streaming is fine, but during my tests I needed to face a symmetric NAT which was blocking my connection attemps.

An acceptable (maximum 2 peers - low bandwidth) solution is to use the TURN Server in place of the STUN Server.

I'm looking into the code, but cannot understand if TURN is supported or not by the native API. I see support for it in Chrome 24, but not in the Native API.

Is "relayserver.cc" a TURN server?
Somebody is talking about a "turnserver.cc" in the code, but I don't see that...

Can someone clarify this point?

Thank you very much!

Mallinath Bareddy

unread,
May 24, 2013, 1:22:54 PM5/24/13
to discuss...@googlegroups.com
Please paste the call stack here?


--
 
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

V

unread,
May 24, 2013, 9:00:37 PM5/24/13
to discuss...@googlegroups.com
 

ntdll.dll!76f015de() Unknown
  [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
> xxxxx.exe!cricket::BasicPortAllocatorSession::AddAllocatedPort(cricket::Port * port, cricket::AllocationSequence * seq, bool prepare_address) Line 562 C++
  xxxxx.exe!cricket::AllocationSequence::CreateTurnPort(const cricket::RelayServerConfig & config) Line 1094 C++
  xxxxx.exe!cricket::AllocationSequence::CreateRelayPorts() Line 1049 C++
  xxxxx.exe!cricket::AllocationSequence::OnMessage(talk_base::Message * msg) Line 886 C++
  xxxxx.exe!talk_base::Thread::ProcessMessages(int cmsLoop) Line 513 C++
  xxxxx.exe!talk_base::Thread::Run() Line 369 C++
  kernel32.dll!753233aa() Unknown
  ntdll.dll!76f19ef2() Unknown
  ntdll.dll!76f19ec5() Unknown

V

unread,
May 24, 2013, 9:03:41 PM5/24/13
to discuss...@googlegroups.com
 Sorry, that posted before I was done filling everything in.  Below is the exception showing to me its going into a null object.

Unhandled exception at 0x00F83489 in xxxx.exe: 0xC0000005: Access violation reading location 0x00000000.

Vikas

unread,
May 28, 2013, 3:10:13 PM5/28/13
to discuss-webrtc
Thanks for the feedback, filed issue here : https://code.google.com/p/webrtc/issues/detail?id=1839

/Vikas
Reply all
Reply to author
Forward
0 new messages