<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Wondering if you actually read properly my previous response.
      There is no "nat=yes" in Route params because the call (via
      initial INVITE) is not marked as natted -- look at what is sent to
      the network for the initial INVITE in the Record-Route header.</p>
    <p>Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16.02.18 10:45, Pau Giralt wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFOidJwf3gzdo+YHcpCRChAtZg+gj7J1BYD+TEb9JWfgQzyAxg@mail.gmail.com">
      <div dir="ltr">These are the complete logs for the previous call:
        <div><br>
        </div>
        <div>[...]</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>As you can see check_route_param(): params are
          <;transport=tcp;lr></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2018-02-15 18:16 GMT+01:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              href="mailto:miconda@gmail.com" target="_blank"
              moz-do-not-send="true">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Based on the logs, there is no  check_route_param()
                executed. Actually, it is an initial INVITE, doesn't
                have a to-tag, so there is no Route header added
                previously by kamailio where check_route_param() can
                work on.</p>
              <p>Looking at the headers, this initial INVITE has Via and
                Contact with public addresses (maybe UA is using stun),
                only the SDP seems to have carrier grand nat address.
                You have to adjust the parameter for nat_uac_test() in
                order to detect it is a natted call.</p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <span class=""> <br>
                <div class="m_619335301534630616moz-cite-prefix">On
                  15.02.18 15:35, Pau Giralt wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>My kamailio version is:<br>
                      <br>
                      version: kamailio 4.4.6 (x86_64/linux) becbde<br>
                      flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP,
                      TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
                      SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
                      TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
                      FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
                      USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
                      HAVE_RESOLV_RES<br>
                      ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
                      262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE
                      65535, DEFAULT PKG_SIZE 8MB<br>
                      poll method support: poll, epoll_lt, epoll_et,
                      sigio_rt, select.<br>
                      id: becbde <br>
                      compiled on 08:18:45 Jul  3 2017 with gcc 5.4.0<br>
                      <br>
                      <br>
                    </div>
                    I've pasted the logs below.<br>
                    <div>
                      <div>
                        <div> <br>
                          ( ... )<br>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </span> [...]
              <div>
                <div class="h5"><br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div><br>
                          </div>
                          <div>Thanks!<br>
                            <br>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2018-02-15 15:02
                        GMT+01:00 Daniel-Constantin Mierla <span
                          dir="ltr"><<a
                            href="mailto:miconda@gmail.com"
                            target="_blank" moz-do-not-send="true">miconda@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF">
                            <p>Hello,</p>
                            <p>first, what is the version of kamailio?</p>
                            <p>Then, can you load debugger module and
                              set cfgtrace=1, then send here all log
                              messages for a case exposing this issue?
                              It should show what actions are executed
                              from config.</p>
                            <p>Cheers,<br>
                              Daniel<br>
                            </p>
                            <div>
                              <div class="m_619335301534630616h5"> <br>
                                <div
                                  class="m_619335301534630616m_2439203765309466644moz-cite-prefix">On
                                  15.02.18 12:08, Pau Giralt wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div class="m_619335301534630616h5">
                                  <div dir="ltr">
                                    <p>Hi!</p>
                                    <p> I'm working with kamailio and
                                      rtpproxy.<br>
                                      When I configure the clients to
                                      send sip messages through TCP
                                      adding the ";transport=tcp" in the
                                      sip message the rtpproxy is not
                                      working anymore.</p>
                                    <p>The code is never passing the
                                      point pasted below, inside
                                      route[NATMANAGE] in kamailio.cfg</p>
                                    <pre><code>if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB))) return;
</code></pre>
                                    <p>Therefore, <code>rtpproxy_manage("co");</code>
                                      is never reached.</p>
                                    <p>Could it be a parsing problem? (
                                      <code>check_route_param("nat=yes")</code>
                                      )</p>
                                    <p>The config file is exactly the
                                      same as the one provided in the
                                      kamailio repository (the default
                                      one)<br>
                                    </p>
                                    <p>Thanks!</p>
                                    <br>
                                  </div>
                                  <br>
                                  <fieldset
                                    class="m_619335301534630616m_2439203765309466644mimeAttachmentHeader"></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_619335301534630616m_2439203765309466644moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="m_619335301534630616m_2439203765309466644moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_619335301534630616HOEnZb"><font color="#888888">
</font></span></pre>
                              <span class="m_619335301534630616HOEnZb"><font
                                  color="#888888"> </font></span></blockquote>
                            <span class="m_619335301534630616HOEnZb"><font
                                color="#888888"> <br>
                                <pre class="m_619335301534630616m_2439203765309466644moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_619335301534630616m_2439203765309466644moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_619335301534630616m_2439203765309466644moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_619335301534630616m_2439203765309466644moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_619335301534630616m_2439203765309466644moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
                              </font></span></div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <pre class="m_619335301534630616moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_619335301534630616moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_619335301534630616moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_619335301534630616moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_619335301534630616moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>