[OpenSIPS-Devel] [opensips] Feature request: cache_store/cache_fetch an AVP with multiple values (#151)
c1784497
notifications at github.com
Wed Dec 18 13:58:20 CET 2013
This code tries to store and fetch an AVP with multiple values in cache:
```
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();
}
```
But with current OpenSIPS versions only the topmost value can be fetched:
```
opensips[458]: 2 destinations found!
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e47f60, 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=0x36e67d9c, 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=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.11.169:5060 / 21>
```
I would like to request a feature to make it possible to store and fetch an AVP with multiple values in cache.
Thanks in advance!
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/151
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20131218/cb23c3f1/attachment.htm>
More information about the Devel
mailing list