3 messages in com.googlegroups.google-talk-openRe: Relay server| From | Sent On | Attachments |
|---|---|---|
| nikh...@gmail.com | 28 Jun 2007 04:54 | |
| Prabal Sen | 28 Jun 2007 05:11 | |
| nikh...@gmail.com | 01 Jul 2007 01:06 |
| Subject: | Re: Relay server![]() |
|---|---|
| From: | nikh...@gmail.com (nikh...@gmail.com) |
| Date: | 07/01/2007 01:06:16 AM |
| List: | com.googlegroups.google-talk-open |
Thanks Prabal, I did something similar as a matter of fact, in the JingleInfo part I pointed to relay.l.google.com...still haven't been able to receive the file properly, but just a matter of time...will keep you posted on the relay server part.
Regards, Nikhil
On Jun 28, 4:12 pm, "Prabal Sen" <prab...@gmail.com> wrote:
i encountered this problem too and was stuck on this issue for about a week. I was also able to find the code for relay server in libjingle but that too i was not able to compile and run. I found a workaround for that. What i did was that i added a relay bogus relay server info in the code when using other server then gtalk. here is the code that i added:
if(relay_hosts_.size() == 0) { relay_hosts_.push_back("relay.l.google.com");
}
Add these 3 lines in httpportallocator.cc in function HttpPortAllocatorSession::GetPortConfigurations(). Add these lines before the following line: std::string host = relay_hosts_[attempts_ % relay_hosts_.size()];
I did this becuase there are 3 ways a p2p connection can be accomplished in libjingle.
1. direct p2p 2. via stun 3. via relay server the first 2 are used in 92% of the scenarios and only 8% of the time relay server is used due to some firewall config. We wont be requiring relay server/host connection in most of the scenarios (92%). So there is no problem in adding a bogus relay server info to the call config.
If by any chance you get to compile and run the relay server, please do tell me. The code for relay server can be found in these files: talk\p2p\base\relayserver.h talk\p2p\base\relayserver.cpp talk\p2p\base\relayserver_main.cpp
Regards.
On 6/28/07, nikh...@gmail.com <nikh...@gmail.com> wrote:
People on the forum keep mentioning a relay server included with libjingle, that needs to be configured for different main servers, but I can't seem to find this...Is a relay server a must? Found one bit of code in HttpPortAllocator which expects at least one relay server to be specified (not sure how to configure the jabber server either to use a relay server if available)..basically the code crashes with a division by zero error since the number of attempts is being modded (%) with the number of relay servers, of which there are none (JingleInfoTask updates the default server specs for STUN/Relay, which are set to googles)...How would I get this to work?
Thanks and regards, Nikhil- Hide quoted text -
- Show quoted text -




