<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>ok, good to know is someone tackling it.</p>
    <p>Thanks,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 15/03/2017 12:14, Pawel Kuzak wrote:<br>
    </div>
    <blockquote cite="mid:c3eba885-f410-0d5d-0d51-30f2a6a59467@1und1.de"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p>Hello,</p>
      <p>This indeed is a bug we've also spotted. It is not only present
        in 5.0. It seems the <i>run_create_callbacks()</i> function
        which triggers the <i>DLGCB_CREATED</i> callbacks to be
        executed is not called for dialogs created from database. We are
        already working on a fix and are currently testing it. We will
        try push it upstream as soon as possible. We will answer on this
        thread when a fix is upstream.</p>
      <p>Regards,<br>
        Paul<br>
      </p>
      <br>
      <div class="moz-cite-prefix">Am 14.03.2017 um 22:00 schrieb
        Kordován Szabolcs:<br>
      </div>
      <blockquote
cite="mid:CANKf1TzZNFfMC+SSv1NcaFfQ2QbEkU9fB=VCdSUs+HEDVE4NJg@mail.gmail.com"
        type="cite">
        <meta http-equiv="Context-Type" content="text/html; ">
        <div dir="ltr">Hello Daniel,
          <div><br>
          </div>
          <div>Sorry for my reply, I didn't receive your mail.</div>
          <div>So, only the active calls are affected. The new call,
            from invite to bye-ok, is recorded into table acc and
            acc_cdrs.</div>
          <div><br>
          </div>
          <div>Regards,</div>
          <div>Szabolcs</div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">2017-03-14 11:13 GMT+01:00 Kordován
            Szabolcs <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:koszab@gmail.com" target="_blank">koszab@gmail.com</a>></span>:<br>
            <blockquote class="gmail_quote">
              <div dir="ltr">Hi,
                <div><br>
                </div>
                <div>I use acc module for create cdr into db and also
                  make acc log into db.</div>
                <div>After restart Kamailio cdr won't be created but acc
                  log will be inserted into db. In the syslog also I see
                  just the acc log. The dialog will be remove from db.</div>
                <div><br>
                </div>
                <div>I have read many threads. I know that it should
                  work.</div>
                <div><br>
                </div>
                <div>Thanks for help!</div>
                <div>Regards,</div>
                <div>Szabolcs</div>
                <div><br>
                </div>
                <div>From my configs:</div>
                <div><br>
                </div>
                <div>
                  <div>#!define FLT_ACC 1</div>
                  <div>#!define FLT_ACCMISSED 2</div>
                  <div>#!define FLT_ACCFAILED 3</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "db_url", DBURL)</div>
                  <div>modparam("acc", "db_flag", FLT_ACC)</div>
                  <div>modparam("acc", "db_missed_flag", FLT_ACCMISSED)</div>
                  <div>modparam("acc", "db_extra",
                    "src_user=$fU;src_domain=$fd;<wbr>dst_ouser=$tU;dst_user=$rU;<wbr>dst_domain=$rd;src_ip=$si")</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "log_level", 3)</div>
                  <div>modparam("acc", "log_flag", FLT_ACC)</div>
                  <div>modparam("acc", "log_missed_flag", FLT_ACCMISSED)</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "report_ack", 1)</div>
                  <div>modparam("acc", "report_cancels", 1)</div>
                  <div>modparam("acc", "early_media", 1)</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "failed_transaction_flag",
                    FLT_ACCFAILED)</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "acc_prepare_always", 1)</div>
                  <div>modparam("acc", "time_mode", 1)</div>
                  <div>modparam("acc", "time_attr", "seconds")</div>
                  <div>modparam("acc", "time_exten", "microsecs")</div>
                  <div>modparam("acc", "reason_from_hf", 1)</div>
                  <div><br>
                  </div>
                  <div>modparam("acc", "cdr_enable", 1)</div>
                  <div>modparam("acc", "cdr_expired_dlg_enable", 1)</div>
                  <div>modparam("acc", "cdr_start_on_confirmed", 1)</div>
                  <div>modparam("acc", "cdrs_table", "acc_cdrs")</div>
                  <div>modparam("acc", "cdr_on_failed", 1) </div>
                  <div>modparam("acc", "cdr_extra",
                    "callid=$ci;src_user=$dlg_var(<wbr>fU);src_domain=$dlg_var(fd);<wbr>dst_ouser=$dlg_var(tU);dst_<wbr>user=$dlg_var(rU);dst_domain=$<wbr>dlg_var(rd);src_ip=$dlg_var(<wbr>si);peer_in=$dlg_var(peerin);<wbr>peer_out=$dlg_var(peerout)")</div>
                  <div><br>
                  </div>
                </div>
                <div>
                  <div>request_route {</div>
                  <div><------></div>
                  <div><------>$var(loose) = loose_route();</div>
                  <div><------>$var(check_trans) =
                    t_check_trans();</div>
                  <div><------>sip_trace();<br>
                  </div>
                  <div><------>setflag(FLT_SIPTRACE);</div>
                  <div><------>dlg_manage();</div>
                  <div><br>
                  </div>
                  <div><------># handle retransmissions</div>
                  <div><------>if(t_precheck_trans()) {</div>
                  <div><------>    xlogl("LOG_LOCAL0", "L_ALERT",
                    "================== kamaty $rm route $ci ==== $rm
                    ==== precheck_trans exit\n");</div>
                  <div><------>    exit;</div>
                  <div><------>}</div>
                  <div><br>
                  </div>
                  <div><------>if(is_method("OPTIONS"<wbr>)) {.</div>
                  <div><------>    # send reply for each options
                    request.</div>
                  <div><------>    sl_send_reply("200", "ok");.</div>
                  <div><------>    exit();.</div>
                  <div><------>}</div>
                  <div>
                    <div><------># CANCEL processing<br>
                    </div>
                    <div><------>if (is_method("CANCEL")) {</div>
                    <div><------><------>if
                      (t_check_trans()) {</div>
                    <div><------><------>    route(RELAY);</div>
                    <div><------><------>}</div>
                    <div><------><------>exit;</div>
                    <div><------>}</div>
                    <div><------>if ( is_method("ACK") ) {</div>
                    <div><------><------>if (
                      $var(check_trans) ) {</div>
                    <div><------><------>    route(RELAY);</div>
                    <div><------><------>}</div>
                    <div><------><------>exit;</div>
                    <div><------>}</div>
                    <div><------>if (is_method("BYE")) {</div>
                    <div><------>    if ($var(loose)) {</div>
                    <div><------><------>setflag(FLT_<wbr>ACC);
                      # do accounting ...</div>
                    <div><------><------>setflag(FLT_<wbr>ACCFAILED);
                      # ... even if the transaction fails</div>
                    <div><------><------>setflag(FLT_<wbr>ACCMISSED);</div>
                    <div><------><------>route(RELAY);</div>
                    <div><------>    <-->exit;</div>
                    <div><------>    }</div>
                    <div><------>    exit;</div>
                    <div><------>}</div>
                    <div>etc.</div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>