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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-talk-open" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-talk-open?hl=en
-~----------~----~----~----~------~----~------~--~---