<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    some information is still cached for some processing in presence
    modules. Not sure to what extent you can rely on sharing everything
    via database, maybe t_replicate will help for the rest of the cases.<br>
    <br>
    I think posgress is the db that has the most features needed by
    presence modules for sharing, as I remember Peter Dunkley did some
    work on this some time ago.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 20/09/15 15:40, Ewgeny wrote:<br>
    </div>
    <blockquote cite="mid:55FEB73E.5080208@ukr.net" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      Thanks for the reply Daniel.<br>
      <br>
      But is that possible to use the same Presence DB with multiple
      Kamailio's ?<br>
      If i'll use same postgres DB with multiple Kamailio's - it'll
      cause DB locks and other issues ?<br>
      <br>
      What is the best way to do SUBSCRIBE presence replications - maybe
      via SIP (to replicate every handled subscribe msg to all other
      presences ?)<br>
      And replication via Database must work in db_mode =3 right ? But
      it cause low performance due to high database usage - right ?<br>
      <br>
      <br>
      <br>
      Thanks in advance.<br>
      Kind regards<br>
      Ewgeny<br>
      <br>
      <br>
      <br>
      <div class="moz-cite-prefix">17.09.2015 18:50, Daniel-Constantin
        Mierla пишет:<br>
      </div>
      <blockquote cite="mid:55FAE154.5050201@gmail.com" type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        Hello,<br>
        <br>
        db_text is not a database engine with a replication mechanism,
        it is just some basic DB API emulator using text files as
        storage. At runtime all the records are in memory, so no sharing
        between instances is possible.<br>
        <br>
        If you need replication/shared db, go for the well known ones
        like mysql or postgres.<br>
        <br>
        Cheers,<br>
        Daniel<br>
        <br>
        <div class="moz-cite-prefix">On 15/09/15 21:51, Ewgeny wrote:<br>
        </div>
        <blockquote cite="mid:55F876CD.3010009@ukr.net" type="cite">
          <meta http-equiv="content-type" content="text/html;
            charset=utf-8">
          Hi list!<br>
          <br>
          We use Kamailio 4.2 for presence BLF with DB_TEXT.<br>
          And i want to make cluster with a few Kamailio's presences, to
          load balance. <br>
          <br>
          Can you please tell me - is that possible to use same shared
          DB_TEXT database with 2 or more Kamailio servers ?<br>
          <br>
          <meta http-equiv="content-type" content="text/html;
            charset=utf-8">
          <pre class="programlisting" style="font-family: monospace; white-space: pre; color: rgb(0, 0, 0); border: 1px solid rgb(153, 204, 204); padding-left: 15pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(254, 254, 238);">modparam("presence", "subs_db_mode", 3)
modparam ("presence","dburl","/tmp/share/dbtext")
</pre>
          <br>
          <br>
          1-st server will handle SUBSCRIBE's and this Subscribe's
          should be accessible also from 2-nd server.<br>
          Then PUBLISH'es will be sent to both servers in round robin
          algorithm.<br>
          Will Kamailio's work with one shared DB or - i'll got some
          errors ?<br>
          Maybe i'm wrong somewhere ?<br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          Thanks in advance.<br>
          Kind regards<br>
          Ewgeny<br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <br>
        <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
  </body>
</html>