2010/7/20 RAJNIKANT VANZA <rajnivanza(a)gmail.com>om>:
Hi Guys,
I have 2 kamailio servers.
I need to load balancing for this 2 kamailio servers.
Scenario:
------------
Each kamailio server call limit is 5000 approx.
kamailio server 1
kamailio server 2
If kamailio server 1 reach call limit (5000) then call go on kamailio server
2.
What is the best way for achieve this?
A workaround could be kamailio-1 to manage the total of dialogs (by
using dialog module) and reply a 302 with a header "Contact:
sip:ORIGINAL_RURI_USERNAME@IP_KAMAILIO_2" when the number of dialog is
5000 or greater. Then the clients would repeat the call to the second
kamailio. This won't work in case the clients have configured
kamailio-1 as outbound-proxy as they would remain sending the second
INVITE to the same kamailio-1.
A more clean design would involve a stataless balanding proxy in front
of both kamailio-1 and kamailio-2.