[SR-Users] Issue with Location table

Ali Jawad ali.jawad at splendor.net
Tue Jun 25 14:34:34 CEST 2013


Dear All

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

if(!reg_fetch_contacts("location", "$fu", "caller"))
{
   sl_send_reply("403", "Please register first");
   exit;
}

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.

kamctl ul --show does display all users correctly.

However the database table only contains a few entries.

My location settings are :

# ----- usrloc params -----
/* enable DB persistency for location entries */
#!ifdef WITH_USRLOCDB
modparam("usrloc", "timer_interval", 1)
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
#!endif


Please advice


*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130625/667b68e6/attachment.html>


More information about the sr-users mailing list