<div dir="ltr"><div dir="ltr">And using following: </div><div dir="ltr"><br></div><div dir="ltr">Node#1 </div><div dir="ltr"># opensips -V<br><br>version: opensips 3.3.2 (x86_64/linux)<br>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll, sigio_rt, select.<br>main.c compiled on with gcc 11</div><div dir="ltr"><br></div><div>Node#2</div><div># opensips -V<br>version: opensips 3.3.1 (x86_64/linux)<br>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll, sigio_rt, select.<br>git revision: bf7c0eb89<br>main.c compiled on 14:53:50 Aug 30 2022 with gcc 10</div><div><br></div><div><br></div><div>Both Nodes are using OpenSIPS Control Panel 9.3.2.</div><div><br></div><div><br></div><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 18, 2023 at 12:15 PM Nitesh Divecha <<a href="mailto:aviator.nitesh.d@gmail.com">aviator.nitesh.d@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All, <div><br>I got two nodes in cluster formation and they are in sync. Running CLI opensips-cli -x mi ul_dump | grep "AOR\":\|Contact\":" on both nodes I can see ALL the registered endpoints . For testing purposes I have two endpoints registered on each node so a total four endpoints are visible.<br><br>Node #1 - IP: 66.x.x.1, registered endpoint 2001 and 2002<br>Node #2 - IP: 3.x.x.9, registered endpoint 5467901 and 5467902<br><br>Endpoints in Node#1 can call each other (2001 <--> 2002) and endpoints in Node#2 can call each other (5467901 <--> 5467902)<br><br>root@archer:/etc/opensips# opensips-cli -x mi ul_dump | grep "AOR\":\|Contact\":"<br> "AOR": 5467901@3.x.x.9,<br> "Contact":sip:5467901@143.x.x.7:29100,<br> "AOR": 5467902@3.x.x.9,<br> "Contact":sip:5467902@143.x.x.7:5062,<br> "AOR": 2002@66.x.x.1,<br> "Contact":sip:2002@143.x.x.6:12339;ob,<br> "AOR": 2001@66.x.x.1,<br> "Contact":sip:2001@143.x.x.6:5060;ob,<br><br>But none of the nodes can call each other... Meaning Node#1-2001 or 2 can not call Node#2-5467901 or 2 and vice versa... On log it shows SIP 404, Not Found... and looking further in detail it shows it is only looking for the endpoint in the same Node, meaning when 2001 calls 5467901 it is looking for 5467901@66.x.x.1 on Node#1 instead of 5467901@3.x.x.9 on Node#2. <br><br><br>#### USeR LOCation module<br>loadmodule "usrloc.so"<br>modparam("usrloc", "nat_bflag", "NATED_CALLEE") <br>modparam("usrloc", "location_cluster", 2) <br>modparam("usrloc", "working_mode_preset", "full-sharing-cluster")<br><br>route[to_user] {<br> # do lookup with method filtering<br> if (!lookup("location","m")) {<br> if (!db_does_uri_exist("$ru","subscriber")) {<br> send_reply(404,"Not Found");<br> xlog("ERROR: rU is: ($rU) and ru is: $ru --> Not Found\n");<br> exit;<br> }<br> if(isflagset('HUNTGROUP')) {<br> route(huntgroup);<br> }<br> t_reply(480, "Temporarily Unavailable");<br> exit;<br> }<br> $acc_extra(TYPE) = "USER";<br> route(relay);<br>}<br><br><br>Any help will be highly appreciated...<br></div><div><br></div><div>Cheers,</div><div>Nitesh</div><div><br></div></div>
</blockquote></div></div>