[OpenSIPS-Users] Fwd: How to save avp-values to singal attribute name in cache_store?
xiaofeng
wasphin at gmail.com
Wed Sep 21 15:18:13 CEST 2016
On Wed, Sep 21, 2016 at 9:02 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:
>
> When you add the values in local cache, for each value you have to set a
different key. Instead of :
>
> cache_store("local", "domain", "$(avp(domains)[$var(id)])");
> do
> cache_store("local", "domain_$var(id)", "$(avp(domains)[$var(id)])");
>
> By doing that, you add one key for each domain value.
>
> Then you can iterate and fetch from cache the domain_$var(id) until
nothing is returned anymore.
>
Ah, yes, that should work, thanks, Bogdan.
Regards,
xiaofeng
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160921/fabba84f/attachment.htm>
More information about the Users
mailing list