[OpenSIPS-Users] cachedb_redis

Miha miha at softnet.si
Mon Apr 23 11:51:10 CEST 2012


Hi Vlad,

I did but I guss problem is that I do not have .so file.

I have installed redis server and downlaod this 
https://github.com/antirez/hiredis

Aftet that I did make&make install

Regards,
Miha

On 4/23/2012 10:40 AM, Vlad Paiu wrote:
> Hi Miha,
>
> Are you sure you have the cachedb_redis module loaded ?
> Add
>     loadmodule "cachedb_redis.so"
> at the beggining of your config file.
>
> Regards,
> Vlad Paiu
> OpenSIPS Developer
> http://www.opensips-solutions.com  
>
> On 04/23/2012 09:39 AM, Miha wrote:
>> Hi @Vlad,
>>
>> 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.
>>
>>
>> [root at localhost ~]# /etc/init.d/opensips start
>> Not starting : invalid configuration file!
>>
>> Apr 23 07:52:38 [3267] ERROR:core:set_mod_param_regex: no module 
>> matching cachedb_redis found
>> 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
>> 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
>> 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:
>> Apr 23 07:52:38 [3267] ERROR:core:main: bad config file (3 errors)
>>
>> Thanks!
>> MIha
>>
>> On 4/20/2012 4:24 PM, Vlad Paiu wrote:
>>> Hi Miha,
>>>
>>> Do NOT copy libhiredis.so in the opensips modules folder.
>>> Just install hiredis it as usual on your server ( from sources, or 
>>> packages if they are available for your OS ) and leave it there.
>>>
>>> Regards,
>>> Vlad Paiu
>>> OpenSIPS Developer
>>> http://www.opensips-solutions.com  
>>>
>>> On 04/20/2012 03:05 PM, Miha wrote:
>>>> HI,
>>>>
>>>> I have installed redis server and instal hiredis as is written on 
>>>> link from Opensips.
>>>>
>>>> Than I copied libhiredis.so to /usr/local/lib64/opensips/modules/.
>>>>
>>>> After runing opensips I get this. What could be causing problem?
>>>>
>>>> THanks!
>>>>
>>>> [root at localhost hiredis]# /etc/init.d/opensips start
>>>> Not starting : invalid configuration file!
>>>>
>>>> Apr 20 13:19:23 [4603] ERROR:core:sr_load_module: load_module: 
>>>> /usr/local/lib64/opensips/modules/libhiredis.so: undefined symbol: 
>>>> exports
>>>> 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
>>>> Apr 20 13:19:23 [4603] ERROR:core:set_mod_param_regex: no module 
>>>> matching cachedb_redis found
>>>> 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
>>>> 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
>>>> 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:
>>>> Apr 20 13:19:23 [4603] ERROR:core:main: bad config file (4 errors)
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120423/c48d6018/attachment-0001.htm>


More information about the Users mailing list