[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [SR-Users] Access to multivalue responses in ndb_redis
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2011-11-28 10:54:52
Message-ID: 4ED3687C.8000908 () gmail ! com
[Download RAW message or body]

Hello,

On 11/18/11 11:46 AM, Javier Gallart wrote:
> Hello
>
> do you know if it's possible to access the different values in a 
> complex response using ndb_redis?
> For instance:
> ZREVRANGE key 0 -1
> 1) "123456"
> 2) "123"
> 3) "1"
>
> I'd like to store the first value (123456); is it possible?
at this moment only integer and string results are converted for usage 
in kamailio configuration file, for the rest of the types is returning 
$null. But should not be hard to extend, see pv_get_redisc(...) in 
modules/ndb_redis/ndb_redis_mod.c. The redis result is retrieved and 
kept, just that the conversion to config variable ignores the other 
redis result types.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda


_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic