<div dir="ltr">Thanks.<div>I am using DB only mode.</div><div>There will be a number of servers in the end, so i will have to look further into the issue I guess, since assumptions were made about how Kamailio works.</div>
<div>From what I can tell, I think I will have to implement the outbound module and a central registrar.</div><div><br></div><div>Thanks again for the replies.</div><div><br></div><div>- Coy</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Oct 15, 2013 at 5:46 AM, Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
First, if 2 servers share the same DB, then userloc must be switched to DB-only mode:<br>
<a href="http://kamailio.org/docs/modules/4.0.x/modules/usrloc.html#idp16939424" target="_blank">http://kamailio.org/docs/<u></u>modules/4.0.x/modules/usrloc.<u></u>html#idp16939424</a><br>
<br>
But this leads you to another problem. As Fred already mentioned, SIP clients (or the NAT of the user) often refuse messages which are not received from the proxy to which the registration was sent.<br>
<br>
The best solution depends on what you exactly want to achieve and how many servers you want to add. But a simple workaround would be:<br>
- both proxies use their own DB<br>
- if lookup() fails, then<br>
  - if requests comes from other proxy -> send 404<br>
  - if request comes from user -> forward to other proxy<br>
<br>
regards<span class="HOEnZb"><font color="#888888"><br>
Klaus</font></span><div><div class="h5"><br>
<br>
On 14.10.2013 23:12, Coy Cardwell wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi All. Fist time poster here, long time geek.<br>
<br>
I am trying to get Kamilio to work in the following configuration and<br>
after days of googling and configuration attempts, I have come here for<br>
help.<br>
<br>
Two servers, both sharing the same database. Server1, Server2. Both<br>
servers are behind a NAT (AWS).<br>
<br>
If I set the DNS to return both IP addresses for the domain on the A<br>
record, everything works, all is well.<br>
<br>
If I set the DNS to return values based on latency and the Calling<br>
Client gets Server1's IP Address but the Receiving Client is registered<br>
to Server2, the call fails from a timeout. I can see the attempt to go<br>
through at the packet level and a 'non-local' socket message as well.<br>
<br>
If the DNS returns Server2's IP Address and the Receiving Client is<br>
registered to Server2, the call completes.<br>
<br>
I have tried numerous variations of the various 'path' and 'registrar'<br>
options with any joy. I tried making one of the servers the central<br>
registrar as well. I am not entirely sure I ever set everything<br>
correctly, but I have tried numerous combinations.<br>
<br>
Any thoughts would be appreciated, I only ask this as I think I have<br>
exhausted my own list of things to try.<br>
<br>
Thanks.<br>
<br>
- Coy Cardwell<br>
<br>
<br></div></div><div class="im">
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</div></blockquote>
</blockquote></div><br></div>