<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, 7 Sep 2018 at 14:40, Daniel W. Graham <<a href="mailto:dan@cmsinter.net">dan@cmsinter.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_2745313639340288453WordSection1">
<p class="MsoNormal">My intent is to run in memory only except on one node which writes to database for reporting use.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If this is not possible I will use an alternate for the database host.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div> </div><div>It is possible, although you should use mode 1 or 2. Mode 3 is DB only and 4 only reads on startup (nothing written).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_2745313639340288453WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">Just to note, same issue is present for dialog module, in this case dialogs sync fine but nothing is written to the database.<u></u><u></u></p>
<p class="MsoNormal">….<u></u><u></u></p>
<p class="MsoNormal">modparam("dialog", "enable_dmq", 1)<u></u><u></u></p>
<p class="MsoNormal">modparam("dialog", "db_mode", 1) ----(Set to 0 on sender)<u></u><u></u></p>
<p class="MsoNormal">….</p></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_2745313639340288453WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Contact replication is still not working though, even with db_mode=4 on both nodes, still getting:<u></u><u></u></p>
<p class="MsoNormal">ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"># kamctl ul show<u></u><u></u></p>
<p class="MsoNormal">{<u></u><u></u></p>
<p class="MsoNormal">  "jsonrpc":  "2.0",<u></u><u></u></p>
<p class="MsoNormal">  "result": {<u></u><u></u></p>
<p class="MsoNormal">    "Domains":  []<u></u><u></u></p>
<p class="MsoNormal">  },<u></u><u></u></p>
<p class="MsoNormal">  "id": 1366<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>I suspect here is your issue - although it's difficult to know based on the information provided why there are no domains in the list.</div><div><br></div><div>Was this command issued on the sender or receiver? If the receiver, do you have a call to save() in your config? I believe this is parsed at startup to determine which domains to create in memory - so realistically, the configs on all nodes should be identical (or at least contain the same REGISTER handling logic).</div><div><br></div><div>Otherwise, did you have this working without DMQ replication (i.e. replicating via DB only)?</div><div><br></div><div>Cheers,</div><div><br></div><div>Charles</div><div><br></div><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>