<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Hello Everyone,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> I am trying to use Redis with OpenSIPS 2.1.5 but I am getting an error (see below) indicating that OpenSIPS is not able to load the module (cachedb_redis.so). As you can see from my printout below, the module does exist in the module
library directory. Below is my configuration about Redis, OpenSIPS, and the error.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Any help is very much appreciated. Thanks.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"># opensips -c<o:p></o:p></p>
<p class="MsoPlainText">Dec 21 11:39:04 [15262] ERROR:core:sr_load_module: could not open module<o:p></o:p></p>
<p class="MsoPlainText"></usr/local/opensips/lib64/opensips/modules/cachedb_redis.so>:
<o:p></o:p></p>
<p class="MsoPlainText">/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so: undefined<o:p></o:p></p>
<p class="MsoPlainText">symbol: get_redis_connection<o:p></o:p></p>
<p class="MsoPlainText">Dec 21 11:39:04 [15262] ERROR:core:load_module: failed to load module Dec 21 11:39:04 [15262] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips//etc/opensips/opensips.cfg, line 158, column<o:p></o:p></p>
<p class="MsoPlainText">13-14: failed to load module cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Dec 21 11:39:04 [15262] ERROR:core:set_mod_param_regex: no module matching cachedb_redis found Dec 21 11:39:04 [15262] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips//etc/opensips/opensips.cfg, line 159, column<o:p></o:p></p>
<p class="MsoPlainText">18-19: Parameter <cachedb_url> not found in module <cachedb_redis> - can't set Dec 21 11:39:04 [15262] ERROR:core:main: bad config file (2 errors)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"># ll /usr/local/opensips/lib64/opensips/modules/cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText">-rwxr-xr-x 1 root root 209608 Dec 21 11:16 /usr/local/opensips/lib64/opensips/modules/cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText">opensips.cfg<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">#### CacheDB Redis module<o:p></o:p></p>
<p class="MsoPlainText">loadmodule "cachedb_redis.so"<o:p></o:p></p>
<p class="MsoPlainText">modparam("cachedb_redis","cachedb_url","redis:group1://localhost:6379/")<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># dpkg -l | grep redis<o:p></o:p></p>
<p class="MsoPlainText">ii libhiredis-dev:amd64 0.13.3-2
<o:p></o:p></p>
<p class="MsoPlainText">amd64<o:p></o:p></p>
<p class="MsoPlainText">ii libhiredis0.13:amd64 0.13.3-2
<o:p></o:p></p>
<p class="MsoPlainText">amd64<o:p></o:p></p>
<p class="MsoPlainText">ii redis-server 2:3.0.6-1 amd64<o:p></o:p></p>
<p class="MsoPlainText">ii redis-tools 2:3.0.6-1 amd64<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># opensips -V<o:p></o:p></p>
<p class="MsoPlainText">version: opensips 2.1.5 (x86_64/linux)<o:p></o:p></p>
<p class="MsoPlainText">flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt,
epoll_et, sigio_rt, select.<o:p></o:p></p>
<p class="MsoPlainText">git revision: e381dd5<o:p></o:p></p>
<p class="MsoPlainText">main.c compiled on 11:14:40 Dec 21 2016 with gcc 5.4.0<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># uname -a<o:p></o:p></p>
<p class="MsoPlainText">Linux rainier 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC<o:p></o:p></p>
<p class="MsoPlainText">2016 x86_64 x86_64 x86_64 GNU/Linux<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>