Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si.
Javi On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com mailto:jgallart@systemonenoc.com>:
Hello can you check with "redis-cli monitor" what is the command sent to Redis in that case? Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected. This happens only with websocket endpoints. My queries is: redis_cmd("srv1", "EXISTS $si", "s"); So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Now I see that null values recieved after I see this at kamailio log
redisc_exec(): Redis error: Server closed the connection
2015-02-27 12:45 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si.
Javi
On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
at the monitor I see nothing about this request
2015-02-27 13:21 GMT+03:00 Yuriy Gorlichenko ovoshlook@gmail.com:
Now I see that null values recieved after I see this at kamailio log
redisc_exec(): Redis error: Server closed the connection
2015-02-27 12:45 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si.
Javi
On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello On 27/02/15 11:58, Yuriy Gorlichenko wrote:
at the monitor I see nothing about this request
It's difficult to say without further information, but for some reason your command is not hitting redis, probably because the connection is down.
Javi
2015-02-27 13:21 GMT+03:00 Yuriy Gorlichenko <ovoshlook@gmail.com mailto:ovoshlook@gmail.com>:
Now I see that null values recieved after I see this at kamailio log redisc_exec(): Redis error: Server closed the connection 2015-02-27 12:45 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com <mailto:jgallart@systemonenoc.com>>: Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si. Javi On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli? 2015-02-27 11:38 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com <mailto:jgallart@systemonenoc.com>>: Hello can you check with "redis-cli monitor" what is the command sent to Redis in that case? Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected. This happens only with websocket endpoints. My queries is: redis_cmd("srv1", "EXISTS $si", "s"); So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
What type of info can I provide for deeper analys of this situation?
2015-02-27 14:34 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello On 27/02/15 11:58, Yuriy Gorlichenko wrote:
at the monitor I see nothing about this request
It's difficult to say without further information, but for some reason your command is not hitting redis, probably because the connection is down.
Javi
2015-02-27 13:21 GMT+03:00 Yuriy Gorlichenko ovoshlook@gmail.com:
Now I see that null values recieved after I see this at kamailio log
redisc_exec(): Redis error: Server closed the connection
2015-02-27 12:45 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si.
Javi
On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello
I ignore your setup, a few tips that can help you to narrow down the problem:
-Make sure your kamailio is connected to redis: 'redis-cli info | grep connected_clients' should show a number bigger than the number of kamailio children
-Print with xlog the value of $si before calling redis_cmd
-At the redis prompt (redis-cli) type the command EXISTS x, with x being the value of $si. If that gives you a 1 it means that the key exists, otherwise you need to create it.
-Pritn the values of $redis(s=>type), $redis(s=>value) after calling redis_cmd
-With redis-cli monitor you are goign to see all the commands sent to redis
Javi On 27/02/15 14:30, Yuriy Gorlichenko wrote:
What type of info can I provide for deeper analys of this situation?
2015-02-27 14:34 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com mailto:jgallart@systemonenoc.com>:
Hello On 27/02/15 11:58, Yuriy Gorlichenko wrote:
at the monitor I see nothing about this request
It's difficult to say without further information, but for some reason your command is not hitting redis, probably because the connection is down. Javi
2015-02-27 13:21 GMT+03:00 Yuriy Gorlichenko <ovoshlook@gmail.com <mailto:ovoshlook@gmail.com>>: Now I see that null values recieved after I see this at kamailio log redisc_exec(): Redis error: Server closed the connection 2015-02-27 12:45 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com <mailto:jgallart@systemonenoc.com>>: Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si. Javi On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli? 2015-02-27 11:38 GMT+03:00 Javi Gallart <jgallart@systemonenoc.com <mailto:jgallart@systemonenoc.com>>: Hello can you check with "redis-cli monitor" what is the command sent to Redis in that case? Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected. This happens only with websocket endpoints. My queries is: redis_cmd("srv1", "EXISTS $si", "s"); So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello All. I still have problems with disconnect kamailio to redis.
All tests above are correct but when INVITE arrives kamailio stil disconnects from redis. Haw can I debug this deeper?
2015-02-27 16:48 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
I ignore your setup, a few tips that can help you to narrow down the problem:
-Make sure your kamailio is connected to redis: 'redis-cli info | grep connected_clients' should show a number bigger than the number of kamailio children
-Print with xlog the value of $si before calling redis_cmd
-At the redis prompt (redis-cli) type the command EXISTS x, with x being the value of $si. If that gives you a 1 it means that the key exists, otherwise you need to create it.
-Pritn the values of $redis(s=>type), $redis(s=>value) after calling redis_cmd
-With redis-cli monitor you are goign to see all the commands sent to redis
Javi
On 27/02/15 14:30, Yuriy Gorlichenko wrote:
What type of info can I provide for deeper analys of this situation?
2015-02-27 14:34 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello On 27/02/15 11:58, Yuriy Gorlichenko wrote:
at the monitor I see nothing about this request
It's difficult to say without further information, but for some reason your command is not hitting redis, probably because the connection is down.
Javi
2015-02-27 13:21 GMT+03:00 Yuriy Gorlichenko ovoshlook@gmail.com:
Now I see that null values recieved after I see this at kamailio log
redisc_exec(): Redis error: Server closed the connection
2015-02-27 12:45 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello, check out http://redis.io/commands/monitor It will help you to determine the exact command that kamailio is delivering to the server when you execute the redis_cmd(...) function inside the script. For a non null reply, yo will need a key in redis with the same value as $si.
Javi
On 27/02/15 10:04, Yuriy Gorlichenko wrote:
I will try. I new at redis. Does cli monitor get resul of kamailio request at the cli?
2015-02-27 11:38 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Hello
can you check with "redis-cli monitor" what is the command sent to Redis in that case?
Javi On 27/02/15 09:15, Yuriy Gorlichenko wrote:
Hello I try to get some replies from redis. Time after time redis request give me null result. But redis bs not disconnected.
This happens only with websocket endpoints. My queries is:
redis_cmd("srv1", "EXISTS $si", "s");
So at xLOG i see that $si correctly sended, but result is null. At db I keep key IP with value TIMESTAMP
Intresting that route, that givesme this result idependend of WS or UDP endpoint. IT does not know about it anything.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Unless you send the relevant part of your configuration and of the restults the tests I proposed it is really diificult to provide more detailed advice. For instance, is your redis instance in the same machine as Kamailio? Are you using unix sockets or tcp sockets? Can you run kamailio in debig mode to see any potentially helpful message?
Javi On 06/03/15 08:04, Yuriy Gorlichenko wrote:
arrives kamailio stil disconnects from redis. Haw can I debug this deeper?
modparam("ndb_redis", "server", "name=srv1;addr=non_local_serv;port=6379;db=4;pass=mypass")
[TOASTERISK] redis_cmd("srv1", "EXISTS $si", "s"); xlog("L_INFO","ASTERISK with ip $si is {$redis(s=>value)}"); $var(setid)=0; if ($redis(s=>value) == 0) { xlog("L_INFO","Request {$rm} from $si != {$var(dest)} It means call NOT from ASTRISK"); }
Ok/ I will try to do it with debug
2015-03-06 10:51 GMT+03:00 Javi Gallart jgallart@systemonenoc.com:
Unless you send the relevant part of your configuration and of the restults the tests I proposed it is really diificult to provide more detailed advice. For instance, is your redis instance in the same machine as Kamailio? Are you using unix sockets or tcp sockets? Can you run kamailio in debig mode to see any potentially helpful message?
Javi On 06/03/15 08:04, Yuriy Gorlichenko wrote:
arrives kamailio stil disconnects from redis. Haw can I debug this deeper?
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users