Hello Hemanth,

this minimal kamailio cfg file works for me to test ndb_redis module.


#!KAMAILIO

debug=4
log_stderror=yes
children=4
fork=yes
#disable_tcp=yes

mpath="modules/"

loadmodule "ndb_redis.so"

# An already configured redis server is needed here
modparam("ndb_redis", "server", "name=srv1;addr=127.0.0.1;port=6379;db=0")

request_route {
  redis_cmd("srv1", "SET foo bar", "r");
  exit;
}



Changing the parameters to suit your configuration, you can use it to debug your system.


Regards,
Vicente.


On 01/05/2017 07:55 AM, [email protected] wrote:

Hello Vicente,

Thanks for your response,

In response to your query,

Yes i have Built ndb_redis module and i can see ndb_redis.so in 
/usr/local/lib64/kamailio/modules folder, I have installed hiredis depenency 
also,

I have also modified the kamailio.cfg file loadmodule and modparam list,

I feel like the way i am using the redis_cmd is wrong, I think i need to add it 
in route section of kamailio.cfg file, Can you please guide me regarding how to 
use redis db in order to update user information to DB on registration of each 
user.

Thanks & Regards
Hemanth


Message: 8
Date: Wed, 4 Jan 2017 14:41:42 +0530 (IST)
From: "[email protected]" <[email protected]>
To: [email protected]
Subject: [SR-Users] Regarding usage of Redis Module in Kamailio core
Message-ID: <[email protected]>
Content-Type: text/plain;charset=UTF-8

Hello,

I am using Kamailio as a SIP proxy,

I want to store Registered user information in Redis DB,

I am able to configure REDIS DB, But i am not able to run the redis command from

Kamailio core using the function

     "redis_cmd("srvN","SET key 1", "r")"

I am getting undefined reference error as below

"/usr/local/src/kamailio-4.4/kamailio/receive.c:208: undefined reference to 
`redis_cmd'"

can anyone please help me to fix this issue

Thanks & Regards
Hemanth




------------------------------

Message: 9
Date: Wed, 4 Jan 2017 10:50:05 +0100
From: Vicente Hernando <[email protected]>
To: [email protected]
Subject: Re: [SR-Users] Regarding usage of Redis Module in Kamailio
        core
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hello Hemanth,

just a quick response, I would check if you compiled ndb_redis module
correctly (also if you have hiredis library dependency).

Also I would check if you loaded ndb_redis module in your configuration
file.


Regards,
Vicente.

On 01/04/2017 10:11 AM, [email protected] wrote:
Hello,

I am using Kamailio as a SIP proxy,

I want to store Registered user information in Redis DB,

I am able to configure REDIS DB, But i am not able to run the redis command from

Kamailio core using the function

      "redis_cmd("srvN","SET key 1", "r")"

I am getting undefined reference error as below

"/usr/local/src/kamailio-4.4/kamailio/receive.c:208: undefined reference to 
`redis_cmd'"

can anyone please help me to fix this issue

Thanks & Regards
Hemanth


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




------------------------------

Subject: Digest Footer

_______________________________________________
sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


------------------------------

End of sr-users Digest, Vol 140, Issue 3
****************************************






_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to