Hello, I'm interested with loadbalancer with kamailio in this thread. Because i follow the step on this thread i still can't dispacth a call from sip phone where i register on kamailio server. here my setup servers: Kamailio load balancer 192.168.0.208 Asterisk Server #1 192.168.0.253 Asterisk Server #2 192.168.0.209
on softphone i register on 192.168.0.208. I confused on step two on this thread. 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. because the original kamailio.cfg doesn't content this : if ( method=="INVITE" ) { # dst_select( "GROUP", "HASH METHOD") ds_select_dst("1","4"); sl_send_reply("100","Trying"); forward();#uri:host, uri:port); exit(); }
or this if ( method=="INVITE" ) { dst_select_domain("1","4"); # you can also add prefixes, if you need to send account codes # like: # prefix("123456"); sl_send_reply("300","Redirect"); exit; }
I'm sori because i'm beginner. :d here is my config file for kamailio.cfg :
loadmodule "dispatcher.so" # account only INVITEs if (is_method("INVITE")) { #setflag(1); # do accounting ds_select_domain("1","4"); # you can also add prefixes, if you need to send account codes # like: # prefix("123456"); sl_send_reply("100","Trying"); forward(); exit; }
this my dispacther.list : # sip server 1 sip:192.168.0.209:5060 1 sip:192.168.0.253:5060
Is I miss some step on this thread? May I know the configuration file of kamailio.cfg and the dispacther.list can you share me a high availability loadbalance sip. Thanks for your help.
Best regards,
Irvan Kurniawan Indonesia
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 :
- Install Kamailio. I will use the step by step here :
http://kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn
- 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 1 sip: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.
Best Regard, Kurt Weasel.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users