<div dir="ltr"><div>Hi All,</div><div><br></div><div>I am new to Kamailio world. I am trying to initialize some details at Kamailio startup, this requires some database queries from a few tables.</div><div><br></div><div>I have read about the htable event, however sql queries are not working in this route.</div><div>I have come upon following errors. Please suggest a solution for this.</div><div><br></div><div>Route used:</div><div><br></div><div><div>event_route[htable:mod-init] {</div><div><span class="" style="white-space:pre">  </span>xlog("L_INFO", "********Initailising the startup route ******\n");</div><div><span class="" style="white-space:pre">     </span>sql_xquery("cb","SELECT id, media_server_port, name FROM domains","ra");</div><div><span class="" style="white-space:pre">     </span></div><div> }</div></div><div><br></div><div>error :</div><div><br></div><div><div>Oct  8 13:28:32 P172 /usr/local/kamailio/sbin/kamailio[28735]: INFO: <script>: ********Initailising the startup route ******</div><div>Oct  8 13:28:32 P172 kamailio: ERROR: <core> [daemonize.c:303]: daemonize(): Main process exited before writing to pipe</div><div><br></div></div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Thanking You,<br>Sunil More<br>Ph : 9503338275</div></div></div>
</div>