<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Olli,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">if I have interpreted the question and the situation in which you are <span style="font-family:Arial,Helvetica,sans-serif">correctly</span>, the way to persist a dialog in DB is to use the db_mode param <a href="https://kamailio.org/docs/modules/5.2.x/modules/dialog.html#dialog.p.db_mode" style="font-family:Arial,Helvetica,sans-serif">https://kamailio.org/docs/modules/5.2.x/modules/dialog.html#dialog.p.db_mode</a></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">you have 4 possibilities to persist that data in DB</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><ul class="gmail-itemizedlist" type="disc" style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:15px"><li class="gmail-listitem"><p style="text-align:justify"><span class="emphasis"><em>0 - NO_DB</em></span> - the memory content is not flushed into DB;</p></li><li class="gmail-listitem"><p style="text-align:justify"><span class="emphasis"><em>1 - REALTIME</em></span> - any dialog information changes will be reflected into the database immediately.</p></li><li class="gmail-listitem"><p style="text-align:justify"><span class="emphasis"><em>2 - DELAYED</em></span> - the dialog information changes will be flushed into DB periodically, based on a timer routine.</p></li><li class="gmail-listitem"><p style="text-align:justify"><span class="emphasis"><em>3 - SHUTDOWN</em></span> - the dialog information will be flushed into DB only at shutdown - no runtime updates.<br></p></li></ul></div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span style="font-family:"courier new",courier"><span><span class="gmail_default" style="font-family:"trebuchet ms",sans-serif"></span></span></span>Cheers<span class="gmail_default" style="font-family:"trebuchet ms",sans-serif">,</span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Giovanni</span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span style="font-family:"courier new",courier"><span><br></span></span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span style="font-family:"courier new",courier"><span>--</span></span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span style="font-family:"courier new",courier"><span>Giovanni</span> <span>Tommasini</span> | evosip</span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><span style="font-family:"courier new",courier">web: <a href="https://evosip.cloud" target="_blank">https://evosip.cloud</a></span></pre><pre style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;padding:0px;line-height:normal;white-space:pre-wrap"><img src="https://pbs.twimg.com/profile_images/994977366991687680/3zZpsQqs_400x400.jpg" width="200" height="200"><br></pre></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 4 ott 2019 alle ore 08:31 Olli Attila <<a href="mailto:attiolli@gmail.com" target="_blank">attiolli@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello Henning,<div dir="auto"><br></div><div dir="auto">I tried the dialog profile sharing with dmq&dialog modules and now the syncing works between the two kam nodes. Thank you!</div><div dir="auto"><br></div><div dir="auto">Is there a way to keep the dialog profiles persistent (load from db if kam restarts)? I was thinking a scenario where kam1 has already the call limit maxed out and kam2 suddenly reboots and after reboot, kam2 should be aware of dialogs on kam1 to be able to limit calls again correctly. </div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Olli </div></div>
_______________________________________________<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>