<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Daniel,<br>
      <br>
      There are 3 types of accountings in OpenSIPS - per message, per
      transaction, per dialog.<br>
      <br>
      For the per message, it is clear :) . When doing per-transaction
      accounting, the ACC record is written when the transaction is
      completed with a final response (>=200) on the UAS side
      (towards caller). For the dialog based accounting, the time
      reference (for ending the call) is the reception of BYE request;
      still the CDR is written on the BYE final reply (as OpenSIPS
      allows you to collect CDR info from the BYE replies too).<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
    <div class="moz-cite-prefix">On 07/20/2017 10:49 PM, Daniel Zanutti
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN0jgiOapj7U0Ggj9jm+nCtCfE78fdXyi7U641eU3aNBKCE-OQ@mail.gmail.com">
      <div dir="ltr">Hi Alex
        <div><br>
        </div>
        <div>I'm having a billing problem from receiving BYE to 200 OK
          is taking more than 500ms. If BYE is accounted when it's
          received, great!</div>
        <div><br>
        </div>
        <div>Are you absolutely sure it works this way?</div>
        <div><br>
        </div>
        <div>Thanks</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jul 20, 2017 at 4:26 PM, Alex
          Balashov <span dir="ltr"><<a
              href="mailto:abalashov@evaristesys.com" target="_blank"
              moz-do-not-send="true">abalashov@evaristesys.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">My
            understanding is that this is a rather simple module without
            sophisticated state componentry, and that it logs things
            immediately as received, in the same iteration of message
            processing.<br>
            <br>
            -- Alex<br>
            <br>
            --<br>
            Principal, Evariste Systems LLC (<a
              href="http://www.evaristesys.com" rel="noreferrer"
              target="_blank" moz-do-not-send="true">www.evaristesys.com</a>)<br>
            <br>
            Sent from my Google Nexus.<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                ______________________________<wbr>_________________<br>
                Users mailing list<br>
                <a href="mailto:Users@lists.opensips.org"
                  moz-do-not-send="true">Users@lists.opensips.org</a><br>
                <a
                  href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>