<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Am 09.09.2014 um 05:57 schrieb aawaise:<br>
    </div>
    <blockquote cite="mid:1410235039591-130378.post@n5.nabble.com"
      type="cite">
      <pre wrap="">How can we avoid sharing of location table ?
Because both are using same database and siremis on both servers will be
attached to common database ?
How can a call be forwarded in kamailio on checking that user is available
locally or not ?? I need some help with code in this regard.



--
View this message in context: <a class="moz-txt-link-freetext" href="http://sip-router.1086192.n5.nabble.com/Call-connection-from-one-server-to-another-tp130318p130378.html">http://sip-router.1086192.n5.nabble.com/Call-connection-from-one-server-to-another-tp130318p130378.html</a>
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a 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>
    change the usrloc db_mode in your kamailio.cfg on both kamailio
    server.<br>
    <br>
    mode 2 will store the location Data to your mysql server.<br>
    <br>
    modparam("usrloc", "db_mode", 2)<br>
    <div class="moz-signature"><br>
      2 - Write-Back scheme. This is a combination of previous two
      schemes. All changes are made to memory and database
      synchronization is done in the timer. The timer deletes all
      expired contacts and flushes all modified or new contacts to
      database. Use this scheme if you encounter high-load peaks and
      want them to process as fast as possible. The mode will not help
      at all if the load is high all the time. Also, latency of this
      mode is much lower than latency of mode 1, but slightly higher
      than latency of mode 0. <br>
      <br>
      source ->
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/4.1.x/modules/usrloc.html#usrloc.p.db_mode">http://kamailio.org/docs/modules/4.1.x/modules/usrloc.html#usrloc.p.db_mode</a><br>
      <br>
      <br>
      -- <br>
      <b>Rainer Piper</b>
      <br>
      Integration engineer
      <br>
      Koeslinstr. 56
      <br>
      53123 BONN <br>
      GERMANY
      <br>
      Phone: +49 228 97167161
      <br>
      P2P: <a class="moz-txt-link-freetext" href="sip:7000@sip.soho-piper.de:5072">sip:7000@sip.soho-piper.de:5072</a> (pjsip-test)</div>
  </body>
</html>