<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Dominic,</p>
    <p>The state listed by 'clusterer_list_cap' refers to the startup
      synchronization mechanism. When you register a sip device on an
      instance, that event is replicated on the spot to the other
      instances in the cluster, but older registrations are only pulled
      from other nodes at startup. You probably did not set the "seed"
      flag for any of the nodes, so the syncing process is unable to
      bootstrap correctly.</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 08/08/2018 09:55 PM, Dominic wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANC2LAMvSxv4qV4NX=YRdv2AE5xN=671UADAwofX89YkDDyU3Q@mail.gmail.com">
      <div dir="ltr">
        <div>There's something I'm not getting though, I defined my
          cluster with 2 opensips instances:</div>
        <div><br>
        </div>
        <div># opensipsctl fifo clusterer_list<br>
          Cluster:: 1<br>
              Node:: 2 DB_ID=-1 URL=bin:<a
            href="http://10.0.20.163:5566" moz-do-not-send="true">10.0.20.163:5566</a>
          Enabled=1 Link_state=Up      Next_hop=2 Description=none<br>
        </div>
        <div><br>
        </div>
        <div># opensipsctl fifo clusterer_list_topology<br>
          Cluster:: 1<br>
              Node:: 1 Neighbours=2<br>
              Node:: 2 Neighbours=1</div>
        <div><br>
        </div>
        <div>However it seems usrloc is not synced as seen in the state
          below:</div>
        <div># opensipsctl fifo clusterer_list_cap<br>
          Cluster:: 1<br>
              Capability:: usrloc-contact-repl State=not synced</div>
        <div><br>
        </div>
        <div>However if I register 1 sip device on instance 1, I can see
          the device on both instances if I run "opensipsctl ul show".
          So it looks as though the usrloc is replicated properly so I
          wonder why "opensipsctl fifo clusterer_list_cap" has the "not
          synced" state.</div>
        <div><br>
        </div>
        <div>Dominic<br>
        </div>
        <div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Aug 8, 2018 at 8:00 AM, Dominic
          <span dir="ltr"><<a href="mailto:wallnut.monkeys@gmail.com"
              target="_blank" moz-do-not-send="true">wallnut.monkeys@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr"><br>
              <div class="gmail_extra"><br>
                <div class="gmail_quote"><span class="">On Wed, Aug 8,
                    2018 at 4:52 AM, Bogdan-Andrei Iancu <span
                      dir="ltr"><<a href="mailto:bogdan@opensips.org"
                        target="_blank" moz-do-not-send="true">bogdan@opensips.org</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi
                          Dominic,<br>
                          <br>
                          Please see inline.<br>
                          <br>
                          Regards,<br>
                        </tt>
                        <pre class="m_3691624973296442529m_2663162837275685652moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="m_3691624973296442529m_2663162837275685652moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Bootcamp 2018
  <a class="m_3691624973296442529m_2663162837275685652moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" target="_blank" moz-do-not-send="true">http://opensips.org/training/O<wbr>penSIPS_Bootcamp_2018/</a>
</pre>
                        <span>
                          <div
                            class="m_3691624973296442529m_2663162837275685652moz-cite-prefix">On
                            08/07/2018 10:36 PM, Dominic wrote:<br>
                          </div>
                          <blockquote type="cite">
                            <div dir="ltr">
                              <div>Hi all, just to make sure I'm one the
                                right track here I'd like to share a few
                                thoughts of where I'm currently going
                                with my architecture, any feedback is
                                really appreciated specially if it can
                                help me avoid any pitfalls in the
                                future. Here is what I'm trying to do:</div>
                              <div><br>
                              </div>
                              <div>I currently have a a few asterisk
                                servers directly facing the public
                                internet, with sip devices registering
                                directly with a specific asterisk. <br>
                              </div>
                              <div><br>
                              </div>
                              <div>So my first goal was to have the sip
                                devices register directly with OpenSips
                                so I used the mid_registrar module for
                                that, and forward the registers to the
                                right asterisk. This seems to work very
                                well so far.</div>
                              <div><br>
                              </div>
                              <div>Secondly, I setup rtp proxy, on the
                                same box as opensips, this also seems to
                                work great so far. At this point I
                                should be able to not have the asterisk
                                facing public internet.</div>
                            </div>
                          </blockquote>
                        </span> Do you intend to move the * boxes to a
                        private network ? or to keep them with public
                        IP, but behind a firewall ?<span><br>
                        </span></div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>Yes I indend to move them to a private network
                    behind a firewall with no public IP. <br>
                  </div>
                  <span class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"><span>
                          <blockquote type="cite">
                            <div dir="ltr">
                              <div><br>
                              </div>
                              <div>The third thing I now want to do, and
                                this is where I am currently stuck is to
                                figure out what my options are in terms
                                of high availability of the opensips. I
                                figured I would go with a VIP setup with
                                2 identical opensips box. So in this
                                type of setup i would have to replicate
                                usrloc and dialogs between the 2
                                opensips instances right? Am I
                                forgetting anything?<br>
                              </div>
                            </div>
                          </blockquote>
                        </span> yes, you are on the right tracks - use
                        the dialog replication (with a sharing tag) and
                        usrloc full sharing mode - this will give you
                        the HA you are looking for (in combination with
                        a VIP)<span><br>
                        </span></div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>Perfect, I'll give that a shot <br>
                  </div>
                  <span class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"><span>
                          <blockquote type="cite">
                            <div dir="ltr">
                              <div><br>
                              </div>
                              <div>Am I on the right track with this
                                type of setup or am I missing something
                                big here? It's also worth mentioning
                                that I am using OpenSIPS 2.4</div>
                              <div><br>
                              </div>
                              <div>Any advice/links with info on similar
                                setup/code examples are very welcome</div>
                            </div>
                          </blockquote>
                        </span> For the HA, see<br>
                           
                        <a
                          class="m_3691624973296442529m_2663162837275685652moz-txt-link-freetext"
href="https://blog.opensips.org/2018/03/15/scaling-distributing-and-partitioning-registrations-with-opensips-2-4/"
                          target="_blank" moz-do-not-send="true">https://blog.opensips.org/2018<wbr>/03/15/scaling-distributing-<wbr>and-partitioning-registrations<wbr>-with-opensips-2-4/</a><br>
                           
                        <a
                          class="m_3691624973296442529m_2663162837275685652moz-txt-link-freetext"
href="https://blog.opensips.org/2018/03/23/clustering-ongoing-calls-with-opensips-2-4/"
                          target="_blank" moz-do-not-send="true">https://blog.opensips.org/2018<wbr>/03/23/clustering-ongoing-call<wbr>s-with-opensips-2-4/</a><br>
                        <blockquote type="cite">
                          <div dir="ltr">
                            <div>Thanks</div>
                            <div>Dominic<br>
                            </div>
                          </div>
                          <br>
                          <fieldset
                            class="m_3691624973296442529m_2663162837275685652mimeAttachmentHeader"></fieldset>
                          <br>
                          <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_3691624973296442529m_2663162837275685652moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_3691624973296442529m_2663162837275685652moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                        </blockquote>
                        <br>
                      </div>
                    </blockquote>
                  </span>
                  <div>Thanks a lot for the replies, the help is really
                    appreciated</div>
                  <span class="HOEnZb"><font color="#888888">
                      <div><br>
                      </div>
                      <div>Dominic<br>
                      </div>
                    </font></span></div>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>