to "define WITH_AUTH", your config file must contain the following line:
#!define WITH_AUTH"
Hope that helps, -Vlada
On 07/25/2011 03:51 PM, Henrik Aagaard Sørensen wrote:
Thank you for looking at the cfg-file.
I've tried to read it and Googled a lot, but couldn't find anything wrong with my config-file.
It says: # *** To enable authentication execute: # - enable mysql # - define WITH_AUTH # - add users using 'kamctl'
I've done the above, even though I don't know how to "define WITH_AUTH". Also , the code later on: route[AUTH] { #!ifdef WITH_AUTH if (is_method("REGISTER")) { # authenticate the REGISTER requests (uncomment to enable auth) if (!www_authorize("$td", "subscriber")) { www_challenge("$td", "0"); exit; }
if ($au!=$tU) { sl_send_reply("403","Forbidden auth ID"); exit; } } else {
says uncomment to enable auth. But it is already uncommented.
On Mon, Jul 25, 2011 at 3:48 PM, Klaus Darilion <klaus.mailinglists@pernau.at mailto:klaus.mailinglists@pernau.at> wrote:
The default config file does not use authentication. See /etc/kamailio/kamailio.cfg and read it - it is self-explanatory, just configure the "define" parameters to activate certain features. regards Klaus Am 24.07.2011 19 <tel:24.07.2011%2019>:18, schrieb Henrik Aagaard Sørensen: > I've installed Kamailio on Ubuntu 10.04 LTS > via:http://www.kamailio.org/dokuwiki/doku.php/packages:debs > > Updated /etc/kamailio/kamctlrc with: SIP_DOMAIN=MY-IP DBENGINE=MYSQL > > I've also installed the kamailio-mysql-modules via apt-get. > > Then I've run kamdbctl create and created the MySQL database. > > After that I've started Kamailio via kamctl start. Success. > > At last I've added two users: kamctl add 100 PASS1 kamctl add 101 PASS2 > > Everything seems to work, but I've found out that everyone can register > and call via the server. Not only the two users/subscribers I've added. > > How come authorization isn't working? > > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org <mailto: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 <mailto: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