<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
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:<br>
<br>
if(!lookup("location") {<br>
if(src_ip==_THE_OTHER_KAMAILIO_IP_) {<br>
send_reply("404", "Not found");<br>
exit;<br>
}<br>
$du = <a class="moz-txt-link-rfc2396E" href="sip:_THE_OTHER_KAMAILIO_IP_">"sip:_THE_OTHER_KAMAILIO_IP_"</a>);<br>
t_relay();<br>
exit;<br>
}<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 28/05/14 08:46, Veerabhara Gundu
wrote:<br>
</div>
<blockquote
cite="mid:CAJks=-kutqKPs-ApGbrSfGgU3YqG8b7DGjkZjqc_Seb=u96_9Q@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div><br>
</div>
<div>This question might have addressed, but not able to find
correct answer in archives and I have spent enough time, so
posting here. </div>
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>Configured two servers with same domain alias(<a
moz-do-not-send="true" href="http://example.com">example.com</a>)
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. </div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>VG</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>