<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 4/15/11 5:58 AM, Eric Hiller wrote:
<blockquote cite="mid:BLU166-w1631043E256A79255714A7DBAC0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style> 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>
</blockquote>
do you get a core dump? Send the backtrace if yes.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>