<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Dragomir!<br>
      <br>
      Are you sure the code gets to that save() function? You are also
      using fix_nated_register(), but I don't see any register field in
      the location table either, so I presume you are not hitting that
      code at all.<br>
      <br>
      Best regards,<br>
    </tt>
    <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/21/2017 01:40 AM, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADzurO+cAHFqVYO+Vp9GMqqPMR6WzyQjRmbs-4W1qP52TfskJQ@mail.gmail.com">
      <div dir="ltr">
        <div>Hello,<br>
          <br>
          <br>
        </div>
        <div>I have follow line in my script:</div>
        <div><span style="white-space:pre">               </span>if
          (is_method("REGISTER")) {</div>
        <div><span style="white-space:pre">                       </span>fix_nated_register();</div>
        <div><span style="white-space:pre">                       </span>fix_nated_contact();</div>
        <div><span style="white-space:pre">                       </span>....</div>
        <div><span style="white-space:pre">                       </span>save("location","c1",
          "$fu");</div>
        <div><span style="white-space:pre">               </span>}</div>
        <div><span style="white-space:pre">               </span></div>
        <div>Opensips receive REGISTER  with</div>
        <div><br>
        </div>
        <div>"Contact: <<a
            href="http://sip:516203@192.168.2.203:5060"
            moz-do-not-send="true">sip:516203@192.168.2.203:5060</a>>"</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I try to see location table</div>
        <div>opensipsctl  ul show</div>
        <div><br>
        </div>
        <div>        AOR:: 516203</div>
        <div>                Contact:: <a
            href="http://sip:516203@192.168.2.203:5060"
            moz-do-not-send="true">sip:516203@192.168.2.203:5060</a> Q=</div>
        <div>                        ContactID:: 926418920300655256</div>
        <div>                        Expires:: 270</div>
        <div>                        Callid:: <a
            href="mailto:509678716@192.168.2.203" moz-do-not-send="true">509678716@192.168.2.203</a></div>
        <div>                        Cseq:: 2</div>
        <div>                        User-agent:: Yealink SIP-T19P
          31.72.0.75</div>
        <div>                        State:: CS_SYNC</div>
        <div>                        Flags:: 0</div>
        <div>                        Cflags:: NAT_BFLAG</div>
        <div>                        Socket:: udp:<a
            href="http://1.2.3.4:5566" moz-do-not-send="true">1.2.3.4:5566</a></div>
        <div>                        Methods:: 16383</div>
        <div><br>
        </div>
        <div>Why after save("location") Contact address in location
          table is not fix?</div>
        <div>How setup Opensips to write into location table fixed
          Contact?<br>
          <br>
          Best regards,<br>
          Dragomir</div>
      </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>