[SR-Users] Load Balancing
Alex Balashov
abalashov at evaristesys.com
Wed Dec 28 13:43:45 CET 2011
On 12/28/2011 07:21 AM, Ronald Kiel wrote:
> I understand Kamailio has the Dispatcher-module for load-balancing.
> OpenSIPS has both a Dispatcher-module and a LB-module, which seems
> to offer improved functionality. Is there also something like the
> LB-module in Kamailio?
No, there's nothing in Kamailio that implements what the LB module
does, exactly. However, I wouldn't call the LB module 'improved'
functionality; it extends a particular subset of 'dispatcher' in a
specific way, nothing more.
Furthermore, with Kamailio it is relatively trivial to come up with
your own load-aware routing process in route script. I think that's
one reason it doesn't get wrapped in a module. If you want to
periodically poll some outside source for load information, define a
periodic 'rtimer' process that can go out and do that:
http://www.kamailio.org/docs/modules/3.2.x/modules_k/rtimer.html
Store the results in 'htable' or some other data structure, and then
check it when routing calls. And that's all there is to it. :-) Now
you can implement skills-based routing or anything else esoteric,
because the algorithm is 100% yours to override.
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
More information about the sr-users
mailing list