<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi, Rodrigo!<br>
      <br>
      Most likely A closes the connection to OpenSIPS. You can check
      that by tracing the communication between A and OpenSIPS.<br>
      In order to solve that, make sure that the TCP keepalive[1] is
      enabled. Also, you can use the dialog pinging[2] feature ('Pp'
      flag to create_dialog()) to keep the dialog connections open.<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc103">http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc103</a><br>
      [2]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id295792">http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id295792</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 10/17/2016 11:20 PM, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BN6PR02MB2721979CB0D45A9580E6C04BB5D00@BN6PR02MB2721.namprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <div>Dear OpenSIPS users,<br>
          <br>
          <br>
          In my hardware, with IP = 192.168.0.101, I have OpenSIPS and
          softphone A. Thre is softphone B also, in another hardware.<br>
          <br>
          A calls B.<br>
          B accept the call.<br>
          After <b><u>t</u></b> minutes...B hungs up the call.<br>
          <br>
          In this moment, A enters in a wrong state, because OpenSIPS
          reports a problem and probably due to it the proxy doesn't
          communicate with softphone A in such moment. So, my softphone
          A considers that the call is not ended.<br>
          <br>
          See what OpenSIPS reports in this moment:<br>
          <br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            <a class="moz-txt-link-freetext" href="INFO:core:probe_max_sock_buff">INFO:core:probe_max_sock_buff</a>: using snd buffer of 320 kb</span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            <a class="moz-txt-link-freetext" href="INFO:core:init_sock_keepalive">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on
            socket 20</span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            ERROR:core:tcpconn_async_connect:
            <span style="color: rgb(255, 0, 0);">poll error: flags 1c</span></span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            ERROR:core:tcpconn_async_connect:
            <span style="color: rgb(255, 0, 0);">failed to retrieve
              SO_ERROR [server=192.168.0.101:57985] (111) Connection
              refused</span></span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            ERROR:core:proto_tcp_send: async TCP connect failed</span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            ERROR:tm:<span style="color: rgb(255, 0, 0);">msg_send:
              send() for proto 2 failed</span></span><br>
          <span style="color: rgb(0, 111, 201);">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: Jan  5 04:14:29 [438]
            ERROR:tm:<span style="color: rgb(255, 0, 0);">t_forward_nonack:
              sending request failed</span></span></div>
        <br>
        <p>If <b><u>t</u></b> is just few minutes, let's say 2 minutes,
          there is no any issue.</p>
        <p>However, if <b><u>t</u></b> is bigger, let's say 4 minutes,
          his issue is present.</p>
        <p><br>
        </p>
        <p>What is happening here? Can someone give some help, please!</p>
        <p>Any hint will be very helpful!</p>
        <p><br>
        </p>
        <p>------------------------------------------------------------------------</p>
        <p>Some more details:</p>
        <p>User B is <span style="font-size: 10pt;"><a class="moz-txt-link-abbreviated" href="mailto:g1r2u3p4o5@192.168.0.102">g1r2u3p4o5@192.168.0.102</a>.</span></p>
        <p>User A is <span style="font-size: 10pt;"><a class="moz-txt-link-abbreviated" href="mailto:intercomA_5dtUWgwgqzR6@192.168.0.101">intercomA_5dtUWgwgqzR6@192.168.0.101</a>.</span></p>
        <p><span style="font-size: 10pt;">Callid was <span
              style="font-size: 10pt;">"ec4548a8-4207-4fc2-8ed8-81897ff62175"</span>.<br>
          </span></p>
        <p><br>
        </p>
        <p>Before getting such error log, I saw another messages in the
          log like this:</p>
        <p><br>
        </p>
        <div><span style="font-size: 10pt;">Jan 05 04:13:28
            colibri-imx6-jfl opensips[431]: new branch at
            <a class="moz-txt-link-abbreviated" href="mailto:sip:g1r2u3p4o5@192.168.0.102:61230;transport=TCP;ob">sip:g1r2u3p4o5@192.168.0.102:61230;transport=TCP;ob</a></span><br>
          <span style="font-size: 10pt;">Jan 05 04:13:28
            colibri-imx6-jfl opensips[431]: od: invalid option -- 'A'</span><br>
          <span style="font-size: 10pt;">Jan 05 04:13:28
            colibri-imx6-jfl opensips[431]: BusyBox v1.22.1 (2016-03-29
            09:43:20 BRT) multi-call binary.</span><br>
          <span style="font-size: 10pt;">Jan 05 04:13:28
            colibri-imx6-jfl opensips[431]: Usage: od
            [-aBbcDdeFfHhIiLlOovXx] [FILE]</span><br>
          <span style="font-size: 10pt;">Jan 05 04:13:29
            colibri-imx6-jfl opensips[431]: <span style="color:
              rgb(255, 0, 0);">
              Ignoring callid</span> 
            "ec4548a8-4207-4fc2-8ed8-81897ff62175"</span><br>
          <br>
          <br>
          <span style="font-size: 10pt;">Jan 05 04:13:34
            colibri-imx6-jfl opensips[431]: Jan  5 04:13:34 [442]
            <a class="moz-txt-link-freetext" href="INFO:core:probe_max_sock_buff">INFO:core:probe_max_sock_buff</a>: using snd buffer of 320 kb</span><br>
          <span style="font-size: 10pt;">an 05 04:13:34 colibri-imx6-jfl
            opensips[431]: Jan  5 04:13:34 [442]
            <a class="moz-txt-link-freetext" href="INFO:core:init_sock_keepalive">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on
            socket 25</span><br>
          <br>
          <span style="font-size: 10pt;">an 05 04:14:29 colibri-imx6-jfl
            opensips[431]: Jan  5 04:14:29 [438]
            ERROR:dialog:dlg_validate_dialog: failed to validate remote
            contact:
            dlg=[<a class="moz-txt-link-abbreviated" href="mailto:sip:intercomA_5dtUWgwgqzR6@127.0.0.1:36427;transport=TCP;ob">sip:intercomA_5dtUWgwgqzR6@127.0.0.1:36427;transport=TCP;ob</a>]
            ,
            req=[<a class="moz-txt-link-abbreviated" href="mailto:sip:intercomA_5dtUWgwgqzR6@192.168.0.101:57985;transport=TCP;ob">sip:intercomA_5dtUWgwgqzR6@192.168.0.101:57985;transport=TCP;ob</a>]</span><br>
          <span style="font-size: 10pt;">Jan 05 04:14:29
            colibri-imx6-jfl opensips[431]: In-Dialog BYE from
            192.168.0.102 (callid=ec4548a8-4207-4fc2-8ed8-81897ff62175)
            is not valid according to dialog</span><br>
----------------------------------------------------------------------------<br>
        </div>
        <br>
        <p><br>
        </p>
        <p>Best regards.<br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <div id="Signature">
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <div class="BodyFragment"><font size="2">
                <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                  Inatel Competence Center<br>
                  Software<br>
                  Ph: +55 35 3471 9200 RAMAL 979<br>
                </div>
              </font></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>