<div dir="ltr">That is logical, however in that case shouldn't the location table in memory be also missing entries ?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 3:37 PM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>25 jun 2013 kl. 14:34 skrev Ali Jawad <<a href="mailto:ali.jawad@splendor.net" target="_blank">ali.jawad@splendor.net</a>>:</div>

<div class="im"><br><blockquote type="cite"><div dir="ltr">Dear All<div><br></div><div>I had an issue with my kamailio that non-registered users were able to send calls "I.e. similar to Asterisk Peer mode" . So I did add the following statement </div>

<div>

<br></div><div><div>if(!reg_fetch_contacts("location", "$fu", "caller"))</div><div>{</div><div>   sl_send_reply("403", "Please register first");</div><div>   exit;</div><div>



}</div><div><br></div><div>That did fix the the problem with my registration issues, however as a a side effect the location table is not updated anymore and this broke a few scripts I use to maintain a few aspects of my system. </div>



<div><br></div><div>kamctl ul --show does display all users correctly. </div><div><br></div><div>However the database table only contains a few entries.</div></div></div></blockquote><div><br></div></div>It all depends on where you added the code, so it's very hard for any on the list to help you.</div>

<div>You might have a problem that REGISTER statements get checked here too and you want</div><div>to avoid that to get them actually to successfully register. EIther add a check if method</div><div>is not equal REGISTER or that it is equal INVITE depending upon what you want to do.</div>

<div><br></div><div>Regards</div><div>/Olle</div><div><br><blockquote type="cite"><div class="im"><div dir="ltr"><div><div><br></div><div>My location settings are :</div>

<div><br></div><div><div># ----- usrloc params -----</div><div>/* enable DB persistency for location entries */</div><div>#!ifdef WITH_USRLOCDB</div><div>modparam("usrloc", "timer_interval", 1)</div>

<div>modparam("usrloc", "db_url", DBURL)</div><div>modparam("usrloc", "db_mode", 2)</div><div>modparam("usrloc", "use_domain", MULTIDOMAIN)</div><div>#!endif</div>



<div><br></div><div><br></div><div>Please advice </div><div><br></div><div><br></div></div><div dir="ltr"><div><font><font color="#888888"><b><br></b></font></font><div><div></div></div></div>

</div>
</div></div></div>
_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br></blockquote></div><br></div><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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font><font color="#888888"><b>Ali Jawad    <br></b></font></font><div><div><font><font color="#888888"><b>Information Systems Manager<br><font size="1">CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA</font><br>

</b></font></font></div><div><font><font color="#888888"><b>Splendor Telecom <span style="background-color:rgb(255,255,255)">(</span><span style="background-color:rgb(51,51,255);color:rgb(51,102,255)"><a href="http://www.splendor.net/" target="_blank"><span style="background-color:rgb(255,255,255)"><font color="#3366ff">www.splendor.net</font></span></a></span><span style="background-color:rgb(255,255,255)">)</span><br>


Beirut, Lebanon<br>Phone: +9611373725/ext 116<br>FAX: +9611375554<br><br></b></font></font><div><div></div></div></div></div></div>
</div>