Just tested new patch and it seems to fix the problem. Thank you for your fast fix.
``` kamcmd> dns.lookup NAPTR sip.fi.setera.com { name: sip.example.com type: NAPTR size_bytes: 312 reference_counter: 2 permanent: no expires: 3541 last_used: 0 negative_entry: no records: { { rr_idx: 0 rr_order: 100 rr_preference: 50 rr_flags: s rr_service: SIP+D2U rr_regexp: rr_regexp: _sip._udp.sip.example.com rr_permanent: no rr_expires: 3541 } { rr_idx: 1 rr_order: 102 rr_preference: 50 rr_flags: s rr_service: SIP+D2T rr_regexp: rr_regexp: _sip._tcp.sip.example.com rr_permanent: no rr_expires: 3541 } } } ```
``` # kamailio -v version: kamailio 5.2.0-pre0 (x86_64/linux) 044cde flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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 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: 044cde compiled on 06:23:13 Oct 19 2018 with gcc 6.3.0 ```