<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Slava,<br>
      <br>
      Could you provide a small pcap showing the incoming and outgoing
      REGISTER requests (with the network info too) ?<br>
      <br>
      Re-iterating on how the CT parameters are working with
      mid_registrar - all incoming CT URI parameters are removed (as
      locally stored), so by default there is no parameter in the
      outbound REGISTER, unless you use "extra_contact_params_avp"
      module parameter.<br>
      <br>
      Thanks,<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 03:22 PM, Slava Bendersky
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:573352157.46489.1537964529231.JavaMail.zimbra@skillsearch.ca">
      <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>
        <div><br data-mce-bogus="1">
        </div>
        <div>volga629</div>
        <div><br>
        </div>
        <hr id="zwchr" data-marker="__DIVIDER__">
        <div data-marker="__HEADERS__"><b>From: </b>"Bogdan-Andrei
          Iancu" <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a><br>
          <b>To: </b>"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><br>
          <b>Sent: </b>Wednesday, September 26, 2018 6:45:09 AM<br>
          <b>Subject: </b>Re: [OpenSIPS-Users] rewite contact<br>
        </div>
        <div><br>
        </div>
        <div data-marker="__QUOTED_TEXT__"><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" moz-do-not-send="true">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" moz-do-not-send="true">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"
                moz-do-not-send="true"><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" moz-do-not-send="true">1293754241-5060-1@BJC.BGI.B.GF</a></div>
            <div>User: <a class="moz-txt-link-abbreviated"
                href="mailto:101@domain.com" target="_blank"
                moz-do-not-send="true">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" 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></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"
                moz-do-not-send="true">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" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>