<div dir="ltr">Are you able to connect to the local Mysql DB using:<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">modparam(&quot;usrloc&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@</span><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">localhost/opensips&quot;)</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">use: mysql -p</span><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">opensipsrw -u opensips -D opensips</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">We have to make sure the database exists first and that you are able to connect to it.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">W</span></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Oct 30, 2013 at 5:01 PM, Luis Pérez Urteaga <span dir="ltr">&lt;<a href="mailto:devicer@hotmail.com" target="_blank">devicer@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">Hi Wilmar,<br>
 <br>
This in my configuration:<br>
 <br><span lang="ES-PE">
#<br>
# $Id$<br>
#<br>
# OpenSIPS residential configuration script<br>
# by OpenSIPS Solutions &lt;<a href="mailto:team@opensips-solutions.com" target="_blank">team@opensips-solutions.com</a>&gt;<br>
#<br>
# This script was generated via &quot;make menuconfig&quot;, from<br>
# the &quot;Residential&quot; scenario.<br>
# You can enable / disable more features / functionalities by<br>
# re-generating the scenario with different options.#<br>
#<br>
# Please refer to the Core CookBook at:<br>
# <a href="http://www.opensips.org/Resources/DocsCookbooks" target="_blank">http://www.opensips.org/Resources/DocsCookbooks</a><br>
# for a explanation of possible statements, functions and parameters.<br>
#<br>
 <br>
####### Global Parameters #########<br>
debug=3<br>
log_stderror=no<br>
log_facility=LOG_LOCAL0<br>
fork=yes<br>
children=4<br>
/* uncomment the following lines to enable debugging */<br>
#debug=6<br>
#fork=no<br>
#log_stderror=yes<br>
/* uncomment the next line to enable the auto temporary blacklisting of <br>
not available destinations (default disabled) */<br>
#disable_dns_blacklist=no<br>
/* uncomment the next line to enable IPv6 lookup after IPv4 dns <br>
lookup failures (default disabled) */<br>
#dns_try_ipv6=yes<br>
/* comment the next line to enable the auto discovery of local aliases<br>
based on revers DNS on IPs */<br>
auto_aliases=no<br>
 <br>
listen=udp:<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a> # CUSTOMIZE ME<br>
 <br>
disable_tcp=no<br>
disable_tls=yes<br>
 <br>
####### Modules Section ########<br>
#set module path<br>
mpath=&quot;/usr/local/lib64/opensips/modules/&quot;<br>
loadmodule &quot;db_mysql.so&quot;<br>
loadmodule &quot;auth.so&quot; <br>
#loadmodule &quot;auth_db.so&quot;<br>
#modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
#modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
 <br>
 <br>
#### SIGNALING module<br>
loadmodule &quot;signaling.so&quot;<br>
#### StateLess module<br>
loadmodule &quot;sl.so&quot;<br>
#### Transaction Module<br>
loadmodule &quot;tm.so&quot;<br>
modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 5)<br>
modparam(&quot;tm&quot;, &quot;fr_inv_timer&quot;, 30)<br>
modparam(&quot;tm&quot;, &quot;restart_fr_on_each_reply&quot;, 0)<br>
modparam(&quot;tm&quot;, &quot;onreply_avp_mode&quot;, 1)<br>
#### Record Route Module<br>
loadmodule &quot;rr.so&quot;<br>
/* do not append from tag to the RR (no need for this script) */<br>
modparam(&quot;rr&quot;, &quot;append_fromtag&quot;, 0)<br>
#### MAX ForWarD module<br>
loadmodule &quot;maxfwd.so&quot;<br>
#### SIP MSG OPerationS module<br>
loadmodule &quot;sipmsgops.so&quot;<br>
#### FIFO Management Interface<br>
loadmodule &quot;mi_fifo.so&quot;<br>
modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;)<br>
modparam(&quot;mi_fifo&quot;, &quot;fifo_mode&quot;, 0666)<br>
 <br>
#### URI module<br>
loadmodule &quot;uri.so&quot;<br>
modparam(&quot;uri&quot;, &quot;use_uri_table&quot;, 0)<br>
#### USeR LOCation module<br>
loadmodule &quot;usrloc.so&quot;<br>
modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, &quot;NAT&quot;)<br>
##modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,0)<br>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>
modparam(&quot;usrloc&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>
#### REGISTRAR module<br>
loadmodule &quot;registrar.so&quot;<br>
modparam(&quot;registrar&quot;, &quot;tcp_persistent_flag&quot;, &quot;TCP_PERSISTENT&quot;)<br>
/* uncomment the next line not to allow more than 10 contacts per AOR */<br>
#modparam(&quot;registrar&quot;, &quot;max_contacts&quot;, 10)<br>
#### ACCounting module<br>
loadmodule &quot;acc.so&quot;<br>
/* what special events should be accounted ? */<br>
modparam(&quot;acc&quot;, &quot;early_media&quot;, 0)<br>
modparam(&quot;acc&quot;, &quot;report_cancels&quot;, 0)<br>
/* by default we do not adjust the direct of the sequential requests.<br>
if you enable this parameter, be sure the enable &quot;append_fromtag&quot;<br>
in &quot;rr&quot; module */<br>
modparam(&quot;acc&quot;, &quot;detect_direction&quot;, 0)<br>
modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;, &quot;ACC_FAILED&quot;)<br>
/* account triggers (flags) */<br>
modparam(&quot;acc&quot;, &quot;log_flag&quot;, &quot;ACC_DO&quot;)<br>
modparam(&quot;acc&quot;, &quot;log_missed_flag&quot;, &quot;ACC_MISSED&quot;)<br>
 <br>
####### Routing Logic ########<br>
# main request routing logic<br>
route{<br>
if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>
sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>
exit;<br>
}<br>
if (has_totag()) {<br>
# sequential requests within a dialog should<br>
# take the path determined by record-routing<br>
if (loose_route()) {<br>
<br>
if (is_method(&quot;BYE&quot;)) {<br>
setflag(ACC_DO); # do accounting ...<br>
setflag(ACC_FAILED); # ... even if the transaction fails<br>
} else if (is_method(&quot;INVITE&quot;)) {<br>
# even if in most of the cases is useless, do RR for<br>
# re-INVITEs alos, as some buggy clients do change route set<br>
# during the dialog.<br>
record_route();<br>
}<br>
# route it out to whatever destination was set by loose_route()<br>
# in $du (destination URI).<br>
route(relay);<br>
} else {<br>
<br>
if ( is_method(&quot;ACK&quot;) ) {<br>
if ( t_check_trans() ) {<br>
# non loose-route, but stateful ACK; must be an ACK after <br>
# a 487 or e.g. 404 from upstream server<br>
t_relay();<br>
exit;<br>
} else {<br>
# ACK without matching transaction -&gt;<br>
# ignore and discard<br>
exit;<br>
}<br>
}<br>
sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>
}<br>
exit;<br>
}<br>
# CANCEL processing<br>
if (is_method(&quot;CANCEL&quot;))<br>
{<br>
if (t_check_trans())<br>
t_relay();<br>
exit;<br>
}<br>
t_check_trans();<br>
if ( !(is_method(&quot;REGISTER&quot;) ) ) {<br>
if (from_uri==myself)<br>
{<br>
} else {<br>
# if caller is not local, then called number must be local<br>
if (!uri==myself) {<br>
send_reply(&quot;403&quot;,&quot;Rely forbidden&quot;);<br>
exit;<br>
}<br>
}<br>
}<br>
# preloaded route checking<br>
if (loose_route()) {<br>
xlog(&quot;L_ERR&quot;,<br>
&quot;Attempt to route with preloaded Route&#39;s [$fu/$tu/$ru/$ci]&quot;);<br>
if (!is_method(&quot;ACK&quot;))<br>
sl_send_reply(&quot;403&quot;,&quot;Preload Route denied&quot;);<br>
exit;<br>
}<br>
# record routing<br>
if (!is_method(&quot;REGISTER|MESSAGE&quot;))<br>
record_route();<br>
# account only INVITEs<br>
if (is_method(&quot;INVITE&quot;)) {<br>
<br>
setflag(ACC_DO); # do accounting<br>
}<br>
if (!uri==myself) {<br>
append_hf(&quot;P-hint: outbound\r\n&quot;); <br>
route(relay);<br>
}<br>
# requests for my domain<br>
if (is_method(&quot;PUBLISH|SUBSCRIBE&quot;))<br>
{<br>
sl_send_reply(&quot;503&quot;, &quot;Service Unavailable&quot;);<br>
exit;<br>
}<br>
if (is_method(&quot;REGISTER&quot;))<br>
{<br>
if ( 0 ) setflag(TCP_PERSISTENT);<br>
if (!save(&quot;location&quot;))<br>
sl_reply_error();<br>
exit;<br>
}<br>
if ($rU==NULL) {<br>
# request with no Username in RURI<br>
sl_send_reply(&quot;484&quot;,&quot;Address Incomplete&quot;);<br>
exit;<br>
}<br>
# do lookup with method filtering<br>
if (!lookup(&quot;location&quot;,&quot;m&quot;)) {<br>
t_newtran();<br>
t_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>
exit;<br>
} <br>
# when routing via usrloc, log the missed calls also<br>
setflag(ACC_MISSED);<br>
route(relay);<br>
}<br>
 <br>
route[relay] {<br>
# for INVITEs enable some additional helper routes<br>
if (is_method(&quot;INVITE&quot;)) {<br>
t_on_branch(&quot;per_branch_ops&quot;);<br>
t_on_reply(&quot;handle_nat&quot;);<br>
t_on_failure(&quot;missed_call&quot;);<br>
}<br>
if (!t_relay()) {<br>
send_reply(&quot;500&quot;,&quot;Internal Error&quot;);<br>
};<br>
exit;<br>
}<br>
 <br>
 <br>
 <br>
branch_route[per_branch_ops] {<br>
xlog(&quot;new branch at $ru\n&quot;);<br>
}<br>
 <br>
onreply_route[handle_nat] {<br>
<br>
xlog(&quot;incoming reply\n&quot;);<br>
}<br>
 <br>
failure_route[missed_call] {<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
# uncomment the following lines if you want to block client <br>
# redirect based on 3xx replies.<br>
##if (t_check_status(&quot;3[0-9][0-9]&quot;)) {<br>
##t_reply(&quot;404&quot;,&quot;Not found&quot;);<br>
## exit;<br>
##}<br>
}<br>
</span><br> <br>
<div>
<hr>
Date: Wed, 30 Oct 2013 16:30:19 -0400<br>From: <a href="mailto:wilmar.campos@gmail.com" target="_blank">wilmar.campos@gmail.com</a><br>To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Help - WARNING: database engine not found - tried &#39;MYSQL&#39;<div><div class="h5"><br><br>
<div dir="ltr">Hi Luis, 
<div>Can you include the configuration you have for the mysql DB in the opensips.cfg file?</div>
<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>W</div></div>
<div><br><br>
<div>On Wed, Oct 30, 2013 at 4:09 PM, Luis Pérez Urteaga <span dir="ltr">&lt;<a href="mailto:devicer@hotmail.com" target="_blank">devicer@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex">
<div>
<div dir="ltr"><span lang="en"><span><span lang="en"><span>I could</span> <span>compile</span> <span>OpenSIPS</span> <span>but</span> <span>when I try to</span> <span>start it,</span> <span>I get the following</span> <span>error:</span><br>
<br><span>WARNING</span><span>:</span> <span>database engine</span> <span>not found -</span> <span>tried</span> <span>&#39;</span><span>MYSQL</span><span>&#39;</span><br><br><span>Db_mysql.so</span> <span>file</span> <span>was created</span> <span>but</span> <span>not copied</span> <span>in the folder</span> <span>./usr/local/lib64/opensips/modules</span> <span>/ so</span> <span>I copied</span> <span>by hand.</span><br>
<br><span>The error</span> <span>still remains.</span> ¿<span>Does anyone know</span> <span>why</span> <span>this happens</span><span>?</span></span></span></span> </div></div><br>_______________________________________________<br>
Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div><br>_______________________________________________ Users mailing list <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
</div></div>                                               </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>