There were some thoughts about it already: https://lists.kamailio.org/pipermail/sr-dev/2021-April/062255.html I think these resulted in https://github.com/kamailio/kamailio/commit/17e757c91e6e96f6711d9251979d81a7... and https://github.com/kamailio/kamailio/commit/adf8919f52841800f0cd4528c33679c7...
On Wed, Jul 14, 2021, 17:25 Aidar Kamalov aidar.kamalov@gmail.com wrote:
Hello,
I have a kamailio cluster with two nodes kamailio-1.local: 10.101.2.119 kamailio-2.local: 10.101.2.247
with dmq configs:
kamailio-1: modparam("dmq", "server_address", "sip:MY_IP4_ADDR:5060") modparam("dmq", "notification_address", "kamailio-2.local:5060")
kamailio-2: modparam("dmq", "server_address", "sip:MY_IP4_ADDR:5060") modparam("dmq", "notification_address", "kamailio-1.local:5060")
All works fine, but kamcmd dmq.list_nodes on kamailio-1.local show me: { host: 10.101.2.247 port: 5060 resolved_ip: 10.101.2.247 status: active last_notification: 0 local: 0 } { host: kamailio-1.local port: 5060 resolved_ip: 10.101.2.119 status: active last_notification: 0 local: 0 } { host: kamailio-2.local port: 5060 resolved_ip: 10.101.2.247 status: active last_notification: 0 local: 0 } { host: 10.101.2.119 port: 5060 resolved_ip: 10.101.2.119 status: active last_notification: 0 local: 1 }
and kamailio-2.local show me: { host: kamailio-2.local port: 5060 resolved_ip: 10.101.2.247 status: active last_notification: 0 local: 0 } { host: 10.101.2.119 port: 5060 resolved_ip: 10.101.2.119 status: active last_notification: 0 local: 0 } { host: kamailio-1.local port: 5060 resolved_ip: 10.101.2.119 status: active last_notification: 0 local: 0 } { host: 10.101.2.247 port: 5060 resolved_ip: 10.101.2.247 status: active last_notification: 0 local: 1 }
So there are only two hosts in the cluster, but there are 4 records in dmq.list_nodes. Also in sip trace I can see that kamailio send DMQ messages to itself too (because it ip marked as local: 0 I think). Is it ok? Is it normal behavior? What should I do to fix it? Should multi_notify and DNS name with 2 A records fix it (and why?)? -- Aydar A. Kamalov __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: