Currently i am trying to test mongodb for usrloc module of kamailio. As expected kamailio is saving the contacts on DB. However i am encountering a problem that the nathelper does not ping the registered contact on mongodb but when mysql is used it is ok even if ping_nated_only is set to 0.
If mysql: ``` modparam("usrloc", "db_url", DBURL) modparam("usrloc", "db_mode", 3) modparam("usrloc", "use_domain", 0) modparam("usrloc", "timer_interval", 60) modparam("usrloc", "db_ops_ruid", 1)
modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 0) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org") ```
if mongodb ``` modparam("usrloc", "db_url", MONGODBURL) modparam("usrloc", "db_mode", 3) modparam("usrloc", "use_domain", 0) modparam("usrloc", "timer_interval", 60) modparam("usrloc", "db_insert_null", 1) modparam("usrloc", "db_ops_ruid", 1)
modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 0) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org") ```
``` version: kamailio 4.4.5 (x86_64/linux) f98162 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: f98162 compiled on 08:56:05 Jan 10 2019 with gcc 4.6.3 ``` Ah by the way only usrloc table is using mongodb, the rest of the module is using mysql, for testing only. Can you advice if i am missing something?
Regards,