<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi, Rodrigo!<br>
      <br>
      Sorry, I've just seen the message, I've missed it earlier.<br>
      <br>
      As far as I understand, OpenSIPS is listening on two interfaces:
      127.0.01:5060 and 192.168.0.101:5060. Is the UPDATE coming on the
      same TCP connection as the initial one? Or the client opens a new
      connection for it, over the PUBLIC interface? Could you send over
      (privately) a PCAP trace?<br>
      Also, you'd probably need to make sure that you call
      fix_nated_contact() and force_rport() on the UPDATE request. Also,
      are you setting the tcp_accept_aliases[1] or force_tcp_alias()[2]
      in your script?<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc95">http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc95</a><br>
      [2]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#force_tcp_alias">http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#force_tcp_alias</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 11/10/2016 09:59 PM, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BN6PR02MB27213F539755E1E65200C030B5B80@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;"
        dir="ltr">
        <p>Hi Razvan.</p>
        <p><br>
        </p>
        <p>I answered your questions yesterday.</p>
        <p><br>
        </p>
        <p>I'm not sure if you saw my message.</p>
        <p><br>
        </p>
        <p>Best regards.<br>
        </p>
        <p><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>
        <br>
        <br>
        <div style="color: rgb(0, 0, 0);">
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
              color="#000000" face="Calibri, sans-serif"><b>De:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org">&lt;users-bounces@lists.opensips.org&gt;</a> em nome de Răzvan
              Crainea <a class="moz-txt-link-rfc2396E" href="mailto:razvan@opensips.org">&lt;razvan@opensips.org&gt;</a><br>
              <b>Enviado:</b> quarta-feira, 9 de novembro de 2016 08:29<br>
              <b>Para:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
              <b>Assunto:</b> Re: [OpenSIPS-Users] How to make OpenSIPS
              send SIP BYE, by configuration, , before dialog timout?</font>
            <div> </div>
          </div>
          <div><tt>Hi, Rodrigo!<br>
              <br>
              The only HACK that I can think of is when you get the BYE
              message, set the dialog timeout to 0, match it against the
              dialog, and then drop the message. OpenSIPS will behave as
              if the dialog expired in that moment.<br>
              <br>
              However, you seem to have a flow logic - most likely the
              Contact header in the BYE is not correct. Could you send 
              us a trace to help you figure out what the problem is?
              Also, did you try to validate the message against the
              dialog[1] and fix it accordingly[2]?<br>
              <br>
              [1] <a moz-do-not-send="true" previewremoved="true"
                id="LPlnk224225" class="moz-txt-link-freetext"
                href="http://www.opensips.org/html/docs/modules/2.2.x/dialog#id295894">
http://www.opensips.org/html/docs/modules/2.2.x/dialog#id295894</a><br>
              [2] <a moz-do-not-send="true" previewremoved="true"
                id="LPlnk786590" class="moz-txt-link-freetext"
                href="http://www.opensips.org/html/docs/modules/2.2.x/dialog#id295982">
http://www.opensips.org/html/docs/modules/2.2.x/dialog#id295982</a><br>
              <br>
              Best regards,<br>
            </tt>
            <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" previewremoved="true" id="LPlnk156575" class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
            <div style="margin-bottom: 20px; overflow: auto; width:
              100%; text-indent: 0px;"
              id="LPBorder_GT_14787969690390.517732004325697">
              <table style="width: 90%; background-color: rgb(255, 255,
                255); position: relative; overflow: auto; padding-top:
                20px; padding-bottom: 20px; margin-top: 20px;
                border-top: 1px dotted rgb(200, 200, 200);
                border-bottom: 1px dotted rgb(200, 200, 200);"
                id="LPContainer_14787969690330.34049735937204206"
                cellspacing="0">
                <tbody>
                  <tr style="border-spacing: 0px;" valign="top">
                    <td colspan="2" style="vertical-align: top;
                      position: relative; padding: 0px; display:
                      table-cell;"
                      id="TextCell_14787969690350.6574345805315412">
                      <div style="top: 0px; color: rgb(0, 120, 215);
                        font-weight: 400; font-size: 21px; font-family:
                        &quot;wf_segoe-ui_light&quot;,&quot;Segoe UI
                        Light&quot;,&quot;Segoe WP
                        Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe
                        WP&quot;,Tahoma,Arial,sans-serif; line-height:
                        21px;"
                        id="LPTitle_14787969690350.5534499601636287">
                        <a moz-do-not-send="true" target="_blank"
                          href="http://www.opensips-solutions.com/"
                          style="text-decoration: none;"
                          id="LPUrlAnchor_14787969690360.3899614312292453">Home
                          — OpenSIPS Solutions</a></div>
                      <div style="margin: 10px 0px 16px; color: rgb(102,
                        102, 102); font-weight: 400; font-family:
                        &quot;wf_segoe-ui_normal&quot;,&quot;Segoe
                        UI&quot;,&quot;Segoe
                        WP&quot;,Tahoma,Arial,sans-serif; font-size:
                        14px; line-height: 14px;"
                        id="LPMetadata_14787969690370.5949645287411252">
                        <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></div>
                      <div style="display: block; color: rgb(102, 102,
                        102); font-weight: 400; font-family:
                        &quot;wf_segoe-ui_normal&quot;,&quot;Segoe
                        UI&quot;,&quot;Segoe
                        WP&quot;,Tahoma,Arial,sans-serif; font-size:
                        14px; line-height: 20px; max-height: 100px;
                        overflow: hidden;"
                        id="LPDescription_14787969690380.6649040990807046">
                        OpenSIPS is a mature Open Source implementation
                        of a SIP server. OpenSIPS is more than a SIP
                        proxy/router as it includes application-level
                        functionalities.</div>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="moz-cite-prefix">On 11/08/2016 10:07 PM, Rodrigo
              Pimenta Carvalho wrote:<br>
            </div>
            <blockquote type="cite">
              <div id="divtagdefaultwrapper" style="font-size:12pt;
                color:#000000;
                font-family:Calibri,Arial,Helvetica,sans-serif">
                <p>Hi.</p>
                <p><br>
                </p>
                <p>Dialogs in my OpenSIPS is programmed to finish after
                  60 seconds. (timeout = 1 minute).</p>
                <p>So, when 2 peers are in a dialog, OpenSIPS sends SIP
                  BYE to both peers, automatically after 60 seconds.</p>
                <p><br>
                </p>
                <p>Is it possible to make OpenSIPS send this exact kind
                  of SIP BYE to both peers,
                  <span>before the dialog timeout? </span>I mean, in a
                  configured way (opensips.cfg)?</p>
                <p><br>
                </p>
                <p>When OpenSISP sends SIP BYE automatically, both peers
                  receive the SIP BYE correctly.</p>
                <p>However, when a peer sends SIP BYE, it reaches the
                  OpenSIPS, but OpenSIPS is unable to forward this SIP
                  BYE. Due to some unknown reason, in this moment there
                  is no open socket to communicate with such peer. That
                  is why I would like to make OpenSIPS send 'its own'
                  SIP BYE, and see if such idea will simulate a normal
                  situation, until I discover why there is a socket
                  problem.</p>
                <p><br>
                </p>
                <p>Any hint will be very helpful!</p>
                <p><br>
                </p>
                <p>Best regards.<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>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
          </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>