[OpenSIPS-Users] cachedb_redis

Miha miha at softnet.si
Mon Apr 23 13:52:30 CEST 2012


Hi Vlad,

I am using Opensips 1.8. I do not have this options in menuconfig.
Generate OpenSIPS Script ->  Residential Script, Trunking Script , 
Load-Balancer Script
I did not find cachedb_redis in any of it.
Regards,
Miha
Exit & Save All Changes
On 4/23/2012 12:37 PM, Vlad Paiu wrote:
> Hi Miha,
>
> The cachedb_redis module is excluded from compilation by default, 
> because it depends on an external library.
> To enable it, go to OpenSIPS sources folder, do
>     make menuconfig
> go to 'Configure Compile Options' -> Configure Excluded Modules  , 
> scroll to cachedb_redis, check it ( space bar ), go back ( q ) , hit 
> 'Save Changes' and recompile & re-install OpenSIPS. You should have 
> cachedb_redis compiled, and cachedb_redis.so generated this time.
>
> Regards,
> Vlad Paiu
> OpenSIPS Developer
> http://www.opensips-solutions.com  
>
> On 04/23/2012 12:51 PM, Miha wrote:
>> 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
>>
>>
>> _______________________________________________
>> 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/d0dc1bf2/attachment-0001.htm>


More information about the Users mailing list