<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>25 jun 2013 kl. 14:34 skrev Ali Jawad <<a href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>>:</div><br class="Apple-interchange-newline"><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 style="">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 style=""><br></div><div style="">kamctl ul --show does display all users correctly. </div><div style=""><br></div><div style="">However the database table only contains a few entries.</div></div></div></blockquote><div><br></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 dir="ltr"><div><div style=""><br></div><div style="">My location settings are :</div>

<div style=""><br></div><div style=""><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 style="">Please advice </div><div style=""><br></div><div style=""><br></div></div><div dir="ltr"><div><font><font color="#888888"><b><br></b></font></font><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">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></body></html>