[OpenSIPS-Users] dialog-dlg-repl - not synced
Alexey Kazantsev
kurgan-rus at inbox.ru
Mon Aug 23 11:02:43 EST 2021
Hi list,
can not find the reason why MI ‘clusterer_list_cap’ command
shows that the dialog replication is not active.
It’s necessary to mention that profiles synced successfully,
when I configured it with the ‘profile_replication_cluster’ parameter (later I
removed this due to documentation [1] advice that it’s not necessary if dialog
replication is configured).
[1] https://opensips.org/docs/modules/3.1.x/dialog.html#dialog-clustering
Both instances use 3.1.5 version.
######## active node ########
...
modparam("clusterer", "db_mode", 0)
modparam("clusterer", "seed_fallback_interval", 10) # Only relevant for seed node
modparam("clusterer", "my_node_info", "cluster_id=1,node_id=1,url=bin:10.10.10.11:5555,seed")
modparam("clusterer", "neighbor_node_info", "cluster_id=1,node_id=2,url=bin:10.10.10.10:5555")
modparam("clusterer", "sharing_tag", "node1/1=active")
...
modparam("dialog", "default_timeout", 3600)
modparam("dialog", "db_mode", 0)
modparam("dialog", "profiles_no_value", "inbound/s; outbound/s;")
modparam("dialog", "dialog_replication_cluster", 1)
…
...
if (is_method("INVITE")) {
create_dialog("B");
set_dlg_sharing_tag("node1");
######## backup node ########
…
modparam("clusterer", "db_mode", 0)
modparam("clusterer", "seed_fallback_interval", 10) # Only relevant for seed node
modparam("clusterer", "my_node_info", "cluster_id=1,node_id=2,url=bin:10.10.10.10:5555")
modparam("clusterer", "neighbor_node_info", "cluster_id=1,node_id=1,url=bin:10.10.10.11:5555")
modparam("clusterer", "sharing_tag", "node2/1=backup")
...
modparam("dialog", "default_timeout", 3600)
modparam("dialog", "db_mode", 0)
modparam("dialog", "profiles_no_value", "inbound/s; outbound/s;")
modparam("dialog", "dialog_replication_cluster", 1)
…
…
if (is_method("INVITE")) {
create_dialog("B");
set_dlg_sharing_tag("node2");
With such configurations, both instances show ‘not synced’:
voip ~ # opensips-cli -x mi clusterer_list_cap
{
"Clusters": [
{
"cluster_id": 1,
"Capabilities": [
{
"name": "dialog-dlg-repl",
"state": "not synced"
}
]
}
]
}
Have I missed something in the configuration?
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210823/692fea9c/attachment.html>
More information about the Users
mailing list