<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi,<br>
      <br>
      It looks to me you are trying to compare apples with pears :)<br>
      <br>
      In the 3.1 test, the TCP connection was found as already existing,
      while in the 3.2 test no TCP conn was found and it is proceeding
      to opening a new one -> so, yeah, different cases, different
      logs :)<br>
      <br>
      Regards, </font><br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 27-30 Sept 2022, Athens
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2022Athens/">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
    <div class="moz-cite-prefix">On 9/26/22 11:39 AM, jacky z wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOB03Dsatp+hAG=ZgctX1sk6kV3kMkUbcGUoYWPOSTwVM=UC9A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">Hi Team,<br>
            <div><br>
            </div>
            <div>We are testing Opensips 3.2.8 and found it can't send
              stored offline messages on register. Compared with 3.1, it
              doesn't look for the tcp con. Here are the comparisons
              between the logs of these two versions:</div>
            <div><br>
            </div>
            <div>In 3.1, the existing con was looked and found and then
              the message was sent. Please refer to the texts in red.</div>
            <div><br>
            </div>
            <div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:tm:print_request_uri: <a
                  href="http://sip:3293543374@sip.domain.com:5061"
                  moz-do-not-send="true">sip:3293543374@sip.domain.com:5061</a></div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:tm:run_local_route: building sip_msg from buffer</div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:parse_msg:
                SIP Request:</div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:parse_msg: 
                method:  <MESSAGE></div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:parse_msg: 
                uri:     <<a
                  href="http://sip:3293543374@sip.domain.com:5061"
                  moz-do-not-send="true">sip:3293543374@sip.domain.com:5061</a>></div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:parse_msg: 
                version: <SIP/2.0></div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_headers: flags=ffffffffffffffff</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_via_param: found param type 232,
                <branch> = <z9hG4bKc2f3.b2d09993.0>;
                state=16</div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:parse_via:
                end of header reached, state=5</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_headers: via found,
                flags=ffffffffffffffff</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_headers: this is the first via</div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:_parse_to:
                end of header reached, state=9</div>
              <div>Sep 26 08:09:56 opensips[11566]: DBG:core:_parse_to:
                display={}, ruri={<a
                  href="http://sip:3293543374@sip.domain.com:5061"
                  moz-do-not-send="true">sip:3293543374@sip.domain.com:5061</a>}</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:get_hdr_field: <To> [38]; uri=[<a
                  href="http://sip:3293543374@sip.domain.com:5061"
                  moz-do-not-send="true">sip:3293543374@sip.domain.com:5061</a>] </div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:get_hdr_field: to body [<a
                  href="http://sip:3293543374@sip.domain.com:5061#015#012"
                  moz-do-not-send="true">sip:3293543374@sip.domain.com:5061#015#012</a>]</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:get_hdr_field: cseq <CSeq>: <10>
                <MESSAGE></div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:get_hdr_field: content_length=28</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:get_hdr_field: found end of header</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_headers: flags=ffffffffffffffff</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:parse_headers: flags=78</div>
              <div><b><font color="#ff0000">Sep 26 08:09:56
                    opensips[11566]: DBG:core:tcp_conn_get: con found in
                    state 0</font></b></div>
              <div><b><font color="#ff0000">Sep 26 08:09:56
                    opensips[11566]: DBG:core:tcp_conn_get: tcp
                    connection found (0x7fd4544f8130), acquiring fd</font></b></div>
              <div><b><font color="#ff0000">Sep 26 08:09:56
                    opensips[11566]: DBG:core:tcp_conn_get: c=
                    0x7fd4544f8130, n=16, Usock=89</font></b></div>
              <div>Sep 26 08:09:56 opensips[11571]:
                DBG:core:handle_worker: read response= 7fd4544f8130, 1,
                fd -1 from 9 (11566)</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:core:tcp_conn_get: after receive_fd: c=
                0x7fd4544f8130 n=8 fd=118</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:proto_tls:proto_tls_send: sending via fd 118...</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:proto_tls:tls_update_fd: New fd is 118</div>
              <div>Sep 26 08:09:56 opensips[11566]:
                DBG:proto_tls:tls_write: write was successful (555
                bytes)</div>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>In 3.2.8, it seems the tcp connection was not looked
              for or found. There is no tcp_conn_get as shown in the
              logs of 3.1, but reach the conclusion no tcp connection
              found. It seems something is missing. </div>
            <div><br>
            </div>
            <div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:tm:run_local_route: building sip_msg from buffer</div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:parse_msg:
                SIP Request:</div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:parse_msg: 
                method:  <MESSAGE></div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:parse_msg: 
                uri:     <<a
                  href="mailto:sip%3A6989229721@sip.domain.com"
                  moz-do-not-send="true">sip:6989229721@sip.domain.com</a>></div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:parse_msg: 
                version: <SIP/2.0></div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_headers: flags=ffffffffffffffff</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_via_param: found param type 232,
                <branch> = <z9hG4bK2c0f.5dc63a16.0>;
                state=16</div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:parse_via:
                end of header reached, state=5</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_headers: via found,
                flags=ffffffffffffffff</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_headers: this is the first via</div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:_parse_to:
                end of header reached, state=9</div>
              <div>Sep 26 08:18:33 opensips[3481]: DBG:core:_parse_to:
                display={}, ruri={<a
                  href="mailto:sip%3A6989229721@sip.domain.com"
                  moz-do-not-send="true">sip:6989229721@sip.domain.com</a>}</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:get_hdr_field: <To> [32]; uri=[<a
                  href="mailto:sip%3A6989229721@sip.domain.com"
                  moz-do-not-send="true">sip:6989229721@sip.domain.com</a>]</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:get_hdr_field: to body [<a
                  href="http://sip:6989229721@sip.domain.com#015#012"
                  moz-do-not-send="true">sip:6989229721@sip.domain.com#015#012</a>]</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:get_hdr_field: cseq <CSeq>: <10>
                <MESSAGE></div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:get_hdr_field: content_length=36</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:get_hdr_field: found end of header</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_headers: flags=ffffffffffffffff</div>
              <div>Sep 26 08:18:33 opensips[3481]:
                DBG:core:parse_headers: flags=78</div>
              <div><font color="#ff0000"><b>Sep 26 08:18:33
                    opensips[3481]: DBG:proto_tls:proto_tls_send: no
                    open tcp connection found, opening new one, async =
                    0</b></font></div>
            </div>
            <div><br>
            </div>
            <div>Thank you!</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>