Hello,

 

yes, it’s possible to do this also with htable:

 

https://kamailio.org/docs/modules/5.5.x/modules/htable.html#idm33

“The module also provides a way to store multiple values for a single key. This is emulated by storing individual keys as 'key_name[n]', where n is incremented for each key. The total number of keys is stored in a dedicated key, by default: 'key_name::size'.

The array is built when the table is loaded in memory and afterwards all the keys are treated as individual keys. If a particular entry in the array is deleted, it is the administrator's responsibility to update the size of the array and any other elements (if required).”

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Monday, November 15, 2021 8:54 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] xavp functionnality in htable

 

No, but you could easily store nonscalar values like JSON blobs and deserialise them with the help of the jansson module, and iterate through array values.

Sent from mobile, with due apologies for brevity and errors.



On Nov 15, 2021, at 2:42 PM, Patrick Karton <patrickarton@hotmail.com> wrote:



hello,

 

do we have something like xavp in htable or a module that implements having multiple values in stack like xavp but not tied to transaction.

 

i want data be seen by all processes but with the functionnality of xavp.

 

Thanks.

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
 * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
 * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users