In OpenSIPs 1.4.5, dialog appeared in "opensipsctl fifo dlg_list" only if setflag was called on "modparam("dialog", "dlg_flag", 4)" that I triggered it only on an INVITE.
And everything looks fine, dialog was terminated receiving a BYE packet.
In OpenSIPS 1.5.1, all dialogs are visible in "opensipsctl fifo dlg_list", even without calling setflag(4) and furthermore, all my REGISTER transactions are not purged from memory after 200OK and the timeout parameter of these transaction increase with OpenSIPs uptime.
For example, I have put a default timeout of 10800s, my first REGISTER will get a timeout of 10807s, and another 60s later has a timeout of 10867s.
I'm trying to see where is the problem. I will keep you inform if I find something!
version: opensips 1.5.1-notls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
@(#) $Id: main.c 5469 2009-03-18 12:43:10Z bogdan_iancu $
main.c compiled on 19:03:00 Apr 30 2009 with gcc 4.1.2
PS: I put some other outputs in OpenSIPs user mailing list