[SR-Users] Help with load balancing Kamalio based on DNS

Daniel-Constantin Mierla miconda at gmail.com
Wed May 28 13:32:39 CEST 2014


what you can do is to route the messages to the other proxy if there is 
no contacts in the local location table, something like:

if(!lookup("location") {
     if(src_ip==_THE_OTHER_KAMAILIO_IP_) {
         send_reply("404", "Not found");
     $du = "sip:_THE_OTHER_KAMAILIO_IP_");


On 28/05/14 08:46, Veerabhara Gundu wrote:
> Hi All,
> This question might have addressed, but not able to find correct 
> answer in archives and I have spent enough time, so posting here.
> I want to load balance between 2-3 kamailio servers based on DNS, I 
> don't need to worry about media just trying IM with SIP messages.
> Configured two servers with same domain alias(example.com 
> <http://example.com>) and able to send messages between users 
> registered to one Node. But when i tried to send messages between 
> users registered to two different servers, messages are not getting 
> routed properly. When  Server A tried to reach user registered to 
> Server:B directly, firewall is not allowing. Tried to route message to 
> correct proxy  based on the socket details in Loctaion table, but not 
> able to read socket details from location table, I am getting always 
> I am sure,I  am doing something wrong with configuration, but not sure 
> and also not able to find example for this on Kamailio website. I am 
> attaching my configuration, appreciate any help.
> Thanks,
> VG
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140528/7320518f/attachment.html>

More information about the sr-users mailing list