<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Flavio,<br>
      <br>
      By different IPs, you mean in the socket the contact record, right
      ? If you want to have different sockets on each server, maybe it
      is not a "replication" anymore - the basic concept of replication
      is to "copy" something on different servers. But you want
      different records, not the same record.<br>
      <br>
      A really crazy idea is to use the AOR_INSERT event in usrloc (see
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id295241">http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id295241</a>)
      to trigger a script route when the permanent registration is added
      (of course you have to check the AOR to see if is a permanent or
      not, based on username, if possible). And from event route, use
      t_new_request (see
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id295310">http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id295310</a>)
      to build a REGISTER to go to the other servers, as a replicated
      register.<br>
      As said, this ^^^ is a bit SiFi :(<br>
      <br>
      IMHO, you should stick to the idea of inserting the record on each
      machine, via MI . You mentioned some index issue - could you
      detail on this ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and 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 18.02.2016 00:19, Flavio Goncalves
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJkFROzdxVNn5whtOBim5yaOYFUZbXUf7g_fqmdCrFyQ_a3HuQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Bogdan , <br>
            <br>
          </div>
          The binary replication does not support different IP
          addresses. There is no NAT in the implementation, so the idea
          is to replicate and set the local addres on each site. <br>
          <br>
        </div>
        Regards, <br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">Flavio E. Goncalves<br>
              CEO - V.Office Redes e Telecomunicações Ltda. <br>
              Phone: +55 48-3332-8590<br>
              <a class="moz-txt-link-freetext" href="Skype:flaviogoncalves1">Skype:flaviogoncalves1</a><br>
              Linkedin: <a moz-do-not-send="true"
                href="http://www.linkedin.com/in/flavioegoncalves"
                target="_blank">www.linkedin.com/in/flavioegoncalves</a>
              <div>Twitter: <a moz-do-not-send="true"
                  href="http://www.twitter.com/asteriskguide"
                  target="_blank">www.twitter.com/asteriskguide</a></div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2016-02-17 17:48 GMT-02:00
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span>:<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 Flavio,<br>
                <br>
                I haven;t tried, but MI registration may get replicated
                via BIN - have you tried to set the BIN replication for
                usrloc (instead of t_replicate) ?<br>
                <br>
                Regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On 17.02.2016 16:53, Flavio Goncalves wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi, 
                      <div><br>
                      </div>
                      <div>Does anyone has tried to replicate permanent
                        registrations? For normal registrations is
                        possible to use t_replicate, but for permanent
                        inserted over MI, I don't know. </div>
                      <div><br>
                      </div>
                      <div>Inserting in two proxies at the same time
                        using MI sometimes generate duplicate index and
                        abort the process and in some cases remove all
                        permanent records (using the same DB), I have
                        tried. </div>
                      <div><br>
                      </div>
                      <div>Any clue helps,</div>
                      <div><br clear="all">
                        <div>
                          <div>
                            <div dir="ltr">Flavio E. Goncalves<br>
                              <div><br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>