<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    hmm, quite interesting, if works for everything but 5xx. Does it
    happen for each 5xx, or just from time to time?<br>
    <br>
    Can you enable query log in mysql and see what query is sent to the
    server?<br>
    <br>
    Also, in case you record missed calls, be sure you have the columns
    in missed_calls table.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/04/15 02:05, Ethan Brooks wrote:<br>
    </div>
    <blockquote
cite="mid:CAB3hW3itp=ikfL=VAsNnOiyJXco2BWrovgLP0puXUOM1Vqd0-A@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am seeing a very strange error saying
        that time_attr is an unknown column and the insert is failing.
        What is strange is that it is in the acc table and is being
        populated for all successful calls. It seem to only happen for
        5xx unsuccessful calls and the INVITE is not recorded. 4xx
        response are recorded.
        <div><br>
        </div>
        <div><b>config</b></div>
        <div>modparam("acc", "time_mode", 1);<br>
        </div>
        <div>
          <div>modparam("acc", "failed_transaction_flag", 3)</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><b>syslog</b></div>
        <div>
          <div>
            <div>
              <div>Apr  9 20:40:52 a-deploy-callprocessing3
                /usr/sbin/kamailio[9732]: ERROR: db_mysql
                [km_dbase.c:123]: db_mysql_submit_query(): driver error
                on query: Unknown column 'time_attr' in 'field list'</div>
              <div>Apr  9 20:40:52 a-deploy-callprocessing3
                /usr/sbin/kamailio[9732]: ERROR: <core>
                [db_query.c:235]: db_do_insert_cmd(): error while
                submitting query</div>
              <div>Apr  9 20:40:52 a-deploy-callprocessing3
                /usr/sbin/kamailio[9732]: ERROR: acc [acc.c:504]:
                acc_db_request(): failed to insert into database</div>
            </div>
          </div>
          <div><br>
          </div>
          <div><b>Database Fields:</b></div>
          <div>
            <div>  `time_attr` int(11) DEFAULT NULL,</div>
            <div>  `time_exten` int(11) DEFAULT NULL,</div>
          </div>
          <div><br>
          </div>
          <div><b>kamailio -v</b></div>
          <div>
            <div>version: kamailio 4.2.3 (x86_64/linux)</div>
            <div>flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
              USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
              SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC,
              USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
              USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
              HAVE_RESOLV_RES</div>
            <div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
              MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT
              PKG_SIZE 8MB</div>
            <div>poll method support: poll, epoll_lt, epoll_et,
              sigio_rt, select.</div>
            <div>id: unknown</div>
            <div>compiled on 12:08:27 Feb 16 2015 with gcc 4.9.1</div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <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-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>