[Kamailio-Users] Dispatcher hash algorithms.

Henning Westerholt henning.westerholt at 1und1.de
Mon Oct 6 18:03:53 CEST 2008


On Monday 06 October 2008, Daniel-Constantin Mierla wrote:
> > don't that much about the dispatcher internals, but i think it also uses
> > the CRC32 hash. In my tests with the carrierroute module that uses this
> > too, requests over a random callid/ from user are distributed equally
> > with about +/- 5% accuracy, which i think is ok. If you need to adjust
> > the target host distribution, take a look at the hash_id functionality
> > (carrierroute config file mode), here you can specify the exact
> > destination. We use also the this approach of pre-calculating the hash
> > value that Daniel described.
>
> dispatcher is using an internal function, from hash_func.h. God to know
> you have tested with crc32, I might make it available as alternative
> hashing function for dispatcher.
>
> Cheers,
> Daniel

Hi Daniel,

ah, good to know, thanks for the clarification.

Cheers,

Henning




More information about the Users mailing list