Hello,

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");
        exit;
    }
    $du = "sip:_THE_OTHER_KAMAILIO_IP_");
    t_relay();
    exit;
}

Cheers,
Daniel

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 NULL.

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@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

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to