<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sammy,<br>
<br>
OF course the replication is loop protected, otherwise it will
simply not work :). Could you share all your modparams for the
dialog module ?<br>
<br>
Best regards,</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2020Amsterdam/">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>
</pre>
<div class="moz-cite-prefix">On 12/30/19 9:04 PM, SamyGo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJUJwtidA6pomPfUg-J4WPGG3Z5M8jw1OF-2diAmrL3Z-k5kLQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>Im trying to wrap my head around a problem with OpenSIPS
3.0 dialog profile replication. I've a cluster of OpenSIPS
instances sharing dialog profiles with each other over
clusterer/binary_proto layer.</div>
<div><br>
</div>
<div>As soon as I initiate a call on first instance they all
start exchanging the dialog profiles in a never ending loop !
call needs to drop in order for it to clear up.</div>
<div><br>
</div>
<div>What is this behavior of dialog profile replication? Is it
not loop protected ! i.e </div>
<div>A (send updated profile value) ---> B,C,D</div>
<div>B <-----recv updated profile value</div>
<div>C <-----recv updated profile value <br>
</div>
<div>D <-----recv updated profile value <br>
</div>
<div>B (send updated profile value) ---> A,C,D
</div>
<div>C (send updated profile value) ---> A,B,D <br>
</div>
<div>D (send updated profile value) ---> A,B,C</div>
<div>and Loop over again!<br>
</div>
<div><br>
</div>
<div>Can anyone elaborate on this flow ! ?<br>
</div>
<div><br>
</div>
<div>Thats what I've observed from my network captures and logs.
Here are the configs for sharing profiles.</div>
<div><br>
</div>
<div><font face="monospace">loadmodule "dialog.so"<br>
modparam("dialog","dlg_match_mode",1)<br>
modparam("dialog","db_mode",2)<br>
modparam("dialog", "profiles_with_value",
"gatewayCalls;dids;userOutbound/b;userInbound/b;userTotalCalls/b")<br>
modparam("dialog", "profile_replication_cluster", 1)<br>
modparam("dialog", "replicate_profiles_check", 10)<br>
modparam("dialog", "replicate_profiles_timer", 3000)</font><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>OpenSIPS version:</div>
<div>root@ip-172-31-26-36:~# /usr/local/sbin/opensips -V<br>
<font face="monospace">version: opensips 3.0.1 (x86_64/linux)<br>
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll, sigio_rt, select.<br>
git revision: ef33057<br>
main.c compiled on 18:51:57 Dec 6 2019 with gcc 7</font><br>
</div>
<div><font face="monospace"><br>
</font></div>
<div><br>
</div>
<div>Thanks,</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>