<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi George,<br>
        <br>
        If you see private IPs in the VIA or Contact hdrs of the
        requests coming from your UAC, it means STUN was not used.<br>
        <br>
        You can run an ngrep on your opensips server on the IPs and
        ports used by STUN, to see if you receive anything from that
        UAC.<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 10.10.2014 18:48, george wu wrote:<br>
    </div>
    <blockquote
      cite="mid:5d3a96b0.1fc52.148fabf044a.Coremail.aihuawu2012@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div>I think my client never send stun message to the server.<br>
          the client find its public ip from the OK VIA header:<br>
        </div>
        Via: SIP/2.0/UDP
192.168.1.3:5070;received=192.168.1.3;branch=z9hG4bK.Klryaqrls;rport=5070<br>
        <br>
        Am I right?<br>
        <br>
        <br>
        At 2014-10-10 23:36:18, "george wu" <a class="moz-txt-link-rfc2396E" href="mailto:aihuawu2012@163.com">&lt;aihuawu2012@163.com&gt;</a>
        wrote:<br>
        <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex;
          MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
          <div
            style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
            <div>Hi, all:<br>
              <br>
              I can't see any debug message for stun on the opensips
              server side.<br>
              <br>
              I have enabled debug and set up stun as below<br>
              loadmodule "stun.so"<br>
              modparam("stun", "primary_ip", "192.168.1.3")<br>
              modparam("stun","alternate_ip","192.168.122.1")<br>
              <br>
              From the client linphone debug message, I can see<br>
              ortp-message-channel [0x1fb3080]: discovered public ip and
              port are [192.168.1.3:5070]<br>
              <br>
              Just I don't see any debug message for stun, how to check
              it on the server side?<br>
              Thanks.<br>
              <br>
              George<br>
              <br>
              <br>
            </div>
          </div>
          <br>
          <br>
          <span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote>
      </div>
      <br>
      <br>
      <span title="neteasefooter"><span id="netease_mail_footer"></span></span><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>