[SR-Users] Creating array out of hashtable
aftnix at gmail.com
Tue Sep 9 10:20:29 CEST 2014
Thanks for the reply. It was very helpful.
On Mon, Sep 8, 2014 at 3:38 PM, Daniel-Constantin Mierla
<miconda at gmail.com> wrote:
> On 08/09/14 10:50, aft wrote:
>> Is it possible to iterate a htable without using "keys" like an array?
> there is no possibility to iterate the hash table from configuration file.
> The structure is stored in memory, with locks per slots, to be optimized for
> parallel processing.
> For a consistent iteration, the lock has to be at hash table level, which
> will impact the performances a lot.
> An alternative would be to add iteration still using the locks on slots, but
> that means new items can be added/removed/updated in other slots while
> walking on a slot. So it is not like taking a snapshot of hash table content
> at a specific time.
> Also, maybe you can provide more details about what you need to achieve,
> there could be other options to try.
>>  Is it possible to search for "keys" using regxp?
> It is possible to count items by regular expression matching on key or
> value, see:
> As well as deleting items:
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
More information about the sr-users