<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EstiloCorreo19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="ES-CL" link="blue" vlink="purple" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi.</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I have a very similar problem with the topology hiding module and with the mid_registrar module.</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I don’t know if maybe I’m doing something wrong or maybe this is the way it has to work?. My scenario is as follows:</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Private PBX – OpenSIP (Topology Hiding + MidRegistrar) -- UAC</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">When a REGISTER came from the UAC to the PBX I see something like this:</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">2020/11/18 09:49:00.290304 192.XXX.XXX.4:51045 -> 192.XXX.XXX.133:5060</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">REGISTER <a href="sip:my.domain.com:5060">sip:my.domain.com:5060</a> SIP/2.0</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Via: SIP/2.0/UDP 192.XXX.XXX.4:51045;branch=z9hG4bK-524287-1---300f9ecbae4e0c8d;rport</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Max-Forwards: 70</span></p><p class="MsoNormal"><b><i><span lang="EN-US" style="mso-fareast-language:EN-US">Contact: <<a href="sip:d1.922@192.XXX.XXX.4:51045;rinstance=355eb6c1f6b62875">sip:d1.922@192.XXX.XXX.4:51045;rinstance=355eb6c1f6b62875</a>>;+sip.instance="<urn:uuid:4412d6b8-1095-5684-8e50-1e67ee70b6e2>";reg-id=1</span></i></b></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">To: "Ricardo Martinez"<<a href="sip:d1.922@my.domain.com:5060">sip:d1.922@my.domain.com:5060</a>></span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">From: "Ricardo Martinez"<<a href="sip:d1.922@my.domain.com:5060">sip:d1.922@my.domain.com:5060</a>>;tag=7bb10a6e</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Call-ID: 104875NWY1NThmMTJmOWMyNTdlNmY3OGIwZjZlNWIzMzk4NDM</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">CSeq: 1 REGISTER</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Expires: 600</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Allow: OPTIONS, SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, MESSAGE</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Supported: outbound, path</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">User-Agent: VEX release 6.2.2.0 stamp 104875</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Content-Length: 0</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">But then pass through the OpenSIPS with Topology Hiding enabled and Mid_registrar enabled I see:</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">2020/11/18 09:49:00.291478 192.XXX.XXX.134:5060 -> <a href="http://192.141.65.94:5060">192.141.65.94:5060</a></span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">REGISTER <a href="sip:my.domain.com:5060">sip:my.domain.com:5060</a> SIP/2.0</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Via: SIP/2.0/UDP 192.XXX.XXX.134:5060;branch=z9hG4bK4943.c7a48b07.0</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Max-Forwards: 69</span></p><p class="MsoNormal"><b><i><span style="mso-fareast-language:EN-US">Contact: <</span></i></b><b><i><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="sip:d1.922@192.XXX.XXX.134;thinfo=VG9obzAdIFs3YnpWYl0DRWlTfWJgXn5ZdFpkW2ZiZFtlVDEdPhInMjoMNVJwQWUEMWU3XjZZIUJiWWRmQ28lCzNOYVhhfWVbYUF1QH5QYGBuWmBZcw--"><span lang="ES-CL">sip:d1.922@192.XXX.XXX.134;thinfo=VG9obzAdIFs3YnpWYl0DRWlTfWJgXn5ZdFpkW2ZiZFtlVDEdPhInMjoMNVJwQWUEMWU3XjZZIUJiWWRmQ28lCzNOYVhhfWVbYUF1QH5QYGBuWmBZcw--</span></a></span></i></b><b><i><span style="mso-fareast-language:EN-US">><</span></i></b><b><i><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="sip:2844375008405363167@192.XXX.XXX.134:5060"><span lang="ES-CL">sip:2844375008405363167@192.XXX.XXX.134:5060</span></a></span></i></b><b><i><span style="mso-fareast-language:EN-US">>;expires=3600</span></i></b></p><p class="MsoNormal"><span style="mso-fareast-language:EN-US">To: "Ricardo Martinez"<</span><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="sip:d1.922@192.141.65.94"><span lang="ES-CL">sip:d1.922@192.141.65.94</span></a></span><span style="mso-fareast-language:EN-US">></span></p><p class="MsoNormal"><span style="mso-fareast-language:EN-US">From: "Ricardo Martinez"<</span><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="sip:d1.922@192.XXX.XXX.134:5060"><span lang="ES-CL">sip:d1.922@192.XXX.XXX.134:5060</span></a></span><span style="mso-fareast-language:EN-US">>;tag=7bb10a6e</span></p><p class="MsoNormal"><span style="mso-fareast-language:EN-US">Call-ID: 104875NWY1NThmMTJmOWMyNTdlNmY3OGIwZjZlNWIzMzk4NDM</span></p><p class="MsoNormal"><span style="mso-fareast-language:EN-US">CSeq: 1 REGISTER</span></p><p class="MsoNormal"><span style="mso-fareast-language:EN-US">Expires: 3600</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Allow: OPTIONS, SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, MESSAGE</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Supported: outbound, path</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">User-Agent: VEX release 6.2.2.0 stamp 104875</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Content-Length: 0</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">As you can see the CONTACT is duplicated and I’m getting the next error:</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">ERROR:mid_registrar:save_restore_rpl_contacts: 200 OK reply does not include all req contacts! (ci: 104875NWY1NThmMTJmOWMyNTdlNmY3OGIwZjZlNWIzMzk4NDM)</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Nov 18 09:58:00 sbcar /usr/local/sbin/opensips[11924]: ERROR:mid_registrar:mid_reg_resp_in: failed to process rpl contacts for AoR 'd1.922'</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Does someone have a clue on this?</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Regards,</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Ricardo</span></p><p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> </span></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="ES">De:</span></b><span lang="ES"> Users <<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>> <b>En nombre de </b>M S<br><b>Enviado el:</b> martes, 17 de noviembre de 2020 22:24<br><b>Para:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><b>Asunto:</b> [OpenSIPS-Users] topology hiding bug?</span></p></div><p class="MsoNormal"> </p><div><div><div><div><div><div><div><p class="MsoNormal">Dear OpenSIPS development team,</p><div><p class="MsoNormal">I have come across a strange case that sometime when I use topology_hiding("UD"), it makes a mistake in changing Contact field.</p></div><div><p class="MsoNormal">Scenario is:</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">A: (Contact: <<a href="http://sip:90006969@172.24.8.5:5060">sip:90006969@172.24.8.5:5060</a>>) sends Invite to private IP of opensips, opensips changes Contact field to: (Contact: <<a href="sip:90006969.did.29c.2ed202e@public.ip">sip:90006969.did.29c.2ed202e@public.ip</a>>) and sends Invite from public IP to B. </p></div><div><p class="MsoNormal">Then B sends 200 OK back to Opensips public IP, with correct Contact: (Contact: <<a href="sip:90006969.did.29c.2ed202e@Bpublic.ip:5060">sip:90006969.did.29c.2ed202e@Bpublic.ip:5060</a>>). so far so good.</p></div><div><p class="MsoNormal">Now Opensips sends 200 OK back to A from its private IP, and changes Contact to:</p></div><div><p class="MsoNormal">Contact: <<a href="mailto:sip%3A90006969.did.29c.2ed202e.did.29c.2ed202e@172.24.8.37">sip:90006969.did.29c.2ed202e.did.29c.2ed202e@172.24.8.37</a>></p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">As you see, did part is repeated twice.. and that means when A replies with:</p></div><div><p class="MsoNormal">ACK <a href="mailto:sip%3A90006969.did.29c.2ed202e.did.29c.2ed202e@172.24.8.37">sip:90006969.did.29c.2ed202e.did.29c.2ed202e@172.24.8.37</a> SIP/2.0</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Opensips throws an error: ERROR:dialog:dlg_onroute: malformed route param [29c.2ed202e.did.29c.2ed202e]</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Is this a bug? I am using Opensips 3.1.0.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Thanks,</p></div><div><p class="MsoNormal">Mark</p></div></div></div></div></div></div></div></div></div></body></html>