[OpenSIPS-Devel] [opensips] cache_store an AVP with multiple values followed by a cache_fetch of that same AVP retrieves only the first value (#143)
c1784497
notifications at github.com
Fri Nov 29 17:55:17 CET 2013
This is the code snippet:
timer_route[test, 3]
{
...
set_count("$avp(destinations)", "$var(total_destinations)");
xlog("$var(total_destinations) destinations found!");
cache_store("local","destinations","$avp(destinations)");
cache_fetch("local","destinations", $avp(test));
avp_print();
}
This is the logging:
opensips[458]: 2 destinations found!
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e67d9c, flags=0x0002
opensips[458]: INFO:avpops:ops_print_avp: name=<test>
opensips[458]: INFO:avpops:ops_print_avp: id=<2>
opensips[458]: INFO:avpops:ops_print_avp: val_str=<sip:10.10.10.169:5060 / 21>
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e47f9c, flags=0x0002
opensips[458]: INFO:avpops:ops_print_avp: name=<destinations>
opensips[458]: INFO:avpops:ops_print_avp: id=<8>
opensips[458]: INFO:avpops:ops_print_avp: val_str=<sip:10.10.10.169:5060 / 21>
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e47f60, flags=0x0002
opensips[458]: INFO:avpops:ops_print_avp: name=<destinations>
opensips[458]: INFO:avpops:ops_print_avp: id=<8>
opensips[458]: INFO:avpops:ops_print_avp: val_str=<sip:10.10.11.169:5060 / 21>
The $avp(destinations) contains 2 values when stored with cache_store.
The $avp(test) contains only the first value when retrieved with cache_fetch.
Is this a configuration error, bug or by design? Thanks in advance!
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/143
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20131129/30404ba2/attachment.htm>
More information about the Devel
mailing list