[SR-Users] Fresh Kamailio installation doesn't require authorization.
Henrik Aagaard Sørensen
henrikaagaardsorensen at gmail.com
Mon Jul 25 15:51:36 CEST 2011
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 at 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: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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110725/69f3af50/attachment-0001.htm>
More information about the sr-users
mailing list