<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Flavio,<br>
    <br>
    According to the RFC, the callee side must not send a BYE for a
    dialog in early state. <br>
    I have just edited the dialog state machine to no longer log BYEs
    from the caller's side for dialogs in early state as bogus.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 03/20/2012 11:46 PM, Flavio Goncalves wrote:
    <blockquote
cite="mid:CAJkFROxhjZMtcQG2H1nZ97PSoSNmm=hPz5hFM5TYjBjs0AqOMg@mail.gmail.com"
      type="cite">Hi Jan,&nbsp;
      <div><br>
      </div>
      <div>I had the same issue recently, I have captured some packets
        at the same exact time of the messages. In some cases, if your
        system becomes unresponsive for a few seconds, CANCELs were not
        relayed by the proxy (actually I saw several requests without
        any reply for some time). Then, the other side sent a BYE (some
        sort of timeout I believe) in early state because it didn't
        receive the CANCEL request. This was&nbsp;happening&nbsp;because of a
        MYSQL stored procedure (billing) closing records in a large
        database with millions of acc records, mysqld was going to 100%
        and blocking the system. I stopped the stored procedure and the
        system stopped presenting these messages. So, maybe this is
        something to worry about. I hope you don't have the same issue,
        but I believe it is worth to check.&nbsp;</div>
      <div><br>
      </div>
      <div>
        <div>Flavio E. Goncalves</div>
        <div>&nbsp;</div>
        <br>
        <br>
        <br>
        <div class="gmail_quote">On Wed, Mar 14, 2012 at 3:08 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Hi Jan,<br>
            <br>
            I was just saying to Max (see the other email) that BYE
            instead CANCEL seems to be according to RFC; and as the
            dialog module has nothing to do on a BYE in early state, we
            could simply remove the error log and let the callee to
            decide if the BYE should be accepted or not.<br>
            <br>
            Regards,<br>
            Bogdan
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 03/14/2012 03:24 PM, Jan D. wrote:<br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  Bogdan,<br>
                  <br>
                  Thanks for the quick reply. I understand my
                  programming at least is OK. The<br>
                  critical log entries are just inconvenient when
                  reading the log files.<br>
                  Returning a 501 works for x-lite, it then comes back
                  with a Cancel. If not<br>
                  returning a 501 strange things happen (INVITE to
                  failover etc).<br>
                  <br>
                  I only see the problem only with x-lite clients. Do
                  you know that sending a<br>
                  BYE before a Cancel is 'wrong'? If so I can open a bug
                  report with X-lite.<br>
                  <br>
                  Gr.<br>
                  <br>
                  Jan<br>
                  <br>
                  <br>
                  --<br>
                  View this message in context: <a
                    moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/log-next-state-dlg-bogus-events-tp7354379p7371762.html"
                    target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/log-next-state-dlg-bogus-events-tp7354379p7371762.html</a><br>
                  Sent from the OpenSIPS - Users mailing list archive at
                  Nabble.com.<br>
                  <br>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.opensips.org"
                    target="_blank">Users@lists.opensips.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                    target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                  <br>
                </blockquote>
                <br>
                <br>
              </div>
            </div>
            <div class="im HOEnZb">
              -- <br>
              Bogdan-Andrei Iancu<br>
              OpenSIPS Founder and Developer<br>
              <a moz-do-not-send="true"
                href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
              <br>
              <br>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                _______________________________________________<br>
                Users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>