<p></p>
<h3 dir="auto">Description</h3>
<p dir="auto">After upgrading from the 5.6.1 release by applying 5.6 branch changes through <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/ebda78c92c21770af1a32afc2930740b80d73fd3/hovercard" href="https://github.com/kamailio/kamailio/commit/ebda78c92c21770af1a32afc2930740b80d73fd3"><tt>ebda78c</tt></a>, the <code class="notranslate">acc_cdr</code> entries for <code class="notranslate">start_time</code> and <code class="notranslate">end_time</code> in my PostgreSQL database are incorrect; the syslog output is also incorrect.  The entries in the <code class="notranslate">acc</code> table contain the correct timestamps.</p>
<p dir="auto">In PostgreSQL, each of these timestamp columns are <code class="notranslate">timestamp without time zone</code>.</p>
<pre class="notranslate"><code class="notranslate">kamailio=# SELECT id, start_time, end_time, duration, callid FROM acc_cdrs ORDER BY id DESC LIMIT 1;
  id   |     start_time      |      end_time       | duration |                 callid                  
-------+---------------------+---------------------+----------+-----------------------------------------
 24867 | 1969-12-31 18:00:25 | 1969-12-31 18:00:25 |    25.41 | 0_1083748456@fd00:a::215:65ff:fe9e:e168
(1 row)

kamailio=# SELECT id, method, time, callid FROM acc ORDER BY id DESC LIMIT 2;
   id   | method |        time         |                 callid                  
--------+--------+---------------------+-----------------------------------------
 108653 | BYE    | 2022-09-17 20:54:43 | 0_1083748456@fd00:a::215:65ff:fe9e:e168
 108652 | INVITE | 2022-09-17 20:54:18 | 0_1083748456@fd00:a::215:65ff:fe9e:e168
</code></pre>
<h4 dir="auto">Log Messages</h4>
<p dir="auto">It appears that <code class="notranslate">duration</code> is being copied into <code class="notranslate">start_time</code> and <code class="notranslate">end_time</code>.</p>
<pre class="notranslate"><code class="notranslate">INFO: acc [acc_cdr.c:367]: log_write_cdr(): start_time=25.410; end_time=25.410; duration=25.410; callid=0_1083748456@fd00:a::215:65ff:fe9e:e168; from_tag=1137456145; to_tag=645d9eee-9c3a-420a-ac37-8d3c741a5ce9;
</code></pre>
<h3 dir="auto">Additional Information</h3>
<ul dir="auto">
<li><strong>Kamailio Version</strong> - output of <code class="notranslate">kamailio -v</code></li>
</ul>
<pre class="notranslate"><code class="notranslate">version: kamailio 5.6.1-2.20220917gitebda78c9.fc36 (x86_64/linux) b36a13
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: b36a13 
compiled on 00:00:00 Sep 18 2022 with gcc 12.2.1
</code></pre>
<ul dir="auto">
<li><strong>Operating System</strong>:</li>
</ul>

<pre class="notranslate"><code class="notranslate">Fedora 36
Linux 5.19.9-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 15 09:49:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3243">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZO5W4CPGC4UE4FPCK3V63XNDANCNFSM6AAAAAAQPMQPYA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZKHZKUCZ2VUKHAHBJ3V63XNDA5CNFSM6AAAAAAQPMQPYCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFEE4VKI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3243</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3243",
"url": "https://github.com/kamailio/kamailio/issues/3243",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>