<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>So you did manage to fix your problem?</tt><br>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 10/31/2017 02:17 PM, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADzurOLtp+tuN2+GMw+7RwFii7FE0f7hpaCDiyePr2fVLk2U1A@mail.gmail.com">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Thanks for your replay.</div>
        <div><br>
        </div>
        <div>I execute fix_nated_contact() after fix_nated_register().<br>
          <br>
          Here part of my script:</div>
        <div>
          <div><span style="white-space:pre">     </span>if (isflagset(NAT))
            {</div>
          <div>                if (is_method("REGISTER")) {</div>
          <div>                        fix_nated_register();</div>
          <div><span style="white-space:pre">                     </span>setbflag(NAT_BFLAG);
            # nat register</div>
          <div>                }</div>
          <div><span style="white-space:pre">             </span>fix_nated_contact();</div>
          <div><span style="white-space:pre">     </span>}</div>
        </div>
        <div><br>
        </div>
        <div>In this case fix_nated_contact() will be fix contact
          records in location table.<br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-10-31 14:02 GMT+02:00 Răzvan
          Crainea <span dir="ltr"><<a
              href="mailto:razvan@opensips.org" target="_blank"
              moz-do-not-send="true">razvan@opensips.org</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi, Dragomir!<br>
                <br>
                fix_nated_register() does not change the contact of the
                message, fix_nated_contact() does that.<br>
                Please print the Contact header as I instructed earlier
                and send back the script trace. Also, please post the
                logs on <a href="http://pastebin.com" target="_blank"
                  moz-do-not-send="true">pastebin.com</a> or something,
                don't do it directly in the email.<br>
                <br>
                Best regards,</tt><span class="">
                <pre class="m_-6119473667299360433moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-6119473667299360433moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
              </span><span class="">
                <div class="m_-6119473667299360433moz-cite-prefix">On
                  10/31/2017 12:40 AM, Dragomir Haralambiev wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">What will I do to solve this problem?</div>
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">2017-10-27 11:50 GMT+03:00
                      Dragomir Haralambiev <span dir="ltr"><<a
                          href="mailto:goup2010@gmail.com"
                          target="_blank" moz-do-not-send="true">goup2010@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>Oct 27 11:47:32 web
                            /usr/local/sbin/opensips[30490<wbr>]: <span
style="font-size:12.8px;white-space:nowrap">57995010</span>: REGISTER
                            before fix_nated_register <sip:<span
                              style="font-size:12.8px;white-space:nowrap">57995010</span>@<a
                              href="http://192.168.2.196:5060"
                              target="_blank" moz-do-not-send="true">192.168.2.196:50<wbr>60</a>>[1]</div>
                          <div>Oct 27 11:47:32 web
                            /usr/local/sbin/opensips[30490<wbr>]: <span
style="font-size:12.8px;white-space:nowrap">57995010</span>: REGISTER
                            after fix_nated_register <sip:<span
                              style="font-size:12.8px;white-space:nowrap">57995010</span>@<a
                              href="http://192.168.2.196:5060"
                              target="_blank" moz-do-not-send="true">192.168.2.196:50<wbr>60</a>>[1]</div>
                          <div><br>
                          </div>
                        </div>
                        <div class="m_-6119473667299360433HOEnZb">
                          <div class="m_-6119473667299360433h5">
                            <div class="gmail_extra"><br>
                              <div class="gmail_quote">2017-10-27 10:41
                                GMT+03:00 Răzvan Crainea <span
                                  dir="ltr"><<a
                                    href="mailto:razvan@opensips.org"
                                    target="_blank"
                                    moz-do-not-send="true">razvan@opensips.org</a>></span>:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div text="#000000" bgcolor="#FFFFFF">
                                    <tt>Hi, Dragomir!<br>
                                      <br>
                                      Can you also print the Contact
                                      header ($ct[1]).<br>
                                      <br>
                                      [1] <a
class="m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-txt-link-freetext"
href="http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc26"
                                        target="_blank"
                                        moz-do-not-send="true">http://www.opensips.org/Docume<wbr>ntation/Script-CoreVar-2-4#toc<wbr>26</a><br>
                                      <br>
                                      Best regards,<br>
                                    </tt><span>
                                      <pre class="m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a>
</pre>
                                    </span></div>
                                </blockquote>
                              </div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </blockquote>
              </span></div>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <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>