<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 1/10/12 3:11 PM, Albert Petit wrote:
    <blockquote
cite="mid:CAPFor4hQ03S1xGPC6Ckx7Lo=pies39=u_3v7_zCqw-Hcn3F1aA@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>I'm using dispatcher module for load balancnig purposes I
        read active/inactive nodes from the database</div>
      <div><br>
      </div>
      <div>So &nbsp;I define on my kamailio.cfg:&nbsp;</div>
      <div>modparam("dispatcher", "db_url", &nbsp; &nbsp; &nbsp;
        &nbsp;"mysql://openser:openserrw@&lt;DB_IP&gt;/openser")</div>
      <div><br>
      </div>
      <div>Then, on my route(DISPATCH) I call:</div>
      <div><br>
      </div>
      <div><b>&nbsp; ds_select_dst("1", "4");</b></div>
      <div>
        <div><b>&nbsp; t_relay();</b></div>
        <div><b><br>
          </b></div>
        <div><br>
        </div>
        <div>My question is: Which <b>set of addresses is using&nbsp;</b><b>ds_select_dst
            &nbsp;</b>to choose destination. Will it do a&nbsp;query on the db
          each time updating active and inactive nodes on each
          ds_select_dst call? If not, &nbsp;when is the list of addresses to
          choose updated? &nbsp; (on kamaiilio restart, periodically...)</div>
        <div>I say this because I would like to update active and
          inactive nodes from a 3rd party application modifying the
          flags column but I need to know also how many time will it
          take for the change to be applied. <br>
        </div>
      </div>
    </blockquote>
    the list of addresses is loaded at startup. To reload it, you have
    to send a MI/RPC command (e.g., 'kamctl fifo ds_reload', or 'sercmd
    dispatcher.reload', or via xmlrpc). If you just want to change the
    flags, there is a mi/rpc command for it:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513046">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513046</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>