miconda left a comment (kamailio/kamailio#4169)
Looking at the code, it might have been the case when the response of the first BYE (towards the caller) is received before the second one (towards the callee) is sent out. I pushed a commit on devel version (referenced above), can you try it?