Hi, sorry forgot to cc before.<br>
I have more questions regarding my load balancing setup.<br>
<br>
1. Since the dial plan is configured exactly on Asterisk (at
etc/asterisk/sip.conf and /etc/asterisk/extension.conf), do we need to
enable MySQL for Kamailio installation? Or the default installation
configuration will do (without additional dialplan or MySQL setting)?
My idea is only using Kamailio as pure load balancer so we hope to do
this as simple as possible without degrading the function.<br>
<br>
2. I assume using Kamailio dispatcher module will forward some of the
users to asterik server 1 and some of them to asterisk server 2. Then
if user A is registered with Asterisk server 1 and user B is registered
with Asterisk server 2, can user A call user B? Without Kamailio, the
answer is no since they are in different Asterisk server. With
Kamailio, I am expecting both user A and B can call each other although
they are registered with different servers. Is my configuration enough
to achieve this function? Or do we need some additional setup for this?<br>
<br>
Thanks again.<br>
<br>
Best Regards,<br>
Kurt<br><br><div class="gmail_quote">On Mon, Apr 27, 2009 at 8:02 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div class="im"><br>
<br>
On 04/27/2009 07:10 AM, Kurt Weasel wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi,<br>
<br>
I searched around the web to load balance asterisk servers and found Kamailio for possible solution. Let&#39;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&#39;s say the setup is :<br>

<br>
Kamailio load balancer 192.168.2.1<br>
Asterisk Server #1 192.168.2.2<br>
Asterisk Server #2 192.168.2.3<br>
<br>
My question is, X-Lite softphone Configuration should be set to domain 192.168.2.1, right?<br>
<br>
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 :<br>

<br>
1. Install Kamailio. I will use the step by step here : <a href="http://kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn" target="_blank">http://kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn</a><br>

<br>
2. Then, using dipatcher module, I will configure it using this guide here : <a href="http://kamailio.org/dokuwiki/doku.php/asterisk:load-balancing-and-ha" target="_blank">http://kamailio.org/dokuwiki/doku.php/asterisk:load-balancing-and-ha</a><br>

Then modify the dispatcher.list file to match the IP address of my asterisk servers :<br>
<br></div>
/1 sip:<a href="http://192.168.2.2:5060" target="_blank">192.168.2.2:5060</a> &lt;<a href="http://192.168.2.2:5060" target="_blank">http://192.168.2.2:5060</a>&gt;<br>
1 sip:<a href="http://192.168.2.3:5060" target="_blank">192.168.2.3:5060</a> &lt;<a href="http://192.168.2.3:5060" target="_blank">http://192.168.2.3:5060</a>&gt;/<div class="im"><br>
<br>
Am I missing some steps?<br>
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.<br>
</div></blockquote>
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.<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</font></blockquote></div><br>