<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Sammy,</p>
    <p>I have pushed the fix for the crash, please check the latest
      commits.</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 1/7/20 10:40 PM, SamyGo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJUJwtiPLoteur79e3XeKX8t-TnxZ6F5r3kWm0U7ubLJSLfdBg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Vlad,
        <div>Update: it wasn't the issue with dialog module or
          bin_proto. When I used avp_db_query() inside async() that led
          to script processing to halt, I've removed the async() and its
          working fine now, however the crash for adding a new profile
          variable is still there and needs resolution. </div>
        <div><br>
        </div>
        <div>Best Regards,</div>
        <div>Sammy</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 11:38
          AM SamyGo <<a href="mailto:govoiper@gmail.com"
            moz-do-not-send="true">govoiper@gmail.com</a>> wrote:<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="ltr">Thanks Vald, 
            <div>The problem I'm facing with profile sharing is strange,
              when I make a call the whole flow freeze in that route
              with dialog profile operations i.e get/set. I can wait for
              as many as 15+ seconds and nothing happens. CANCEL the
              call and resend INVITE and it completes the route in
              normal way. Which is beyond my understanding as why each
              alternate call is able to process the route. </div>
            <div><br>
              Here is the core dump trace: <a
                href="https://pastebin.com/XqiaMWnV" target="_blank"
                moz-do-not-send="true">https://pastebin.com/XqiaMWnV</a><br>
            </div>
            <div><br>
            </div>
            <div>Best regards,</div>
            <div>Sammy<br>
              <br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at
              10:03 AM Vlad Patrascu <<a
                href="mailto:vladp@opensips.org" target="_blank"
                moz-do-not-send="true">vladp@opensips.org</a>> wrote:<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 bgcolor="#FFFFFF">
                <p>Hi Sammy,</p>
                <p>The behavior you described when replicating profiles
                  is not actually a loop but instead the normal
                  operation. Dialog profile counters are periodically
                  broadcasted by all nodes in the cluster to all other
                  nodes. Also, an update is also broadcasted when a
                  counter decreases. As such there indeed should not be
                  any direct correlation between the number of SIP
                  invites and binary packets (containing profile
                  counters) sent. But if the SIP traffic contains BYEs
                  or if you end dialogs you might see a surge of binary
                  packets.</p>
                <p>As for the crash, can you post a full backtrace from
                  gdb?</p>
                <p>Regards,<br>
                </p>
                <pre cols="72">Vlad Patrascu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.com</a></pre>
                <div>On 1/6/20 1:05 PM, Bogdan-Andrei Iancu wrote:<br>
                </div>
                <blockquote type="cite"> reposting<br>
                  <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
  <a href="https://www.opensips.org/events/Summit-2020Amsterdam/" target="_blank" moz-do-not-send="true">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
  <a href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/" target="_blank" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>

</pre>
                  <div>On 1/6/20 4:21 AM, SamyGo wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Bogdan, <br>
                      Thanks for taking time out, here are the related
                      config params.
                      <div><br>
                      </div>
                      <div><font face="monospace">listen=bin:OPENSIPS_IP:6677<br>
                        </font></div>
                      <div><font face="monospace"><br>
                        </font></div>
                      <div><font face="monospace">### dialog module for
                          profiles/limits<br>
                          loadmodule "dialog.so"<br>
                          modparam("dialog", "db_mode", 0)<br>
                          modparam("dialog", "profiles_with_value",
"userConcurrent/b;userInbound/b;userOutbound/b;userInternational/b;userTotalCalls/b;inboundDomain/b;outboundDomain/b;globalDomain/b;prefixx<br>
                          /b;countryPrefix/b")<br>
                          modparam("dialog",
                          "profile_replication_cluster", 1)<br>
                          modparam("dialog", "replicate_profiles_timer",
                          3000)<br>
                          modparam("dialog", "replicate_profiles_check",
                          10)<br>
                        </font></div>
                      <div><font face="monospace"><br>
                        </font></div>
                      <div><font face="monospace">### Clustering Module<br>
                          loadmodule "clusterer.so"<br>
                          modparam("clusterer", "db_mode", 1)<br>
                          modparam("clusterer", "my_node_id", 3)<br>
                          modparam("clusterer", "sharing_tag", "</font>gw1/1=active<font
                          face="monospace">")<br>
                          modparam("clusterer", "node_timeout", 20)<br>
                        </font></div>
                      <div><font face="monospace">modparam("clusterer",
"db_url","DB_MODULE://DB_USER:DB_PASS@DB_HOST/DB_NAME")</font><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Routing logic: </div>
                      <div><a href="https://pastebin.com/6whjkhCs"
                          target="_blank" moz-do-not-send="true">https://pastebin.com/6whjkhCs</a>  <br>
                      </div>
                      <div><br>
                      </div>
                      <div>Related Logs are here.</div>
                      <div><a href="https://pastebin.com/a9a3iDQh"
                          target="_blank" moz-do-not-send="true">https://pastebin.com/a9a3iDQh</a> </div>
                      <div><br>
                      </div>
                      <div> Wireshark graph showing storm of binary
                        packets when SIP invite initiates the related
                        route.<br>
                      </div>
                      <div><br>
                      </div>
                      <div><b>BONUS CRASH: </b>When in a cluster I add
                        a new profile_with_value , say someVariable/b
                        and restart the first box with this variable,
                        the other boxes in cluster crash by saying
                        something along the lines of "unexpected
                        someVariable received"</div>
                      <div><br>
                      </div>
                      <div>I'm trying to get hold of the core files and
                        as soon as possible will share that here.</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Regards,.</div>
                      <div>Sammy.</div>
                      <div><br>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                </blockquote>
              </div>
              _______________________________________________<br>
              Users mailing list<br>
              <a href="mailto:Users@lists.opensips.org" target="_blank"
                moz-do-not-send="true">Users@lists.opensips.org</a><br>
              <a
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            </blockquote>
          </div>
        </blockquote>
      </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>
  </body>
</html>