Thank you for looking at the cfg-file.<div><br></div><div>I&#39;ve tried to read it and Googled a lot, but couldn&#39;t find anything wrong with my config-file.</div><div><br></div><div>It says:</div><div><div># *** To enable authentication execute:</div>

<div>#     - enable mysql</div><div>#     - define WITH_AUTH</div><div>#     - add users using &#39;kamctl&#39;</div><div><br></div><div>I&#39;ve done the above, even though I don&#39;t know how to &quot;define WITH_AUTH&quot;. Also , the code later on:</div>

<div><div>route[AUTH] {</div><div>#!ifdef WITH_AUTH</div><div>        if (is_method(&quot;REGISTER&quot;))</div><div>        {</div><div>                # authenticate the REGISTER requests (uncomment to enable auth)</div>

<div>                if (!www_authorize(&quot;$td&quot;, &quot;subscriber&quot;))</div><div>                {</div><div>                        www_challenge(&quot;$td&quot;, &quot;0&quot;);</div><div>                        exit;</div>

<div>                }</div><div><br></div><div>                if ($au!=$tU)</div><div>                {</div><div>                        sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);</div><div>                        exit;</div>

<div>                }</div><div>        } else {</div></div><div><br></div><div>says uncomment to enable auth. But it is already uncommented.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><br><div class="gmail_quote">

On Mon, Jul 25, 2011 at 3:48 PM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

The default config file does not use authentication. See<br>
/etc/kamailio/kamailio.cfg and read it - it is self-explanatory, just<br>
configure the &quot;define&quot; parameters to activate certain features.<br>
<br>
regards<br>
Klaus<br>
<br>
Am <a href="tel:24.07.2011%2019" value="+12407201119">24.07.2011 19</a>:18, schrieb Henrik Aagaard Sørensen:<br>
<div><div></div><div class="h5">&gt; I&#39;ve installed Kamailio on Ubuntu 10.04 LTS<br>
&gt; via:<a href="http://www.kamailio.org/dokuwiki/doku.php/packages:debs" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/packages:debs</a><br>
&gt;<br>
&gt; Updated /etc/kamailio/kamctlrc with: SIP_DOMAIN=MY-IP DBENGINE=MYSQL<br>
&gt;<br>
&gt; I&#39;ve also installed the kamailio-mysql-modules via apt-get.<br>
&gt;<br>
&gt; Then I&#39;ve run kamdbctl create and created the MySQL database.<br>
&gt;<br>
&gt; After that I&#39;ve started Kamailio via kamctl start. Success.<br>
&gt;<br>
&gt; At last I&#39;ve added two users: kamctl add 100 PASS1 kamctl add 101 PASS2<br>
&gt;<br>
&gt; Everything seems to work, but I&#39;ve found out that everyone can register<br>
&gt; and call via the server. Not only the two users/subscribers I&#39;ve added.<br>
&gt;<br>
&gt; How come authorization isn&#39;t working?<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<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>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>