<p></p>
<p>With the dialog and acc modules configured to generate CDRs to syslog, sometimes a CDR is not generated when a call ends. It appears that this is because some callers are closing the websocket just after sending the BYE. That means that when the 200 response to the BYE arrives it can't be relayed as the websocket has closed. It does seem to be timing related.</p>
<p>We use the websocket close event to shorten the dialog timeout to 1 second.</p>
<p>We also don't get a CDR if we close the websocket while a call is active. The dialog times out and sends a BYE to the callee (it fails to send to the caller, not because the websocket is closed but because the *.invalid contact address can't be resolved!) and then destroys the dialog.</p>
<p><a href="https://github.com/kamailio/kamailio/files/5702715/kamailio.log">kamailio.log</a></p>
<p><a href="https://github.com/kamailio/kamailio/files/5702719/kamailio-sipdump-2020-12-16--11-13-52.data.log">kamailio-sipdump-2020-12-16--11-13-52.data.log</a></p>
<ul>
<li>
<p><strong>Kamailio Version</strong> - output of <code>kamailio -v</code><br>
version: kamailio 5.3.6 (x86_64/linux) fb26c8<br>
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_BLACKLIST, HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: fb26c8<br>
compiled on 11:51:56 Nov 17 2020 with gcc 4.8.5</p>
</li>
<li>
<p><strong>Operating System</strong>:</p>
</li>
</ul>
<p>Linux ip-172-30-0-66 4.14.114-83.126.amzn1.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="31891578" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/1" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/1/hovercard" href="https://github.com/kamailio/kamailio/issues/1">#1</a> SMP Tue May 7 02:26:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</p>

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