<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Lars,</p>
<p><br>
</p>
<p>actually you can use DMQ to get rid of the database completely. Or you can just setup a dedicated database for each proxy, e.g. in a write-back mode. Using a shared DB as well would be kind of defeating the purpose of DMQ. ;-)</p>
<p><br>
</p>
<p>If you want to just share the event, have a look to the t_replicate call, this is another easy way to just replicate a SIP message to a second destination.</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Henning<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 27.06.19 um 14:10 schrieb Lars Olsson:<br>
</div>
<blockquote type="cite" cite="mid:AM6PR0102MB3589AAF3C303BB54684F4BE2E0FD0@AM6PR0102MB3589.eurprd01.prod.exchangelabs.com">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
Hi Henning,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for you reply.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
For this particular issue, I am more interested in sharing the event that we have received a register request rather then syncing the registrar database.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
On a replicated REGISTER the other nodes does not perform any registrar operation.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
The registrar nodes are currently using usrloc with db-only mode and using a shared DB cluster, to sync data.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
However, I see the point of using DMQ_USRLOC for syncing between nodes instead of sharing a database.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
In such setup, do you typically use separate DBs on each node? or can you use a shared db cluster as well?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
Will it work good in a primary - primary setup where multiple nodes handles incoming requests?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
Best Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
Lars<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Henning Westerholt
<a class="moz-txt-link-rfc2396E" href="mailto:hw@skalatan.de"><hw@skalatan.de></a><br>
<b>Sent:</b> Wednesday, June 26, 2019 7:39 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List; Lars Olsson<br>
<b>Subject:</b> Re: [SR-Users] DMQ: dmq_t_replicate()</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p>Hello Lars,</p>
<p><br>
</p>
<p>maybe I did not understood your scenario correctly.</p>
<p><br>
</p>
<p>But if your use case is just to replicate all registrations to another Kamailio instance, you just add the dmq_usrloc module and enable the synchronization. It should work right out of the box.</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Henning</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">Am 26.06.19 um 10:39 schrieb Lars Olsson:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
I am trying to replicate a REGISTER request between several nodes.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
When I am using dmq_t_replicate(), it ends the execution of the script. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
It this correct or I have missed anything?  </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
I can not find anything in the documentation of the DMQ module the says that it will end the script execution.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
Is it recommended to use the DMQ module or should I simply forward the request instead as described in <a href="https://medium.com/@tumalevich/kamailio-registration-replication-without-dmq-65e225f9a8a7" id="LPNoLP420046" moz-do-not-send="true">https://medium.com/@tumalevich/kamailio-registration-replication-without-dmq-65e225f9a8a7</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
Best Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
Lars</div>
<br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="x_moz-signature" cols="72">-- 
Henning Westerholt - <a class="x_moz-txt-link-freetext" href="https://skalatan.de/blog/" moz-do-not-send="true">https://skalatan.de/blog/</a>
Kamailio services - <a class="x_moz-txt-link-freetext" href="https://skalatan.de/services" moz-do-not-send="true">https://skalatan.de/services</a></pre>
</div>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>