<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,<br>
      <br>
      Actually fix_nated_registrar() does not rewrite the contact (it is
      adding a "received" field into user location). So, have you
      actually tried the fix_nated_contact()  + mid_registrar_save() ?<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>
    <div class="moz-cite-prefix">On 10/28/2017 02:30 PM, Aqs Younas
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGVOjVXnvxQ7RN5KmU8OqtsE7QP+VXr83A476912P8g9v5svYA@mail.gmail.com">
      <div dir="ltr">Anything?</div>
      <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
        <table style="border-top:1px solid #d3d4de">
          <tbody>
            <tr>
              <td style="width:55px;padding-top:13px"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon"
                  target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
                    alt="" style="width: 46px; height: 29px;"
                    moz-do-not-send="true" height="29" width="46"></a></td>
              <td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
                <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link"
                  target="_blank" style="color:#4453ea"
                  moz-do-not-send="true">www.avast.com</a> </td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 27 October 2017 at 17:26, Aqs Younas
          <span dir="ltr"><<a href="mailto:aqsyounas@gmail.com"
              target="_blank" moz-do-not-send="true">aqsyounas@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Greeting list, 
              <div><br>
              </div>
              <div>I am using mid-registrar to forward register requests
                to freeswitch server. I see i can't call
                fix_nated_register and  mid_registrar_save("<wbr>location")
                both, since they both are doing contact rewrite. </div>
              <div><br>
              </div>
              <div>Also i can't use <span style="background-color:rgb(254,254,238);color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">modparam("mid_registrar", "insertion_mode", 1)</span></div>
              <div>since it will insert path header instead of
                re-writing contact. </div>
              <div><br>
                My purpose of using mid-registrar was to get rid of path
                header.<br>
                <br>
                It there any work around? Anything doable using
                memcache. Saving information on register and using that
                info to populate $du upon lookup. </div>
              <div><br>
              </div>
              <div>Best Regards, </div>
            </div>
          </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>