<div dir="ltr">Hi,<div>I've got three OpenSIPS nodes in a cluster and it was working fine in 'full-sharing-cluster' mode. Then I decided to add MongoDB as a cachedb to store all the registrations, so I enabled the mongodb module and added 'cachedb_url' parameter into the usrloc module config. After doing that I noticed that I'm not receiving events for usrloc on all nodes as it was before. For example, registration comes to OpenSIPS node 3, it successfully processes the registration request and stores it into MongoDB. But the other 2 nodes do not see that event! </div><div><br></div><div>Even if I subscribe for events using following code:</div><div><br></div><div>t_newtran();<br>t_wait_for_new_branches();<br><br></div><div>$avp(filter) = "aor="+$tU;<br></div><div>notify_on_event("E_UL_CONTACT_UPDATE",$avp(filter),"fork_call", 20);<br>notify_on_event("E_UL_CONTACT_INSERT",$avp(filter),"fork_call", 20);<br><br></div><div>I'm not receiving the event notifications anywhere but on the node where the SIP REGISTER packet came. This doesn't allow to use 't_inject_branches("event")' command.</div><div><br></div><div>I have following routes defined for events:<br><br>event_route[E_UL_CONTACT_INSERT]<br>event_route[E_UL_CONTACT_UPDATE]<br>event_route[E_UL_CONTACT_DELETE]<br></div><div>route[fork_call]<br></div><div><br></div><div>None of them are getting called on other nodes of the cluster except for the node that accepted the REGISTER packet.</div><div><br></div><div>Here's my cluster and usrloc configuration:</div><div><br></div><div># USRLoc module<br>loadmodule "usrloc.so"<br>modparam("usrloc", "nat_bflag", "NAT")<br>modparam("usrloc", "working_mode_preset", "full-sharing-cachedb-cluster")<br>modparam("usrloc", "use_domain", 0)<br>modparam("usrloc", "location_cluster", 1)<br>modparam("usrloc", "cachedb_url", "mongodb://10.x.x.1,10.x.x.2,10.x.x.3:27017/opensipsDB.userlocation")<br><br># Clusterer Module<br>loadmodule "clusterer.so"<br>modparam("clusterer", "db_mode", 0)<br>modparam("clusterer", "my_node_info", "cluster_id=1,node_id=1,url=bin:10.y.y.1:3857,flags=seed")<br>modparam("clusterer", "neighbor_node_info", "cluster_id=1,node_id=2,url=bin:10.y.y.2:3857,flags=seed")<br>modparam("clusterer", "neighbor_node_info", "cluster_id=1,node_id=3,url=bin:10.y.y.3:3857,flags=seed")<br>modparam("clusterer", "seed_fallback_interval", 5)<br>modparam("clusterer", "ping_interval", 1)<br>modparam("clusterer", "ping_timeout", 500)<br>modparam("clusterer", "node_timeout", 10)<br>modparam("clusterer", "sharing_tag", "vip1/1=active")<br><br># Event Route module<br>loadmodule "event_route.so"<br><br># Event Routing module<br>loadmodule "event_routing.so"<br><br># Event Stream<br>loadmodule "event_stream.so"<br><br></div><div># Registrar module<br>loadmodule "registrar.so"<br>modparam("registrar", "received_avp", "$avp(received)")<br>modparam("registrar", "min_expires", 60)<br>modparam("registrar", "default_expires", 120)<br>modparam("registrar", "max_expires", 3600)<br>modparam("registrar", "max_contacts", 1)<br>modparam("registrar", "attr_avp", "$avp(event_attr)")<br><br>Am I doing something wrong? How to enable event notifications on all nodes in a full sharing cachedb cluster? Thanks.</div><div><br></div><div>Best regards,</div><div>Yury.</div></div>