[Kamailio-Users] Load Balancing Asterisk using Kamailio

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 27 15:02:12 CEST 2009


Hello,

On 04/27/2009 07:10 AM, Kurt Weasel wrote:
> Hi,
>
> I searched around the web to load balance asterisk servers and found 
> Kamailio for possible solution. Let's say I have two identical 
> asterisk servers with same dialplan and configuration and I want both 
> servers look like they have same IP address from clients. Based on my 
> understanding, we need 1 Kamailio as load balancer and 2 Asterisk 
> servers as the real servers. Let's say the setup is :
>
> Kamailio load balancer 192.168.2.1
> Asterisk Server #1 192.168.2.2
> Asterisk Server #2 192.168.2.3
>
> My question is, X-Lite softphone Configuration should be set to domain 
> 192.168.2.1, right?
>
> I also want to know the step by step configuration to set kamailio as 
> load balancer. I have not used Kamailio before. However after 
> searching the documentation, the step (based on my understanding) is 
> somewhat like this :
>
> 1. Install Kamailio. I will use the step by step here : 
> http://kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn
>
> 2. Then, using dipatcher module, I will configure it using this guide 
> here : 
> http://kamailio.org/dokuwiki/doku.php/asterisk:load-balancing-and-ha
> Then modify the dispatcher.list file to match the IP address of my 
> asterisk servers :
>
> /1 sip:192.168.2.2:5060 <http://192.168.2.2:5060>
> 1 sip:192.168.2.3:5060 <http://192.168.2.3:5060>/
>
> Am I missing some steps?
> Do I also need to configure dialplan or any other file at Kamailio 
> load balancer? Or those two steps basically done it all for simple 
> load balancing configuration? Thanks for your responses.
these steps are ok if you do not deal with NAT. If yes, then things get 
a bit more complex, you need PATH support on load balancer, but AFAIK, 
Asterisk does not support it -- maybe I am wrong.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the Users mailing list