<html>
  <head>
    <meta content="text/html; charset=windows-1251"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Alexander,<br>
        <br>
        At INVITE time be sure both flags (ACC_DO - accounting is
        required - and CDR_FLAG - do it as CDR) are set before you do
        create_dialog().<br>
        <br>
        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></pre>
      On 03.09.2014 10:52, Alexander Mustafin wrote:<br>
    </div>
    <blockquote
      cite="mid:10E76850-7DC3-494A-B53A-B0A960E166C5@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1251">
      Hi, Bogdan.
      <div><br>
      </div>
      <div>Sure, I’m use dialog module and create dialog. In modules
        section I’m load acc module before dialog(because, I’ve read
        about problem with it).</div>
      <div>I’ve tried to set CDR_FLAG before create_dialog and after -
        with the same result. Also, I’ve disabled CDR_FLAG and used
        ACC_DO only, but INVITE record still absent).</div>
      <div><br>
      </div>
      <div>I thought the problem with MySQL, but I’ve sniffed traffic to
        MySQL and OpenSIPS not send anything for INVITE - only for
        dialog and BYE.</div>
      <div><br>
      </div>
      <div>How can I detect what’s happened when flags is sets?</div>
      <div><br>
        <div apple-content-edited="true">
          <div style="color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <div>Best regards,</div>
            <div>Alexander Mustafin</div>
            <div><a moz-do-not-send="true"
                href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
            <div><br>
            </div>
          </div>
          <br class="Apple-interchange-newline">
          <br class="Apple-interchange-newline">
        </div>
        <br>
        <div>
          <div>03 ñåíò. 2014 ã., â 13:42, Bogdan-Andrei Iancu &lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;
            íàïèñàë(à):</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=windows-1251"
              http-equiv="Content-Type">
            <div text="#000000" bgcolor="#FFFFFF">
              <div class="moz-cite-prefix"><tt>Hi Alexander,<br>
                  <br>
                  If you use the CDR_FLAG, you really must use dialog
                  module and create the dialogs during the initial
                  INVITE - do you do that ?<br>
                  <br>
                  Regards,<br>
                </tt>
                <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
                On 03.09.2014 10:21, Alexander Mustafin wrote:<br>
              </div>
              <blockquote
                cite="mid:44C399CF-A87B-4980-B8BA-4BF858B8E33D@gmail.com"
                type="cite">
                <meta http-equiv="Content-Type" content="text/html;
                  charset=windows-1251">
                Hello!
                <div><br>
                </div>
                <div>I’ve the problem with acc - now, only BYE records
                  presents in acc table. </div>
                <div>I’ve set the flags ACC_DO and others for initial
                  INVITE, tried to use CDR_FALG, but without success. </div>
                <div><br>
                </div>
                <div>If I use CDR_FLAG with ACC_DO for INVITE and
                  disable it for BYE - all records for call absent.</div>
                <div>Maybe, other parts of my script does broke ACC
                  behavior, but I can’t see an error in debug log.</div>
                <div><br>
                </div>
                <div>
                  <div>version: opensips 1.11.2-tls (x86_64/linux)</div>
                  <div>flags: STATS: On, USE_IPV6, USE_TCP, USE_TLS,
                    DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP,
                    PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div>
                  <div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
                    262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE
                    65535</div>
                  <div>poll method support: poll, epoll_lt, epoll_et,
                    sigio_rt, select.</div>
                  <div>main.c compiled on 00:09:03 Jul  3 2014 with gcc
                    4.4.7</div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>
                  <div apple-content-edited="true">
                    <div style="font-family: Helvetica; font-style:
                      normal; font-variant: normal; font-weight: normal;
                      letter-spacing: normal; line-height: normal;
                      orphans: 2; text-align: -webkit-auto; text-indent:
                      0px; text-transform: none; white-space: normal;
                      widows: 2; word-spacing: 0px;
                      -webkit-text-stroke-width: 0px; word-wrap:
                      break-word; -webkit-nbsp-mode: space;
                      -webkit-line-break: after-white-space;">
                      <div>Best regards,</div>
                      <div>Alexander Mustafin</div>
                      <div><a moz-do-not-send="true"
                          href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
                      <div><br>
                      </div>
                    </div>
                    <br class="Apple-interchange-newline">
                    <br class="Apple-interchange-newline">
                  </div>
                  <br>
                </div>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
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>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>