<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I can see that it works properly on kamailio v5.0.7, I've no
instances of v5.1.x. It may just be related to master branch,
however, in this instance I'm trying to use the presence dmq
features that are in master at the moment. It might be that I
pulled an in-flight bug on master, not sure.</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 31/07/18 18:08, Joel Serrano wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMtXxQ=spxdgOFaUP+yrQRbVzrk4h64rLvLXCOLoi7VzyUsz6g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>Hi Asgaroth, </div>
<div><br>
</div>
<div>I'm using dmq and I haven't seen a msg get passed this:</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace"> # Handles DMQ
messages</font></div>
<div><font face="monospace, monospace"> if
(is_method("KDMQ")) {</font></div>
<div><font face="monospace, monospace">
dmq_handle_message();</font></div>
<div><font face="monospace, monospace"> }</font></div>
</div>
<div><br>
</div>
<div>That said, just to make sure it's not some work-in-progress
happening on master branch, give it a try on latest stable
release (v5.1.4) to see if you find the same behavior. I
haven't tried on master but on v5.1.4 I'm not seeing that
behavior.</div>
<div><br>
</div>
<div>Are you manually replicating stuff using dmq functions or
are you taking advantage of auto-replication using modparam
enable_dmq=1 on certain modules?</div>
<div><br>
</div>
<div>Joel.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jul 31, 2018 at 9:01 AM,
Asgaroth <span dir="ltr"><<a
href="mailto:00asgaroth00@gmail.com" target="_blank"
moz-do-not-send="true">00asgaroth00@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I've come across and oddity whereby my is_method("KDMQ")
checks are not matching.<br>
<br>
I'm testing with kamailio master:<br>
<br>
version: kamailio 5.2.0-dev6 (x86_64/linux) a16272<br>
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt,
select.<br>
id: a16272<br>
compiled on 15:27:21 Jul 31 2018 with gcc 7.3.1<br>
<br>
Sample routing logic:<br>
<br>
request_route {<br>
route("InitialMessageChecks");<br>
exit;<br>
}<br>
<br>
<br>
route[InitialMessageChecks] {<br>
xlog("L_INFO", "Received message type $rm from $si:$sp
on $Ri:$Rp");<br>
<br>
if ( is_method("KDMQ") ) { xlog("L_INFO", "KDMQ check
passed."); }<br>
if ( is_method("OPTIONS") ) { xlog("L_INFO", "OPTIONS
check passed."); }<br>
if ( is_method("SUBSCRIBE") ) { xlog("L_INFO",
"SUBSCRIBE check passed."); }<br>
<br>
}<br>
<br>
In the logs I am only receiving the 1st log line in the
initial message checks route for message types of KDMQ, eg:<br>
<br>
INFO: <script>: Received message KDMQ from <a
href="http://1.1.1.1:5060" rel="noreferrer"
target="_blank" moz-do-not-send="true">1.1.1.1:5060</a> on
<a href="http://1.1.1.2:5060" rel="noreferrer"
target="_blank" moz-do-not-send="true">1.1.1.2:5060</a><br>
INFO: <script>: Received message KDMQ from <a
href="http://1.1.1.3:5060" rel="noreferrer"
target="_blank" moz-do-not-send="true">1.1.1.3:5060</a> on
<a href="http://1.1.1.2:5060" rel="noreferrer"
target="_blank" moz-do-not-send="true">1.1.1.2:5060</a><br>
<br>
I never seem to hit the is_method check log line when the
method type is KDMQ.<br>
<br>
I do see the options/subscribe logs though:<br>
<br>
INFO: <script>: OPTIONS check passed.<br>
INFO: <script>: SUBSCRIBE check passed.<br>
<br>
nothing for KDMQ.<br>
<br>
Reason for asking is: this check never matches and breaks
the dmq bus:<br>
<br>
if ( is_method("KDMQ") ) {<br>
if ( dmq_is_from_node() ) {<br>
dmq_handle_message();<br>
exit;<br>
} else {<br>
exit;<br>
}<br>
}<br>
<br>
Any thoughts, or am I going crazy :)<br>
<br>
Thanks<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>