<p dir="ltr">Hi,<br>
Interesting discussion going on. Ive to ask can OP use shared location table between different kamailio servers and use db mode 3. <br>
All he has to do is if UA B calls UA A via Kamailio2 he just needs to find the received socket and if it is not local Kamailio2 then route to the IP maybe attach a custom header and relay call to Kamailio1.<br>
Kamailio1 gets call with the custom headers sends call to route(LOCATION) or w/e he has for lookups. <br></p>
<p dir="ltr">Regards,<br>
Sammy</p>
<div class="gmail_quote">On Feb 3, 2016 06:19, "Daniel Tryba" <<a href="mailto:d.tryba@pocos.nl">d.tryba@pocos.nl</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Feb 03, 2016 at 01:48:50PM +0330, Gholamreza Sabery wrote:<br>
> Actually I think something is not clear here. Suppose I want to use two<br>
> Kamailio servers such that a client which is registered on server A is able<br>
> to call another client registered on server B. In this case I use DB_MODE<br>
> 3. Both servers have access to location database but sockets are non-local<br>
> and cleints are behind symmetric NATs.Now  only the server on which the<br>
> client is registered and sent it's request to is able to respond(because of<br>
> symmetric NAT). Is it possible to implement this scenario using Path header?<br>
<br>
This is still ambigious, server B can't call the client due to nat, but<br>
server B can call server A. The trick might be to add a Path header on<br>
server A before save the register on server A. Or to use custom queries<br>
to find out that the registered socket isn't local so send the invite to<br>
the non local adress instead.<br>
<br>
I asked similar questions:<br>
<a href="http://lists.sip-router.org/pipermail/sr-users/2015-April/087867.html" rel="noreferrer" target="_blank">http://lists.sip-router.org/pipermail/sr-users/2015-April/087867.html</a><br>
<br>
My final solution is using a really loadbalancer with static config,<br>
which adds Path and dispatches to individual backends. Difference is<br>
that server B doesn't INVITE to server A but to the loadbalancer for a<br>
client registered on server A.<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>