<div dir="ltr"><div><div><div>Hi,<br><br></div>I'm trying to fill a hash table on startup in the htable:mod-init event route. But it doesn't work. Kamailio doesn't start at all, but doesn't print out an error in the log.<br>

<br></div>This is what the route looks like:<br><br>event_route[htable:mod-init] {<br>        xlog("L_NOTICE", "Loading Carrier domains into Hash table.\n");<br>        sql_query("ser", "select domain_name from carrier_domains", "domains");<br>

        xlog("L_NOTICE", "Loaded from database...\n");<br>        while($var(i)<$dbr(domains=>cols)) {<br>                xlog("L_NOTICE", "Entry: $dbr(domains=>[$var(i),0])\n");<br>

                $sht(carrierips=>$var(i)) = $dbr(domains=>[$var(i),0]);<br>                $var(i) = $var(i) + 1;<br>        }<br>}<br><br></div>Of course, the necessary parameters are set.<br>modparam("htable", "htable", "carrierips=>size=6")<br>

modparam("sqlops","sqlcon","ser=>mysql://<a href="http://user:password@127.0.0.1/ser">user:password@127.0.0.1/ser</a>")<br clear="all"><div><div><div><div><br></div><div>In the log I see the following:<br>

May 15 11:25:33 linux /usr/sbin/kamailio[20872]: NOTICE: <script>: Loading Carrier domains into Hash table.<br><br></div><div>As you can see, there should be a lot more output, but nothing happens anymore after that. In ngrep I see other queries going to the same database from other modules, but my query from the event route is never executed.<br>

<br></div><div>Am I missing something?<br><br></div><div>Best Regards,<br>Sebastian<br></div></div></div></div></div>