<p>For the record. This should probably be improved to handle in-memory contacts as well, since this can now be binary-replicated (right?)</p>

<p>16:28 &lt; lirakis&gt; bogdan_vs, if there was a "smart" nat ping ... then i think you could do distributed usrloc out of the box with replication, path headers, and a smart nat ping<br>
...<br>
16:31 &lt; wdoekes&gt; lirakis: smart nat ping? do you mean: <a href="https://github.com/OpenSIPS/opensips/pull/127" class="issue-link" title="Add listen interface (socket) checking to db based natping.">#127</a> ?<br>
16:32 &lt; lirakis&gt; wdoekes, yes<br>
16:33 &lt; lirakis&gt; was ... this merged?<br>
16:33 &lt; wdoekes&gt; no<br>
16:33 &lt; lirakis&gt; but yeah<br>
16:34 &lt; lirakis&gt; i mean ... we do this already with our own custom usrloc stuff<br>
16:34 &lt; lirakis&gt; im just saying for "out of the box" functionality<br>
16:34 &lt; lirakis&gt; i think that would be the only thing missing that i can think of<br>
16:34 &lt; wdoekes&gt; one could poke razvan to get it merged<br>
16:35 &lt; lirakis&gt; razvan ... poke<br>
16:35 &lt; lirakis&gt; he he<br>
16:35 &lt; wdoekes&gt; =)<br>
16:35 &lt; lirakis&gt; so .. you are actually just changing usrloc to return only local contacts from get_all_u_contacts ?<br>
16:36 &lt; lirakis&gt; but ... are you actually stlil getting contacts on other servers when you do a lookup ?<br>
16:36 &lt; lirakis&gt; b/c i would still wan that behavior<br>
16:36 &lt; lirakis&gt; so you can use path headers to route from an adjecent proxy to the "home" proxy<br>
16:36 &lt; lirakis&gt; wdoekes, not sure if im being clear<br>
16:38 &lt; wdoekes&gt; it's only the "get_all" that is affected<br>
16:38 &lt; wdoekes&gt; and then only the db-version<br>
16:38 &lt; wdoekes&gt; so for your binary replication, we may need to improve the patch<br>
16:39 &lt; lirakis&gt; ah<br>
16:39 &lt; lirakis&gt; ok<br>
16:39 &lt; wdoekes&gt; the get_all is only called from nathelper (afaics)<br>
16:39 &lt; lirakis&gt; right<br>
16:39 &lt; lirakis&gt; vs "lookup"<br>
16:39 &lt; wdoekes&gt; correct<br>
16:39 &lt; lirakis&gt; cool<br>
16:40 &lt; wdoekes&gt; I don't store users in mem, so I didn't need that. but I see how that could be an improvement<br>
16:41 &lt; wdoekes&gt; (and probably, the get_all_ should be renamed to get_all_local or something)<br>
...<br>
16:41 &lt; lirakis&gt; but again - im just thinking about generic out of the box functionality</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/pull/127#issuecomment-43891801'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNjM4NjUzMCwiZGF0YSI6eyJpZCI6MjAyNjE1NTR9fQ==--a79f20c3b14a6698a23165848b1cc556f53b8b87.gif' height='1' width='1'></p>