<div><div><div><div dir="auto">Hello,</div></div><div dir="auto"><br></div><div dir="auto">Is there anything preventing the messages from reaching Kamailio? If you have a pcap from one of the servers we may be able to see what’s happening.</div><div dir="auto"><br></div><div dir="auto">Also, you have the notification address set to localhost - this should instead point to one of the other nodes.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto">Charles</div><div><br><div class="gmail_quote"></div></div></div></div><div><div><div><div><div class="gmail_quote"><div dir="auto">On Fri, 22 Jun 2018 at 21:35, Aleksandar Sosic <alex.sosic@evosip.cloud> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've set up a dmq server for other kamailio nodes with this parameters:<br>
```<br>
modparam("dmq", "server_address","sip:<a href="http://10.0.0.101:5060" rel="noreferrer" target="_blank">10.0.0.101:5060</a>")<br>
modparam("dmq", "notification_address", "sip:<a href="http://127.0.0.1:5060" rel="noreferrer" target="_blank">127.0.0.1:5060</a>")<br>
modparam("dmq", "multi_notify", 1)<br>
modparam("dmq", "num_workers", 4)<br>
modparam("dmq", "ping_interval", 15)<br>
```<br>
</blockquote><div dir="auto"><br></div></div></div></div></div></div><div><div><div><div><div class="gmail_quote"><div dir="auto">Why are you setting the notification address as localhost?</div></div></div></div></div></div><div><div><div><div><div class="gmail_quote"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On the kamailio nodes the config is the following:<br>
```<br>
modparam("dmq", "server_address", "sip:10.0.0.x:5060")<br>
modparam("dmq", "notification_address", "sip:<a href="http://10.0.0.101:5060" rel="noreferrer" target="_blank">10.0.0.101:5060</a>")<br>
modparam("dmq", "multi_notify", 1)<br>
modparam("dmq", "num_workers", 4)<br>
modparam("dmq", "ping_interval", 15)<br>
```<br>
<br>
On the kamailio dmq server I've got this in the logs:<br>
```<br>
25(41) ERROR: dmq [notification_peer.c:596]:<br>
notification_resp_callback_f(): deleting server sip:<a href="http://127.0.0.1:5060" rel="noreferrer" target="_blank">127.0.0.1:5060</a><br>
because of failed request<br>
25(41) ERROR: dmq [notification_peer.c:599]:<br>
notification_resp_callback_f(): not deleting notification_peer<br>
```<br>
<br>
On the kamailio nodes the same thing with the ip of the dmq server:<br>
```<br>
25(112) ERROR: dmq [notification_peer.c:596]:<br>
notification_resp_callback_f(): deleting server sip:<a href="http://10.0.0.101:5060" rel="noreferrer" target="_blank">10.0.0.101:5060</a><br>
because of failed request<br>
25(112) ERROR: dmq [notification_peer.c:599]:<br>
notification_resp_callback_f(): not deleting notification_peer<br>
```<br>
<br>
The request route on the dmq server is simple as this:<br>
```<br>
request_route {<br>
if(is_method("KDMQ")){<br>
dmq_handle_message();<br>
}<br>
}#end request_route<br>
```<br>
<br>
I've tried with some xlog-s inside the if(is_method("KDMQ")) but they<br>
don't show up so the dmq_handle_message() is not even executed.<br>
<br>
I've also tried to bind the dmq server to a different port but with no<br>
success on making it work.<br>
<br>
The dmq.list_nodes shows only the dmq server IP and the current node<br>
IP, the IPs of other nodes are not shown:<br>
```<br>
root@proxy-94b6ccf46-t8fx2:/# kamcmd dmq.list_nodes<br>
{<br>
host: 10.0.0.101<br>
port: 5060<br>
resolved_ip: 10.0.0.101<br>
status: active<br>
last_notification: 0<br>
local: 0<br>
}<br>
{<br>
host: 10.0.0.45<br>
port: 5060<br>
resolved_ip: 10.0.0.45<br>
status: active<br>
last_notification: 0<br>
local: 1<br>
}<br>
```<br>
And it's the same on all other kamailio nodes: dmq server ip and local ip.<br>
<br>
The kamailio version on all the nodes is:<br>
5.2.0~dev6+0~20180616010152.1138+xenial<br>
<br>
Thanks,<br>
--<br>
Aleksandar Sosic<br>
mail: alex.sosic@evosip.cloud<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>
</div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b><font size="2">Charles Chance</font></b><br><font size="2">Managing Director</font></font><br><div><font face="arial, helvetica, sans-serif"><font size="2"><br></font></font></div><div><font face="arial, helvetica, sans-serif"><font size="2">t. 0330 120 1200    m. 07932 063 891</font></font></div></div></div></div></div>

<br>
<div><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font><span style="font-size:10pt;font-family:Helvetica,Arial,sans-serif"> </span><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Registered
                office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.</font></div>