<div dir="ltr">Hello Team,<br><br>We are using Kamailio 5.5.2 (DMQ + usrloc) modules. We want to replicate all users from server-2(Registration) to server-1(Proxy) .<br><br>Replication worked perfectly fine but we noticed that after restarting the receiver (Proxy node) data has not been replicated automatically. If we re-register the users it is replicating to the receiver side but the old data is not replicated.<br><br>Can you please guide us where we made the mistake?<br><br>Please find the configuration<br><br><br>SERVER-1 (Proxy)<br>========================<br><br>#--- dmq db param ----<br>modparam("dmq","server_address","sip:<a href="http://10.128.77.187:5060">10.128.77.187:5060</a>")<br>modparam("dmq", "notification_address", "sip:<a href="http://10.128.77.188:5060">10.128.77.188:5060</a>")<br>modparam("dmq", "num_workers", 6)<br>modparam("dmq", "multi_notify", 1)<br>#modparam("dmq", "worker_usleep", 0)<br>modparam("dmq", "ping_interval", 60)<br><br>#--- dmq usrloc db param ----<br>modparam("dmq_usrloc", "enable", 1)<br>modparam("dmq_usrloc", "replicate_socket_info", 1)<br>modparam("dmq_usrloc", "sync", 1)<br>modparam("dmq_usrloc", "batch_size", 2000)<br>modparam("dmq_usrloc", "batch_usleep", 1000)<br><br>route[KMDQ_SAVE_LOCATION] {<br><br>        if(is_method("KDMQ")) {<br>                dmq_handle_message();<br>        }<br>        if (dmq_is_from_node()) {<br>                if(!save("location"))<br>                        xlogl("L_ERR", "Error saving contact\n");<br>        }<br>}<br><br>SERVER-2 (Registration)<br>======================<br><br>#--- dmq db param ----<br>modparam("dmq","server_address","sip:<a href="http://10.128.77.188:5060">10.128.77.188:5060</a>")<br>modparam("dmq", "notification_address", "sip:<a href="http://10.128.77.187:5060">10.128.77.187:5060</a>")<br>modparam("dmq", "num_workers", 6)<br>modparam("dmq", "multi_notify", 1)<br>modparam("dmq", "ping_interval", 60)<br><br>#--- dmq usrloc db param ----<br>modparam("dmq_usrloc", "enable", 1)<br>modparam("dmq_usrloc", "replicate_socket_info", 1)<br>modparam("dmq_usrloc", "sync", 1)<br>modparam("dmq_usrloc", "batch_size", 2000)<br>modparam("dmq_usrloc", "batch_usleep", 1000)<br><br>route[SAVE_LOCATION]{<br>        save("location");<br>}<br><br><br>version: kamailio 5.5.2 (x86_64/linux) e2b6cc<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_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED<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: e2b6cc <br><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Hardik Patel<div><br></div></div></div></div></div></div>