<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi James,<br>
<br>
The problem is that you are using db_text backend for the module.
and this DB engine adds its own level of caching. The db_text reads
the content of the file and caches it in memory; then, the blacklist
module reads from db_text and caches again.<br>
<br>
The reload function you are using is forcing the module to reload
from DB, but in your case the DB is not reloading from the actual
file.<br>
<br>
What you need to do is to set the "db_mode" param in db_text to "1":<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.7.x/db_text.html#id250100">http://www.opensips.org/html/docs/modules/1.7.x/db_text.html#id250100</a><br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/05/2012 07:38 PM, <a class="moz-txt-link-abbreviated" href="mailto:discodog62@aol.com">discodog62@aol.com</a> wrote:
<blockquote
cite="mid:8CEC90DD7EC60D7-131C-3C88@webmail-m147.sysops.aol.com"
type="cite"><font color="black" face="arial" size="2"><font
face="arial" size="2">I am having an issue when I update my
userblacklist file then call </font><span style="color: black;
font-family: arial; background-color: rgb(239, 248, 248);
font-size: 10pt;">opensipsctl fifo reload_blacklist. I see
that the date updates on my FIFO file but when I try to test
the updated numbers to verify that they are blocked my test
fails and the number dials.</span>
<div style="color: black; font-family: arial; font-size: 10pt;"><span
style="background-color: rgb(239, 248, 248); font-size:
10pt;"><br>
</span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial" size="2">I then restart opensips and test </font><font
face="arial">again</font><font face="arial" size="2"> and
the updated numbers are now blocked.</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial" size="2"><br>
</font></span></div>
<div><font face="arial" size="2">I am not sure if this matters
but the file size of my FIFO is 0. </font></div>
<div style="color: black; font-family: arial; font-size: 10pt;"><span
style="background-color: rgb(239, 248, 248); font-size:
10pt;"><br>
</span></div>
<div style="color: black; font-family: arial; font-size: 10pt;"><span
style="background-color: rgb(239, 248, 248); font-size:
10pt;">I am using dbtext</span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial">modparam("userblacklist",
"db_url","text:///zxa/server/opensipsdb")</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial">Have I missed a setting?</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial">Thanks,</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial">James</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div><span style="background-color: rgb(239, 248, 248);"><font
face="arial"><br>
</font></span></div>
<div style="color: black; font-family: arial; font-size: 10pt;"><span
style="background-color: rgb(239, 248, 248); font-size:
10pt;"><br>
</span></div>
</font>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>