<div dir="ltr">Hi,<div><br></div><div>Glad you solved it - omitting the call to dmq_handle_message() appears to be a common mistake. I may try to make it clearer in the docs that things will not work as expected if this is not included.</div><div><br></div><div>As for the dialog/dmq integration, I've not had a chance to test it myself. I will try to take a look later this week!</div><div><br></div><div>Cheers,</div><div><br></div><div>Charles</div><div class="gmail_extra"><br><div class="gmail_quote">On 5 September 2017 at 16:09, Aleksandar Sosic <span dir="ltr"><<a href="mailto:alex.sosic@timenet.it" target="_blank">alex.sosic@timenet.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Charles,<br>
<br>
I did solve the problem with<br>
<br>
if(is_method("KDMQ")) {<br>
    dmq_handle_message();<br>
}<br>
<br>
in the main route and the dmq_usrloc is working now.<br>
<br>
I enabled dmq for the dialog also:<br>
modparam("dialog", "enable_dmq", 1)<br>
<br>
and the dmq is working between kamailio instances but the call does<br>
not end and the kamailio instance where the call was made crashes.<br>
<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    | 30(38) CRITICAL: <core> [core/pass_fd.c:277]:<br>
receive_fd(): EOF on 24<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    |  0(8) ALERT: <core> [main.c:742]: handle_sigs():<br>
child process 18 exited by a signal 11<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    |  0(8) ALERT: <core> [main.c:745]: handle_sigs():<br>
core was generated<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    |  0(8) INFO: <core> [main.c:768]: handle_sigs():<br>
terminating due to SIGCHLD<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    |  1(9) INFO: <core> [main.c:823]: sig_usr(): signal 15 received<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    | 20(28) INFO: <core> [main.c:823]: sig_usr(): signal<br>
15 received<br>
<a href="http://sr01.evox.it" rel="noreferrer" target="_blank">sr01.evox.it</a>    | 11(19) INFO: <core> [main.c:823]: sig_usr(): signal<br>
15 received<br>
<br>
I have also done a gdb on the core dump:<br>
root@sr01:/tmp/sr01# gdb /usr/sbin/kamailio ./core<br>
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1<br>
Copyright (C) 2016 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" target="_blank">http://gnu.org/licenses/gpl.<wbr>html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-linux-gnu".<br>
Type "show configuration" for configuration details.<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>gdb/bugs/</a>>.<br>
Find the GDB manual and other documentation resources online at:<br>
<<a href="http://www.gnu.org/software/gdb/documentation/" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>gdb/documentation/</a>>.<br>
For help, type "help".<br>
Type "apropos word" to search for commands related to "word"...<br>
Reading symbols from /usr/sbin/kamailio...(no debugging symbols found)...done.<br>
[New LWP 8]<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib/x86_64-linux-gnu/<wbr>libthread_db.so.1".<br>
Core was generated by `/usr/sbin/kamailio -f<br>
/etc/kamailio/kamailio.cfg -DD -E -e -w /tmp/sr01'.<br>
Program terminated with signal SIGABRT, Aborted.<br>
#0  0x00007f9403a3f428 in __GI_raise (sig=sig@entry=6) at<br>
../sysdeps/unix/sysv/linux/<wbr>raise.c:54<br>
54      ../sysdeps/unix/sysv/linux/<wbr>raise.c: No such file or directory.<br>
<br>
But cannot manage to solve the issue now.<br>
<br>
NB. I have this order of modules loades:<br>
<span class="">...<br>
loadmodule "dmq.so"<br>
loadmodule "dmq_usrloc.so"<br>
<br>
</span>loadmodule "htable.so"<br>
<br>
loadmodule "dialog.so"<br>
...<br>
<br>
# ----- dialog params -----<br>
# modparam("dialog", "db_url", DBURL)<br>
modparam("dialog", "default_timeout", 10800)<br>
modparam("dialog", "profiles_with_value", "calllimit")<br>
modparam("dialog", "enable_stats", 1)<br>
modparam("dialog", "db_mode", 0)<br>
modparam("dialog", "dlg_flag", FLT_DLG)<br>
modparam("dialog", "enable_dmq", 1)<br>
...<br>
<br>
<br>
Do you have any hints?<br>
<br>
Thanks in advance,<br>
<span class="">--<br>
Aleksandar Sosic<br>
mail: <a href="mailto:alex.sosic@timenet.it">alex.sosic@timenet.it</a><br>
skype: alex.sosic<br>
cell: +385 91 2505 146<br>
<br>
<br>
</span>On Mon, Sep 4, 2017 at 10:47 AM, Charles Chance<br>
<<a href="mailto:charles.chance@sipcentric.com">charles.chance@sipcentric.com</a><wbr>> wrote:<br>
> Hello,<br>
><br>
<span class="im HOEnZb">> Sorry for slow reply.<br>
><br>
> Can you set debug=4 and send the output from startup through to register,<br>
> for both nodes?<br>
><br>
> Also the full config would be useful, or at least the default request route<br>
> up to your call to dmq_handle_message().<br>
><br>
> Cheers,<br>
><br>
> Charles<br>
<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></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>