<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Salva,<br>
<br>
The CT "*" will be forwarded to the main-registrar and all the
local contacts (on mid-registrar) discarded.<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/27/2018 01:19 AM, Slava Bendersky
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1538000317.local-009a0cef-21fe-v1.4.2-f587b7b7@getmailspring.com">
<div>Hello Bogdan,</div>
<div>How mid_registrar will handle * on Contact header</div>
<br>
<div>2018/09/26 16:23:21.555947 10.30.100.41:5060 ->
10.30.100.48:5160</div>
<div>REGISTER <a class="moz-txt-link-freetext" href="sip:domain.com:5160">sip:domain.com:5160</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP
10.30.100.41:5060;branch=z9hG4bKabc6.46892d12.0;i=00250de2</div>
<div>Via: SIP/2.0/TLS
192.168.1.65:5060;received=190.240.46.242;branch=z9hG4bK834060502;rport=61454;alias</div>
<div>From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.com:5160"><sip:101@domain.com:5160></a>;tag=1400521034</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.com:5160"><sip:101@domain.com:5160></a></div>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1371876924-5060-1@BJC.BGI.B.GF">1371876924-5060-1@BJC.BGI.B.GF</a></div>
<div>CSeq: 2000 REGISTER</div>
<div>Contact: *</div>
<div>X-Grandstream-PBX: true</div>
<div>Max-Forwards: 69</div>
<div>User-Agent: Grandstream GXP1760W 1.0.1.74</div>
<div>Expires: 0</div>
<div>Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY,
INFO, REFER, UPDATE, MESSAGE</div>
<div>Content-Length: 0</div>
<div>Path: <a class="moz-txt-link-rfc2396E" href="sip:101@10.30.100.41:5060;transport=udp"><sip:101@10.30.100.41:5060;transport=udp></a></div>
<br>
<div class="gmail_quote_attribution">On Sep 26 2018, at 9:23 am,
Slava Bendersky <a class="moz-txt-link-rfc2396E" href="mailto:volga629@networklab.ca"><volga629@networklab.ca></a> wrote:</div>
<blockquote><br>
<div>
<div>
<div>
<div><font style="font-size:12pt"><font
style="font-size:16px"><font
style="font-family:"lucida console",
sans-serif">Hello Bogdan,</font></font></font></div>
<div><font style="font-size:12pt"><font
style="font-size:16px"><font
style="font-family:"lucida console",
sans-serif">Yes, the issue that outbound socket is
UDP I expected that contact will not contain
;transport=tls.</font></font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-size:16px"><font
style="font-family:"lucida console",
sans-serif">volga629</font></font></font></div>
<br>
</div>
<div><br>
</div>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>From: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">"volga629"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>To: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">"Bogdan-Andrei Iancu"
<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>Cc: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">"OpenSIPS users mailling list"
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>Sent: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Wednesday, September 26, 2018 9:22:09 AM</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>Subject: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Re: [OpenSIPS-Users] rewite contact</font></font></div>
</div>
<div><br>
</div>
<div>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Hello Bogdan,</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Yes, the issue that outbound socket is
UDP I expected that contact will not contain
;transport=tls.</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">volga629</font></font></div>
<br>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>From: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">"Bogdan-Andrei Iancu"
<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>To: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">"OpenSIPS users mailling list"
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>, "Slava
Bendersky" <a class="moz-txt-link-rfc2396E" href="mailto:volga629@networklab.ca"><volga629@networklab.ca></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>Sent: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Wednesday, September 26, 2018
6:45:09 AM</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><strong>Subject: </strong></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Re: [OpenSIPS-Users] rewite contact</font></font></div>
</div>
<br>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Hi Slava,</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">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).</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Regards,</font></font></div>
<code>
<pre style="background-color:rgba(0,0,0,0.05);padding:0.2em 1em"><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif">Bogdan-Andrei Iancu</font></font></code></div>
<div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif">OpenSIPS Founder and Developer</font></font></code></div><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"> </font></font></code><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"><a href="http://www.opensips-solutions.com" title="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a></font></font></code></div><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif">OpenSIPS Bootcamp 2018</font></font></code></div><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"> </font></font></code><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"><a href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" title="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" moz-do-not-send="true">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a></font></font></code></div></pre>
</code>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">On 09/26/2018 05:19 AM, Slava
Bendersky wrote:</font></font></div>
</div>
<blockquote>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Hello Everyone,</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">In which case mid_registrar will
not rewrite contact ?</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">I see when present param
;transport=tls contact is not rewritten.</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">config</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">#### REGISTRAR module</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">loadmodule "mid_registrar.so"</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">modparam("mid_registrar", "mode",
2)</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">modparam("mid_registrar",
"received_avp", "$avp(RECEIVED)")</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">modparam("mid_registrar",
"max_contacts", 10)</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">modparam("mid_registrar",
"tcp_persistent_flag",
"TCP_PERSIST_REGISTRATIONS")</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">modparam("mid_registrar",
"outgoing_expires", 7200)</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">code</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">if($proto=="TCP|tcp|TLS|tls") {</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">setflag(TCP_PERSIST_REGISTRATIONS);</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">}</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">mid_registrar_save("location","p1");</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"># Work arround for github issue
#1109</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">append_hf("Path: </font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><a
href="sip:$fU@lan_ip:5060;transport=udp"
title="sip:$fU@lan_ip:5060;transport=udp"
moz-do-not-send="true"><sip:$fU@lan_ip:5060;transport=udp></a></font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">\r\n");</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">xlog("L_INFO", "Forwarding
REGISTER to main registrar ~> [$ct]\n");</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">}</font></font></div>
<br>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Freeswitch contact</font></font></div>
<br>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Call-ID: </font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><a
href="mailto:1293754241-5060-1@BJC.BGI.B.GF"
title="mailto:1293754241-5060-1@BJC.BGI.B.GF" moz-do-not-send="true">1293754241-5060-1@BJC.BGI.B.GF</a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">User: </font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><a href="mailto:101@domain.com"
title="mailto:101@domain.com"
moz-do-not-send="true">101@domain.com</a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Contact: "" </font></font><font
style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif"><a
href="sip:101@192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp"
title="sip:101@192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp"
moz-do-not-send="true"><sip:101@192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp></a></font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Agent: Grandstream GXP1760W
1.0.1.74</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Status: Registered(TLS)(unknown)
EXP(2018-09-30 19:37:59) EXPSECS(429254)</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Ping-Status: Reachable</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Ping-Time: 0.00</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Host: pbx04.domain.lan</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">IP: 10.30.100.41</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Port: 5060</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Auth-User: 101</font></font></div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">Auth-Realm: domain.com</font></font></div>
<div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida
console", sans-serif">MWI-Account: </font></font><font
style="font-size:12pt"><font
style="font-family:"lucida
console", sans-serif"><a
href="mailto:101@domain.com"
title="mailto:101@domain.com"
moz-do-not-send="true">101@domain.com</a></font></font></div>
</div>
<div><font style="font-size:12pt"><font
style="font-family:"lucida console",
sans-serif">volga629</font></font></div>
<br>
<br>
<br>
<br>
<code>
<pre style="background-color:rgba(0,0,0,0.05);padding:0.2em 1em"><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif">_______________________________________________</font></font></code></div><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif">Users mailing list</font></font></code></div><div><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"><a href="mailto:Users@lists.opensips.org" title="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a></font></font></code><code><font style="font-size:12pt"><font style="font-family:"lucida console", sans-serif"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" title="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></font></font></code></div></pre>
</code></blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</blockquote>
<br>
</body>
</html>