<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Slava,<br>
<br>
By definition mid_registrar *will* change the contact, mainly the
user and domain part of the URI contact. The URI parameters are
preserved. The transport too, unless you change the outbound
socket (to a different protocol).<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>
OpenSIPS Bootcamp 2018
<a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
<div class="moz-cite-prefix">On 09/26/2018 05:19 AM, Slava Bendersky
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1537927849.local-c16a5141-817f-v1.4.2-f587b7b7@getmailspring.com">
<div>Hello Everyone,</div>
<div>In which case mid_registrar will not rewrite contact ? </div>
<div>I see when present param ;transport=tls contact is not
rewritten. </div>
<div>config</div>
<br>
<div>#### REGISTRAR module</div>
<div>loadmodule "mid_registrar.so"</div>
<div>modparam("mid_registrar", "mode", 2)</div>
<div>modparam("mid_registrar", "received_avp", "$avp(RECEIVED)")</div>
<div>modparam("mid_registrar", "max_contacts", 10)</div>
<div>modparam("mid_registrar", "tcp_persistent_flag",
"TCP_PERSIST_REGISTRATIONS")</div>
<div>modparam("mid_registrar", "outgoing_expires", 7200)</div>
<br>
<div>code </div>
<br>
<div> if($proto=="TCP|tcp|TLS|tls") {</div>
<div> setflag(TCP_PERSIST_REGISTRATIONS);</div>
<div> }</div>
<div> mid_registrar_save("location","p1");</div>
<div> # Work arround for github issue #1109</div>
<div> append_hf("Path:
<a class="moz-txt-link-rfc2396E" href="sip:$fU@lan_ip:5060;transport=udp"><sip:$fU@lan_ip:5060;transport=udp></a>\r\n");</div>
<div> xlog("L_INFO", "Forwarding REGISTER to main registrar ~>
[$ct]\n");</div>
<div> }</div>
<br>
<br>
<div>Freeswitch contact</div>
<br>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1293754241-5060-1@BJC.BGI.B.GF">1293754241-5060-1@BJC.BGI.B.GF</a></div>
<div>User: <a class="moz-txt-link-abbreviated" href="mailto:101@domain.com">101@domain.com</a></div>
<div>Contact: ""
<a class="moz-txt-link-rfc2396E" href="sip:101@192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp"><sip:101@192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp></a></div>
<div>Agent: Grandstream GXP1760W 1.0.1.74</div>
<div>Status: Registered(TLS)(unknown) EXP(2018-09-30 19:37:59)
EXPSECS(429254)</div>
<div>Ping-Status: Reachable</div>
<div>Ping-Time: 0.00</div>
<div>Host: pbx04.domain.lan</div>
<div>IP: 10.30.100.41</div>
<div>Port: 5060</div>
<div>Auth-User: 101</div>
<div>Auth-Realm: domain.com</div>
<div>MWI-Account: <a href="mailto:101@domain.com"
title="mailto:101@domain.com" moz-do-not-send="true">101@domain.com</a><br>
</div>
<div>volga629</div>
<br>
<br>
<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>