<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 1/25/13 4:16 AM, MASebastian wrote:<br>
</div>
<blockquote cite="mid:DUB002-W24FDC41761E6DB1AE86055DC1B0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:微软雅黑
}
--></style>
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>Recently I work on kamailio's snmpstats module. <span
style="font-size: 12pt; ">I'm trying to retrieve some data
from database, the code pass the compilation but when
starting kamailio always get this error.</span></div>
<div><span style="font-size: 12pt; "><br>
</span></div>
<div>Jan 25 10:57:05 localhost kamailio: ERROR: <core>
[sr_module.c:572]: ERROR: load_module: could not open module
</usr/local/lib/kamailio/modules_k/snmpstats.so>:
/usr/local/lib/kamailio/modules_k/snmpstats.so: undefined
symbol: db_bind_mod </div>
<div><br>
</div>
<div><span style="font-size: 12pt; "> I take the code from </span></div>
<div><a moz-do-not-send="true"
href="http://www.asipto.com/pub/kamailio-devel-guide/#c09database">http://www.asipto.com/pub/kamailio-devel-guide/#c09database</a> and
ursloc module for example. not sure </div>
<div>if I still miss something to make db access work. </div>
<div><br>
</div>
<div>Any suggestion? <br>
</div>
</div>
</blockquote>
<br>
if you changed the module to connect to database, you have to update
its database to link to srdb1 lib -- see a Makefile from another
module connecting to database (like auth_db, msilo...).<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote cite="mid:DUB002-W24FDC41761E6DB1AE86055DC1B0@phx.gbl"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div><br>
</div>
<div>Sebastian</div>
<div><br>
</div>
<div><span style="font-size: 12pt; "><br>
</span></div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
- <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
</body>
</html>