<div dir="ltr"><div>Dear Henning,</div><div>Thanks for your reply. <br></div><div>Replication works correctly (this can be confirmed by kamctl ul show, which shows contacts on all servers). However the lookup() function does not find it!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 16, 2019 at 1:48 PM Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
not sure if I understood the question correctly. There is nothing special regarding the user location query. Just use the standard lookup location function from usrloc module. If the replication works correctly, both Kamailio should have the data in memory
 available (depending on your usrloc cfg mode).</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Cheers,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Henning<br>
</div>
<div id="gmail-m_5807281385515271007appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5807281385515271007divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> im Auftrag von Gholamreza Sabery <<a href="mailto:gr.sabery@gmail.com" target="_blank">gr.sabery@gmail.com</a>><br>
<b>Gesendet:</b> Sonntag, 16. Juni 2019 10:08<br>
<b>An:</b> Kamailio (SER) - Users Mailing List<br>
<b>Betreff:</b> [SR-Users] Querying in-memory location table (dmq_usrloc)</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>I am using dmq_usrloc, to replicate user locations across multiple Kamailio instances. Everything works fine. The problem occurs when a user on Kam1 wants to call a user on Kam2. How can I query the in-memory location table to see where the user is registered?</div>
<div><br>
</div>
<div>PS: I use a Path header to specify the server that each user is registered on.<br>
</div>
</div>
</div>
</div>

</blockquote></div>