Hi, Alex!
I have pushed a set of commits [1], [2] on master branch which fix this
issue. Please let me know if you need any more help including them in
your test build.
Best regards,
[1]: https://github.com/OpenSIPS/opensips/commit/d8fe587cef17421
[2]: https://github.com/OpenSIPS/opensips/commit/78902eb60698ac0
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 13.06.2018 16:56, Liviu Chircu wrote:
Hi Alexei,
Indeed, it seems the mid-registrar data ("kv_store" column) only gets
sync'ed to DB starting with the 2nd REGISTER, despite the
"write-through" mode. I'll take a closer look and will update you on
the progress in this thread. Thank you for the report!
Best regards,
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 12.06.2018 10:47, vasilevalex wrote:
I have issue with very simple setup.
Two OpenSIPS servers (first is Active, second starts with keepalived
only on
Active server failure, so not a cluster at all) connected to MariaDB
with
same configs. Asterisk farm is registrar.
# USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "working_mode_preset",
"single-instance-sql-write-through")
modparam("usrloc", "db_url", "DB_URL")
#### Mid Registrar module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 2) /* 0 = mirror / 1 = ct / 2 = AoR */
modparam("mid_registrar", "outgoing_expires", 1800)
modparam("mid_registrar", "received_avp", "$avp(received_uri)")
modparam("mid_registrar", "tcp_persistent_flag",
"TCP_PERSIST_REGISTRATIONS")
This setup works somehow. Failover server starts with all locations
consistent and continues working. But when there are several switching
between Active/Failover in relatively short time, like 5-10 minutes then
most of the phones can't update their registrations because of the
errors:
ERROR:mid_registrar:process_contacts_by_aor: 'last_reg_ts' key not
found!
Only cleaning user location helps, like "opensipsctl ul rm <AoR>"
After that
phone can register again.
--
Sent from:
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users