25 jun 2013 kl. 14:34 skrev Ali Jawad <ali.jawad@splendor.net>:It all depends on where you added the code, so it's very hard for any on the list to help you.Dear AllI 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 statementif(!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.You might have a problem that REGISTER statements get checked here too and you wantto avoid that to get them actually to successfully register. EIther add a check if methodis not equal REGISTER or that it is equal INVITE depending upon what you want to do.Regards/Olle_______________________________________________My location settings are :# ----- usrloc params -----/* enable DB persistency for location entries */#!ifdef WITH_USRLOCDBmodparam("usrloc", "timer_interval", 1)modparam("usrloc", "db_url", DBURL)modparam("usrloc", "db_mode", 2)modparam("usrloc", "use_domain", MULTIDOMAIN)#!endifPlease advice
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users