[Kamailio-Users] question about htable size

Juha Heinanen jh at tutpro.com
Wed Sep 2 16:04:40 CEST 2009


htable module readme says abotu htable param:

size - number specifying the size of hash table. The number of entries
in the table is 2^size

does it mean the size of the hash table or how many entries can be
stored in hash table?

in lcr module, for example, lcr_hash_size param specifies the former and
there is no limit on how many entries a hash table can contain:

Defines the size of hash table used to store <prefix, from_pattern,
priority> tuples. Hashing is done based on prefix. Larger value means
less collisions with other prefixes. Hash size value should be a power
of 2.

it is the same with htable size param?

-- juha




More information about the sr-users mailing list