<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi,<br>
    <br>
    And what's the actual question ?<br>
    <br>
    Regards, <br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 27.05.2024 12:18, suifeng wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:68924de6.a1c1.18fb957ce58.Coremail.yxrmail@163.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div style="margin:0;">HI,I has an NAT question;</div>
        <div style="margin:0;">img one:</div>
        <div style="margin:0;">[...]<br>
        </div>
        <div style="margin:0;">img two:  Use fix_nated_sdp(10)
          processing:</div>
        <div style="margin:0;">[....]<br>
        </div>
        <div style="margin:0;">opensips version OpenSIPS (3.2.17
          (x86_64/linux))</div>
        <div style="margin:0;">opensips.cfg  part context:</div>
        <div style="margin:0;"> </div>
        <div style="margin:0;">
          <div style="margin:0;">route{</div>
          <div style="margin:0;">       if (nat_uac_test(23)) {</div>
          <div style="margin:0;">            if (is_method("REGISTER"))
            {</div>
          <div style="margin:0;">                setbflag("NAT");</div>
          <div style="margin:0;">                fix_nated_register();  </div>
          <div style="margin:0;">                xlog("request nat: $fd,
            rd: $rd, ru: $ru");</div>
          <div style="margin:0;">                xlog("request
            -1................");</div>
          <div style="margin:0;">            }</div>
          <div style="margin:0;">            if (is_method("INVITE")){</div>
          <div style="margin:0;">                xlog("request invite:
            $fd, rd: $rd, ru: $ru");</div>
          <div style="margin:0;">                fix_nated_contact();</div>
          <div style="margin:0;">               
            add_rr_param(";nat=yes"); </div>
          <div style="margin:0;">                xlog("request
            -2................");</div>
          <div style="margin:0;">            }</div>
          <div style="margin:0;">        }</div>
          <div style="margin:0;"><br>
          </div>
          <div style="margin:0;">        if (is_method("INVITE")
            && has_body("application/sdp")) {</div>
          <div style="margin:0;">                xlog("request
            13-1................si:[$si],cs:[$cs],uri:[uri]");</div>
          <div style="margin:0;">                fix_nated_sdp(10);</div>
          <div style="margin:0;">        }</div>
          <div style="margin:0;">}</div>
          <div style="margin:0;"><br>
          </div>
          <div style="margin:0;"><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-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>