<div dir="ltr">Maybe a restart on kamailio service wasn't done. Or maybe you're editing a different config file while kamailio is using something else !<div>Otherwise I dont see anything missing.</div><div><br></div><div>--</div><div>Sammy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 10, 2017 at 4:08 PM, Nicolas Pace <span dir="ltr"><<a href="mailto:nico@libre.ws" target="_blank">nico@libre.ws</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I'm having some trouble setting up a simple Kamailio installation with<br>
user authentication.<br>
I've installed a kamailio (4.3.4) base install on an ubuntu server<br>
16.04 (x86/64) on virtualbox, and added this lines at the beginning of<br>
the file:<br>
<br>
```<br>
#!KAMAILIO<br>
<br>
#! define WITH_MYSQL<br>
#! define WITH_AUTH<br>
#! define WITH_USRLOCDB<br>
```<br>
<br>
Also configured the db name, host, user and pass for RO and RW and run<br>
`kamdbctl create`.<br>
<br>
Everything I do was following this tutorial:<br>
<a href="http://www.kamailio.org/wiki/tutorials/getting-started/main" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/<wbr>tutorials/getting-started/main</a><br>
<br>
<br>
Based on what the tutorial says, I should have a server that only<br>
allows users that have been authenticated against the DB.<br>
<br>
The thing is that now Kamailio allows me to access, no matter what<br>
credentials I gave him (replies 200 OK to my REGISTER requests, and<br>
whows the user on the `kamctl monitor` view).<br>
<br>
I've added to this gist:<br>
* My current kamailio config<br>
* the kamailio grepped syslog<br>
* the pjsua output from when I register with an unexistent user<br>
<a href="https://gist.github.com/nicopace/9d44bf813fe309df69ff4cd0affe8324" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>nicopace/<wbr>9d44bf813fe309df69ff4cd0affe83<wbr>24</a><br>
<br>
I've already checked out some of the wiki documentation, namely:<br>
* <a href="http://www.kamailio.org/wiki/tutorials/auth/auth_db" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/<wbr>tutorials/auth/auth_db</a><br>
* <a href="http://www.kamailio.org/wiki/tutorials/getting-started/main" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/<wbr>tutorials/getting-started/main</a><br>
<br>
Am I missing something?<br>
<br>
Thanks<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>