Hi Daniel,<div><br></div><div>Finally as you suggested in the answer we do change DB and then force a reload of the status of the nodes through the <b>ds_reload</b> MI command (<a href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513000">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513000</a>) and it works great </div>
<div><br></div><div>Thanks.</div><div><br><br><div class="gmail_quote">2012/1/10 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></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">
Hello,<div><div class="h5"><br>
<br>
On 1/10/12 3:11 PM, Albert Petit wrote:
<blockquote 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 I define on my kamailio.cfg: </div>
<div>modparam("dispatcher", "db_url",
"mysql://openser:openserrw@<DB_IP>/openser")</div>
<div><br>
</div>
<div>Then, on my route(DISPATCH) I call:</div>
<div><br>
</div>
<div><b> ds_select_dst("1", "4");</b></div>
<div>
<div><b> t_relay();</b></div>
<div><b><br>
</b></div>
<div><br>
</div>
<div>My question is: Which <b>set of addresses is using </b><b>ds_select_dst
</b>to choose destination. Will it do a query on the db
each time updating active and inactive nodes on each
ds_select_dst call? If not, when is the list of addresses to
choose updated? (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></div></div>
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 href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513046" target="_blank">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2513046</a><br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Albert<br>
</div>