<div dir="ltr"><div>Hi,</div>
<div>i ask this not for sip affected problems. i what to load the information from the DB.</div>
<div>while loading, i want the DB table to be locked for changes... i need to know when did the loading proccess ended in order to unlock the table.....</div>
<div>how do i set an application to run the kamctl command and make sure the reload ended? i understand it depends on the amount of data. that is why i need a &quot;return code&quot; from the kamctl to let me know the reload ends....</div>

<div> </div>
<div>any ideas?<br><br></div>
<div class="gmail_quote">On Thu, Jan 5, 2012 at 12:36 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello, 
<div class="im"><br><br>On 1/5/12 11:03 AM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hi,<br>i am using different modules like &quot;mtree&quot;, &quot;carrierroute&quot;, &quot;drouting&quot; and so.<br>
how can i tell how long did the reload takes?<br></blockquote></div>this is a matter of how many records are in database. Perhaps you can count the duration of executing the reload command. 
<div class="im"><br><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">how do i know if it fails?<br>is there a way to get a return code from kamailio that confirms that the reload ended and successfuly?<br>
</blockquote></div>It returns failure code if something does not go right while reloading.<br><br>Note that reload operations are done in a dedicated process when using kamctl commands, so sip traffic processing is not affected.<br>
<br>Cheers,<br>Daniel<span class="HOEnZb"><font color="#888888"><br><br>-- <br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br><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><br>
<br></font></span></blockquote></div><br></div>