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 &#39;candidate&#39; transport addresses, we need STUN / TURN servers</div><div>- for this purpose, why should telepathy-gabble trigger &quot; <a href="http://relay.google.com:80/create_session">http://relay.google.com:80/create_session</a> &quot; ??</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 &quot;X-Talk-Google-Relay-Auth&quot; &amp;</div><div>&quot;X-Google-Relay-Auth&quot;</div><div>
<br></div><div>In response, we get a list of TURN/STUN server IPs &amp; Ports etc. </div><div><br></div><div>Instead of this method, why can&#39;t we use what the below XML Stanza returns :</div><div><br></div><div>Request stanza :</div>
<div>&lt;iq type=&quot;get&quot; to=&quot;<a href="mailto:user@gmail.com">user@gmail.com</a>&quot; id=&quot;135485202046&quot;&gt;&lt;query xmlns=&quot;google:jingleinfo&quot;/&gt;&lt;/iq&gt;</div><div><br></div><div>Response stanza :</div>
<div>&lt;iq to=&quot;<a href="http://user@gmail.com/16b4cb7b">user@gmail.com/16b4cb7b</a>&quot; from=&quot;<a href="mailto:user@gmail.com">user@gmail.com</a>&quot; id=&quot;135485202046&quot; type=&quot;result&quot;&gt;&lt;query xmlns=&quot;google:jingleinfo&quot;&gt;&lt;stun&gt;&lt;server host=&quot;<a href="http://stun.l.google.com">stun.l.google.com</a>&quot; udp=&quot;19302&quot;/&gt;&lt;server host=&quot;<a href="http://stun3.l.google.com">stun3.l.google.com</a>&quot; udp=&quot;19302&quot;/&gt;&lt;server host=&quot;<a href="http://stun2.l.google.com">stun2.l.google.com</a>&quot; udp=&quot;19302&quot;/&gt;&lt;server host=&quot;<a href="http://stun1.l.google.com">stun1.l.google.com</a>&quot; udp=&quot;19302&quot;/&gt;&lt;server host=&quot;<a href="http://stun4.l.google.com">stun4.l.google.com</a>&quot; udp=&quot;19302&quot;/&gt;&lt;/stun&gt;&lt;relay&gt;&lt;token&gt;CAESGwoSZjIwMDEwNjdAZ21haWwuY29tENbv0dG8JRoQmHtoMHjFafn/K0opvlnb0A==&lt;/token&gt;&lt;server host=&quot;<a href="http://relay.google.com">relay.google.com</a>&quot; udp=&quot;19295&quot; tcp=&quot;19294&quot; tcpssl=&quot;443&quot;/&gt;&lt;/relay&gt;&lt;/query&gt;&lt;/iq&gt;</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>