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
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to