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