<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I would like to use dbtext to store a list of whitelisted gateways, but each time I load it I get a core segmentation fault.<br><br>Any ideas? Here is my gateways db file:<br>key_name(str) key_type(int) value_type(int) key_value(str)<br>gwip:1:0:a<br>gwip:1:0:b<br>gwip:1:0:c<br>gwcount:0:1:3<br><br>And in my config:<br>modparam("htable","htable","gateways=>size=4;dbtable=gateways;")<br>modparam("htable","db_url","text:///usr/local/etc/kamailio")<br><br> while( $var(i) < $sht(gateways=>gwcount) ){<br> if( $sht(gateways=>gwip[$var(i)]) == $si ){<br> setflag(gateway);<br> xlog("ISFROMGW: request from IP $si matches $sht(gateways=>gwip[$var(i)]) ...\n");<br> }<br> }<br><br>Do you see anything wrong with this setup?<br>-Eric<br>                                            </body>
</html>