<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div><div style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Hello Bogdan,</div><div style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Yes, the issue that outbound socket is UDP I expected that contact will not contain ;transport=tls.</div><br style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"><div style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">volga629</div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"volga629" <volga629@skillsearch.ca><br><b>To: </b>"Bogdan-Andrei Iancu" <bogdan@opensips.org><br><b>Cc: </b>"OpenSIPS users mailling list" <users@lists.opensips.org><br><b>Sent: </b>Wednesday, September 26, 2018 9:22:09 AM<br><b>Subject: </b>Re: [OpenSIPS-Users] rewite contact<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>Hello Bogdan,</div><div>Yes, the issue that outbound socket is UDP I expected that contact will not contain ;transport=tls.</div><br><div>volga629</div><br><hr id="zwchr"><div><b>From: </b>"Bogdan-Andrei Iancu" <bogdan@opensips.org><br><b>To: </b>"OpenSIPS users mailling list" <users@lists.opensips.org>, "Slava Bendersky" <volga629@networklab.ca><br><b>Sent: </b>Wednesday, September 26, 2018 6:45:09 AM<br><b>Subject: </b>Re: [OpenSIPS-Users] rewite contact<br></div><br><div><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">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
<a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" target="_blank">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 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" target="_blank"><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" target="_blank">1293754241-5060-1@BJC.BGI.B.GF</a></div>
<div>User: <a class="moz-txt-link-abbreviated" href="mailto:101@domain.com" target="_blank">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" target="_blank"><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" target="_blank">101@domain.com</a><br>
</div>
<div>volga629</div>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div></div><br></div></div></body></html>