<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Miha,<br>
<br>
Are you sure you have the cachedb_redis module loaded ?<br>
Add <br>
loadmodule "cachedb_redis.so"<br>
at the beggining of your config file.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 04/23/2012 09:39 AM, Miha wrote:
<blockquote cite="mid:4F94F90B.9020403@softnet.si" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi @Vlad,<br>
<br>
I did as you said. I remove libhiredis.so from modules folder and
just add this modparam("cachedb_redis",
"cachedb_url","redis:group1://localhost:6379/"); in cgf file.<br>
<br>
<br>
<small>[root@localhost ~]# /etc/init.d/opensips start
<br>
Not starting : invalid configuration file!<br>
<br>
Apr 23 07:52:38 [3267] ERROR:core:set_mod_param_regex: no module
matching cachedb_redis found<br>
Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 54,
column 19-20: Parameter <cachedb_url> not found in module
<cachedb_redis> - can't set<br>
Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 54,
column 20-21: syntax error<br>
Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 54,
column 20-21: <br>
Apr 23 07:52:38 [3267] ERROR:core:main: bad config file (3
errors)</small><br>
<br>
Thanks!<br>
MIha<br>
<br>
On 4/20/2012 4:24 PM, Vlad Paiu wrote:
<blockquote cite="mid:4F9171A1.7080807@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Miha,<br>
<br>
Do NOT copy libhiredis.so in the opensips modules folder.<br>
Just install hiredis it as usual on your server ( from sources,
or packages if they are available for your OS ) and leave it
there.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 04/20/2012 03:05 PM, Miha wrote:
<blockquote cite="mid:4F91511C.3010208@softnet.si" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<small>HI,<br>
<br>
I have installed redis server and instal hiredis as is
written on link from Opensips.<br>
<br>
Than I copied </small><small>libhiredis.so to </small><small>/usr/local/lib64/opensips/modules/.<br>
<br>
After runing opensips I get this. What could be causing
problem?<br>
<br>
THanks!<br>
</small><small><br>
[root@localhost hiredis]# /etc/init.d/opensips
start <br>
Not starting : invalid configuration file!<br>
<br>
Apr 20 13:19:23 [4603] ERROR:core:sr_load_module:
load_module:
/usr/local/lib64/opensips/modules/libhiredis.so: undefined
symbol: exports<br>
Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 38,
column 13-14: failed to load module<br>
Apr 20 13:19:23 [4603] ERROR:core:set_mod_param_regex: no
module matching cachedb_redis found<br>
Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 43,
column 19-20: Parameter <cachedb_url> not found in
module <cachedb_redis> - can't set<br>
Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 43,
column 20-21: syntax error<br>
Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse error in
config file /usr/local/etc/opensips/opensips.cfg, line 43,
column 20-21: <br>
Apr 20 13:19:23 [4603] ERROR:core:main: bad config file (4
errors)</small>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<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>
</body>
</html>