<div dir="ltr">Yes, i had tried it but i was getting error like this. <br><br><div>ERROR:mid_registrar:overwrite_all_contact_hostports: SCRIPT BUG - second attempt to change URI Contact</div><div>ERROR:mid_registrar:mid_reg_req_fwded: failed to overwrite Contact URI<br><br>This is what I found in archive.<br><a href="http://opensips-open-sip-server.1449251.n2.nabble.com/nathelper-and-mid-register-td7608807.html#a7608826">http://opensips-open-sip-server.1449251.n2.nabble.com/nathelper-and-mid-register-td7608807.html#a7608826</a><br><br>Any workaround for this?</div><div><br></div><div>Thanks. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 October 2017 at 16:37, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<tt>Sorry, there is a type in the prev email, it should be "</tt><tt>So,
have you actually tried the <b>fix_nated_regis</b><b>trar</b><b>()</b>
+ mid_registrar_save() ?"<br>
</tt><span class="">
<pre class="m_-1799978142409131774moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-1799978142409131774moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
</pre>
</span><div><div class="h5"><div class="m_-1799978142409131774moz-cite-prefix">On 10/31/2017 01:25 PM, Bogdan-Andrei
Iancu wrote:<br>
</div>
<blockquote type="cite">
<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="m_-1799978142409131774moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-1799978142409131774moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
</pre>
<div class="m_-1799978142409131774moz-cite-prefix">On 10/28/2017 02:30 PM, Aqs Younas
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Anything?</div>
<div id="m_-1799978142409131774DAB4FAD8-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"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" style="width:46px;height:29px" 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" style="color:#4453ea" target="_blank">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">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("locat<wbr>ion")
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="m_-1799978142409131774mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-1799978142409131774moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-1799978142409131774moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="m_-1799978142409131774mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-1799978142409131774moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-1799978142409131774moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>