<div dir="ltr">Hi.<div><br></div><div>I have just written routing logic for my new sip-proxy server, but have a problem with start of kamailio.</div><div><br></div><div>./kamailio.cfg file has no mistakes - it's made well done.</div><div><br></div><div>before to start coding with routing logic, of course I installed kamailio (ver 4.3.4) from repository.</div><div>OS - ubuntu 16.04</div><div><br></div><div>and add next modules from repository:</div><div>kamailio-mysql-modules:amd64<br></div><div>kamailio-perl-modules:amd64<br></div><div>kamailio-radius-modules:amd64<br></div><div>kamailio-tls-modules:amd64<br></div><div>kamailio-utils-modules:amd64<br></div><div><br></div><div>next step, I edited the ./kamctlrc file to contain proper user/password and mysql engine settings.</div><div>And than, ran the kamdbctl create (without special parameters).</div><div><br></div><div>A bit about my kamailio.cfg :</div><div>fork=yes<br>children=4<br></div><div>disable_tcp=no</div><div>tcp_children=4<br></div><div>tcp_send_timeout=3<br></div><div>tcp_connect_timeout=5<br></div><div>tcp_connection_lifetime=3600<br></div><div>tcp_max_connections=4096<br></div><div><br></div><div>of course mpath is defined and proper modparams (depending on my ver) for modules are used.</div><div><br></div><div>A bit about my kamctlrc:<br>Ro and rw user are defined (and connections to needed db from these users is checked, as like it was real kamailio that tries to update some values in db - well done).</div><div><br></div><div>Also PID_FILE and FIFOPATH are defined (/var/run/kamailio dir. created)</div><div><br></div><div>So that, now I'm trying to start the server as a daemon, I have the following row in systemctl:<br>ERROR: db_mysql [km_my_con.c:124]: db_mysql_new_connection(): driver error: Access denied for user 'kamailioro'@'localhost' (using password: YES)<br></div><div><br></div><div>And of course all other modules can't run because they depend on the db connections.</div><div>So looks like very simple problem, just need to edit mysql user table to have proper passwords.</div><div><br></div><div>But I've refurbished ro and rw user several times, it didn't help me.</div><div>Also tried to drop kamailio db with db users and run kamdbctl create again - nothing changed.</div><div><br></div><div>I tried to find where kamailioro user can be defined as default, but didn't find any files (apart of kamctlrc in /etc/kamailio directory).</div><div>/etc/default/kamailio file contains proper values and paths.</div><div><br></div><div>Please advise something.</div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span>-- <br></span>BR, Donat Zenichev
<br>Wnet VoIP team
<br>Tel:  +380(44) 5-900-808
<br><a href="http://wnet.ua" target="_blank">http://wnet.ua</a></div></div>
</div></div>