[OpenSIPS-Users] - Clustering
Nitesh Divecha
aviator.nitesh.d at gmail.com
Wed Jan 18 17:27:01 UTC 2023
And using following:
Node#1
# opensips -V
version: opensips 3.3.2 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_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, sigio_rt, select.
main.c compiled on with gcc 11
Node#2
# opensips -V
version: opensips 3.3.1 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_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, sigio_rt, select.
git revision: bf7c0eb89
main.c compiled on 14:53:50 Aug 30 2022 with gcc 10
Both Nodes are using OpenSIPS Control Panel 9.3.2.
On Wed, Jan 18, 2023 at 12:15 PM Nitesh Divecha <aviator.nitesh.d at gmail.com>
wrote:
> Hello All,
>
> 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.
>
> Node #1 - IP: 66.x.x.1, registered endpoint 2001 and 2002
> Node #2 - IP: 3.x.x.9, registered endpoint 5467901 and 5467902
>
> Endpoints in Node#1 can call each other (2001 <--> 2002) and endpoints in
> Node#2 can call each other (5467901 <--> 5467902)
>
> root at archer:/etc/opensips# opensips-cli -x mi ul_dump | grep
> "AOR\":\|Contact\":"
> "AOR": 5467901 at 3.x.x.9,
> "Contact":sip:5467901 at 143.x.x.7:29100,
> "AOR": 5467902 at 3.x.x.9,
> "Contact":sip:5467902 at 143.x.x.7:5062,
> "AOR": 2002 at 66.x.x.1,
> "Contact":sip:2002 at 143.x.x.6:12339;ob,
> "AOR": 2001 at 66.x.x.1,
> "Contact":sip:2001 at 143.x.x.6:5060;ob,
>
> 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 at 66.x.x.1 on Node#1 instead of 5467901 at 3.x.x.9 on Node#2.
>
>
> #### USeR LOCation module
> loadmodule "usrloc.so"
> modparam("usrloc", "nat_bflag", "NATED_CALLEE")
> modparam("usrloc", "location_cluster", 2)
> modparam("usrloc", "working_mode_preset", "full-sharing-cluster")
>
> route[to_user] {
> # do lookup with method filtering
> if (!lookup("location","m")) {
> if (!db_does_uri_exist("$ru","subscriber")) {
> send_reply(404,"Not Found");
> xlog("ERROR: rU is: ($rU) and ru is: $ru --> Not
> Found\n");
> exit;
> }
> if(isflagset('HUNTGROUP')) {
> route(huntgroup);
> }
> t_reply(480, "Temporarily Unavailable");
> exit;
> }
> $acc_extra(TYPE) = "USER";
> route(relay);
> }
>
>
> Any help will be highly appreciated...
>
> Cheers,
> Nitesh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230118/bb3d107a/attachment-0001.html>
More information about the Users
mailing list