<div dir="ltr"><div><div><div><div>I found someone had a similar experience with me :D<br><br><a href="http://markmail.org/message/w7x6bgnnpjc6hmsj#query:+page:1+mid:647krhvnth3eqqgt+state:results">http://markmail.org/message/w7x6bgnnpjc6hmsj#query:+page:1+mid:647krhvnth3eqqgt+state:results</a><br><br><br></div>As he did - I comment the line which returns  STUN_VALIDATION_UNAUTHORIZED, <br></div>finally, I got the relay candidate now!<br><br></div>But I'm stiil confused with this,<br></div>I'll keep tracking and figuring out it.<br><br><br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-22 19:39 GMT+08:00 Jack Wang <span dir="ltr"><<a href="mailto:antirazin@gmail.com" target="_blank">antirazin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Well, I think I step forward a little bit more... :P<br><br>`conn_check_handle_inbound_stun` only be called whenever agent receives messages,<br></div>and it will process a response - trying to match the response by checking from various possible objectives one by one.<br></div><div>The `trans_found` is marked since it already has been confirmed that  it's a STUN Binding Response.<br><br></div><div>Then, why TURN reponse is not processed successfully here??<br><br></div><div>I found the function `stun_agent_validate` returns STUN_VALIDATION_UNAUTHORIZED when receiving Allocate Response.<br></div><div>And in the function it showed "stun_debug ("STUN auth error: No message integrity attribute!");"<br><br><br></div><div>Continue getting more information..<br></div><div><div class="h5"><div><br></div><div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-22 16:34 GMT+08:00 Jack Wang <span dir="ltr"><<a href="mailto:antirazin@gmail.com" target="_blank">antirazin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I found if the server reflexive candidate is found and the `trans_found` will be marked.<br><br></div>And from the lines below:<br><br></div>@ agent/conncheck.c:<br><br>---<br>      if (trans_found != TRUE)<br>        trans_found = priv_map_reply_to_discovery_request (agent, &req);<br><br></div>/* if `trans_found` is true here, <br> * function `priv_map_reply_to_relay_request` won't  be called so that the relay candidate can't be add to sdp   */<br><div><br>      /* step: let's try to match the response to an existing turn allocate */<br>      if (trans_found != TRUE)<br>        trans_found = priv_map_reply_to_relay_request (agent, &req);<br><br>---<br><br></div><div>I don't understand here,<br></div><div>maybe someone can give me a hand?<br><br></div><div><br></div><div><br><br><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-22 10:13 GMT+08:00 Jack Wang <span dir="ltr"><<a href="mailto:antirazin@gmail.com" target="_blank">antirazin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There are three example codes , I know.<div>However, it seems like there's no implementation of TURN in that.</div><div><br></div><div>It seems like the function nice_agent_set_relay_info() must be called for setting the TURN server.<br></div><div>I add this action to sdp-example and the allocation works after running the example,<br></div><div>but the relay candidate still doesn't appear in the sdp ...<br></div><div><br></div><div>Any tips or quick tutorial about this? <br></div><div>Thanks. <br><br>:)<br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>