Hi all,<div><br></div><div>I have a doubt about the way telepathy-gabble implements jingle file transfer.</div><div>Please correct me if my below understanding is wrong :</div><div><br></div><div>- Basically for solving NAT problem, libnice is used</div>
<div>- As part of ICE protocol, for gathering 'candidate' transport addresses, we need STUN / TURN servers</div><div>- for this purpose, why should telepathy-gabble trigger " <a href="http://relay.google.com:80/create_session">http://relay.google.com:80/create_session</a> " ??</div>
<div><br></div><div>inside jingle-factory.c , libsoup APIs are used to make a HTTP GET request to the above URL, with headers "X-Talk-Google-Relay-Auth" &</div><div>"X-Google-Relay-Auth"</div><div>
<br></div><div>In response, we get a list of TURN/STUN server IPs & Ports etc. </div><div><br></div><div>Instead of this method, why can't we use what the below XML Stanza returns :</div><div><br></div><div>Request stanza :</div>
<div><iq type="get" to="<a href="mailto:user@gmail.com">user@gmail.com</a>" id="135485202046"><query xmlns="google:jingleinfo"/></iq></div><div><br></div><div>Response stanza :</div>
<div><iq to="<a href="http://user@gmail.com/16b4cb7b">user@gmail.com/16b4cb7b</a>" from="<a href="mailto:user@gmail.com">user@gmail.com</a>" id="135485202046" type="result"><query xmlns="google:jingleinfo"><stun><server host="<a href="http://stun.l.google.com">stun.l.google.com</a>" udp="19302"/><server host="<a href="http://stun3.l.google.com">stun3.l.google.com</a>" udp="19302"/><server host="<a href="http://stun2.l.google.com">stun2.l.google.com</a>" udp="19302"/><server host="<a href="http://stun1.l.google.com">stun1.l.google.com</a>" udp="19302"/><server host="<a href="http://stun4.l.google.com">stun4.l.google.com</a>" udp="19302"/></stun><relay><token>CAESGwoSZjIwMDEwNjdAZ21haWwuY29tENbv0dG8JRoQmHtoMHjFafn/K0opvlnb0A==</token><server host="<a href="http://relay.google.com">relay.google.com</a>" udp="19295" tcp="19294" tcpssl="443"/></relay></query></iq></div>
<div><br></div><div>Kindly point to me, if there is a different way to understand...</div><div><br></div><div>Regards</div><div>Uday Kiran</div><div><br></div>