<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Juha,<br>Thanks for your reply.<br>First prominent doubt that I have is; when I am using LCR in db_only mode why does openser try to load the table while starting up?<br>The scenario is as follows:<br>I had 50 rows in LCR table and started openser and it started properly and also routed the calls properly according to the values in lcr and gw table. Now I just appended more 40,000 rows to this table and again the routing worked properly<br>as per my lcr table. This behaviour was correct as I was using query only mode. I did not need any restart or any fifo reload command.<br>Only when I restarted my openser, the openser again died as it was trying load the lcr table while starting. <br>Could this be a bug in lcr module as I am not
 sure whats happening.<br>I tried increasing MAX_NO_OF_LCRS but even that did not help. <br>Somebody please help if poosible. <br><br>Thanks,<br><br>w/regards,<br>jayesh<br><br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Juha Heinanen &lt;jh@tutpro.com&gt;<br>To: Jayesh Nambiar &lt;voip_freak@yahoo.co.in&gt;<br>Cc: openser &lt;users@openser.org&gt;<br>Sent: Tuesday, 26 December, 2006 10:58:01 PM<br>Subject: [Users] LCR db_only mode problem<br><br><div>X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]<br>the error messages you get are coming from this statement:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;if (lcr_dbf.query(dbh, NULL, 0, NULL, lcr_cols, 0, 4, 0, &amp;res) &lt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOG(L_ERR, "lcr_reload_gws(): Failed to query lcr
 data\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lcr_dbf.close(dbh);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>i don't know which kind of memory db queries reserve.&nbsp;&nbsp;if shared memory,<br>you can start openser with larger -m parameter value.&nbsp;&nbsp;if pkg memory,<br>you need to edit PKG_MEM_POOL_SIZE in config.h and recompile openser.<br><br>with lots of lcr entries and no caching, performance may be bad.<br>if you use caching then you need to increase value of<br><br>#define MAX_NO_OF_LCRS 256<br><br>in lcr_mod.c and recompile lcr module.&nbsp;&nbsp;increasing MAX_NO_OF_LCRS means<br>that more shared memory will be used so you may also need to start<br>openser with larger -m parameter value.<br><br>-- juha<br></div></div><br></div></div><br>Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php</body></html>