<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I did a test here with geoip2 module and the $gip2(...) variable
works fine.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 17.12.17 03:33, Daniel W. Graham
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:ab7c38eb8a774a93b58effe7219adb2b@exchange.intra.cmsinter.net">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle26
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:67191444;
mso-list-template-ids:-1116726500;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1
{mso-list-id:696857253;
mso-list-template-ids:865109708;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Issue on new
image was a linker config issue, (missing
</span><span style="color:windowtext">/usr/local/lib/)</span><span
style="color:windowtext">. I verified this existed on the
previous image so my best guess is the original issue was
related to selinux.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">-dan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> sr-users
[<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.kamailio.org">mailto:sr-users-bounces@lists.kamailio.org</a>]
<b>On Behalf Of </b>Daniel W. Graham<br>
<b>Sent:</b> Saturday, December 16, 2017 2:42 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>; <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
<b>Subject:</b> Re: [SR-Users] 5.0 to 5.1 - No module
matching <geoip2> found<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Didn’t
notice the issue with libmaxminddb.so.0
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"># ls -l
/usr/local/lib/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">lrwxrwxrwx 1
root root 21 Dec 15 23:00 libmaxminddb.so ->
libmaxminddb.so.0.0.7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">lrwxrwxrwx 1
root root 21 Dec 15 23:00 libmaxminddb.so.0 ->
libmaxminddb.so.0.0.7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">-rwxr-xr-x 1
root root 81472 Dec 15 23:00 libmaxminddb.so.0.0.7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I did get
the libmaxminddb.so.0 error to go away while using my
previous cfg file, I’ll dig in more later.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;color:windowtext">-dan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> sr-users [<a
href="mailto:sr-users-bounces@lists.kamailio.org"
moz-do-not-send="true">mailto:sr-users-bounces@lists.kamailio.org</a>]
<b>On Behalf Of </b>Daniel W. Graham<br>
<b>Sent:</b> Saturday, December 16, 2017 2:04 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a>>;
<a href="mailto:miconda@gmail.com"
moz-do-not-send="true">miconda@gmail.com</a><br>
<b>Subject:</b> Re: [SR-Users] 5.0 to 5.1 - No module
matching <geoip2> found<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:windowtext">After a
clean system install (CentOS 7) -<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Using
default 5.1 cfg file this time for testing with these added
lines (in proper locations):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">loadmodule
"geoip2.so"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">modparam("geoip2",
"path", "/usr/local/share/GeoIP/GeoLite2-City.mmdb")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span
style="color:windowtext">if (geoip2_match("$si", "src")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">
}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">ERROR:
<core> [core/sr_module.c:582]: load_module(): could
not open module
</usr/local/lib64/kamailio/modules/geoip2.so>:
libmaxminddb.so.0: cannot open shared object file: No such
file or directory<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">CRITICAL:
<core> [core/cfg.y:3447]: yyerror_at(): parse error in
config file /usr/local/etc/kamailio/kamailio.cfg, line 241,
column 12-22: failed to load module<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">ERROR:
<core> [core/modparam.c:152]: set_mod_param_regex():
No module matching <geoip2> found<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">CRITICAL:
<core> [core/cfg.y:3450]: yyerror_at(): parse error in
config file /usr/local/etc/kamailio/kamailio.cfg, line 291,
column 71: Can't set module parameter<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">ERROR:
<core> [core/cfg.y:3310]: yyparse(): cfg. parser:
failed to find command geoip2_match (params 2)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">CRITICAL:
<core> [core/cfg.y:3450]: yyerror_at(): parse error in
config file /usr/local/etc/kamailio/kamailio.cfg, line 457,
column 31: unknown command, missing loadmodule?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">CRITICAL:
<core> [core/cfg.y:3450]: yyerror_at(): parse error in
config file /usr/local/etc/kamailio/kamailio.cfg, line 458,
column 2: syntax error<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">CRITICAL:
<core> [core/cfg.y:3450]: yyerror_at(): parse error in
config file /usr/local/etc/kamailio/kamailio.cfg, line 458,
column 2:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">INFO:
<core> [core/sctp_core.c:53]: sctp_core_destroy():
SCTP API not initialized<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">(Starts fine
without the above config lines)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"># ls -l
/usr/local/lib64/kamailio/modules/ | grep geo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">-rwxr-xr-x 1
root root 73800 Dec 16 01:44 geoip2.so<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">ls -l
/usr/local/share/GeoIP | grep Geo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">-rw-r--r-- 1
root root 63478091 Dec 15 23:08 GeoLite2-City.mmdb<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">version:
kamailio 5.1.0 (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">flags:
STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">poll method
support: poll, epoll_lt, epoll_et, sigio_rt, select.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">id: unknown<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">compiled on
23:13:35 Dec 15 2017 with gcc 4.8.5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"># uname -r<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">3.10.0-693.el7.x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Again, I
have working fine on another host, that does have a
different kernel version / other packages.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:windowtext">-dan</span><span
style="font-size:10.0pt;color:windowtext"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> sr-users [<a
href="mailto:sr-users-bounces@lists.kamailio.org"
moz-do-not-send="true">mailto:sr-users-bounces@lists.kamailio.org</a>]
<b>On Behalf Of </b>Daniel W. Graham<br>
<b>Sent:</b> Friday, December 15, 2017 11:08 AM<br>
<b>To:</b> <a href="mailto:miconda@gmail.com"
moz-do-not-send="true">miconda@gmail.com</a>; Kamailio
(SER) - Users Mailing List <<a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] 5.0 to 5.1 - No module
matching <geoip2> found<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:windowtext">I noticed
that there were SE contexts applied to pretty much all
folders, /usr/bin/lib (where my
</span>libmaxminddb lives) /usr/local/sbin and even
/usr/local/src/. <o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">The security
context applied was: unconfined_u:object_r:usr_t:s0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I haven’t
figured out what caused this, as I have systems without this
behavior. My guess is it is related to disabling selinux
after the build was complete. Despite my efforts resetting
SE linux and removing contexts from affected files the
problem persists. I’ve removed all install and src files,
built again and the same problem persisted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">As far as
the script errors, there are none. The cfg file is in active
operation on other hosts. If I leave the
</span>IFDEF/ENDIF statements active<span
style="color:windowtext"> and comment out only the
statements related to geoip Kamailio starts fine</span>.<o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">A system
rebuild will fix but I thought this behavior was odd and
there could be a way to fix.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:windowtext">-dan</span><span
style="font-size:10.0pt;color:windowtext"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Daniel-Constantin Mierla [<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">mailto:miconda@gmail.com</a>]
<br>
<b>Sent:</b> Friday, December 15, 2017 4:19 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a>>;
Daniel W. Graham <<a href="mailto:dan@cmsinter.net"
moz-do-not-send="true">dan@cmsinter.net</a>><br>
<b>Subject:</b> Re: [SR-Users] 5.0 to 5.1 - No module
matching <geoip2> found<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 15.12.17 05:12, Daniel W. Graham
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Its installed and was working prior to
the 5.1 upgrade.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I got the module error fixed. For
whatever reason there was an SE context applied to the
libmaxminddb.* files that was killing permissions. I was
able to reset them. SE linux was disabled prior and is
currently.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt">interesting
and good to know that SE linux behaves like this ... could you
find a reason for this restriction by SE linux, like the file
being in a specific folder?<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I still get -<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">ERROR: <core> [core/pvapi.c:903]:
pv_parse_spec2(): error searching pvar "gip2"<o:p></o:p></p>
<p class="MsoNormal">ERROR: <core> [core/pvapi.c:1107]:
pv_parse_spec2(): wrong char [s/115] in [$gip2(src=>cc)]
at [6 (5)]<o:p></o:p></p>
<p class="MsoNormal">loading modules under config path:
/usr/local/lib64/kamailio/modules/<o:p></o:p></p>
<p class="MsoNormal">CRITICAL: <core> [core/cfg.y:3447]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 560, column 8-21:
Can't get from cache: $gip2(src=>cc)<o:p></o:p></p>
<p class="MsoNormal">WARNING: <core> [core/ppcfg.c:221]:
pp_ifdef_level_check(): different number of preprocessor
directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Can you check the blocks IFDEF/ENDIF to be sure you have
matching pairs?<br>
<br>
Cheers,<br>
Daniel<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Daniel W. Graham, CTO<o:p></o:p></p>
<p class="MsoNormal">CMSInter.net LLC<o:p></o:p></p>
<p class="MsoNormal">DIRECT (989) 400-4230<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt">INTERNET |
TELEPHONE | MANAGED IT</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>From:</b> sr-users [<a
href="mailto:sr-users-bounces@lists.kamailio.org"
moz-do-not-send="true">mailto:sr-users-bounces@lists.kamailio.org</a>]
<b>On Behalf Of </b>Joel Serrano<br>
<b>Sent:</b> Thursday, December 14, 2017 11:01 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a><br>
<b>Subject:</b> Re: [SR-Users] 5.0 to 5.1 - No module
matching <geoip2> found<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">You need to have libmaxminddb library
installed. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">What OS are you using? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">If deb based:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">$ dpkg -l | grep maxmind<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">If rpm based:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">$ rpm -qa | grep maxmind<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Joel. <o:p></o:p></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Dec 14, 2017 at 12:24
Daniel W. Graham <<a href="mailto:dan@cmsinter.net"
moz-do-not-send="true">dan@cmsinter.net</a>>
wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0in 0in 0in
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Upgraded
two installs to 5.1.<o:p></o:p></p>
<ul type="disc">
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1
level1 lfo3">
Same cfg file from 5.0<o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1
level1 lfo3">
No issues with install 1<o:p></o:p></li>
</ul>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Install
2 results in:<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">ERROR:
<core> [core/modparam.c:152]:
set_mod_param_regex(): No module matching
<geoip2> found<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">CRITICAL:
<core> [core/cfg.y:3450]: yyerror_at():
parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 343,
column 71: Can't set module parameter<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">ERROR:
<core> [core/sr_module.c:582]:
load_module(): could not open module
</usr/local/lib64/kamailio/modules/geoip2.so>:
libmaxminddb.so.0: cannot open shared object file:
No such file or directory<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">CRITICAL:
<core> [core/cfg.y:3447]: yyerror_at():
parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 122,
column 12-22: failed to load module<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">WARNING:
<core> [core/ppcfg.c:221]:
pp_ifdef_level_check(): different number of
preprocessor directives: N(#!IF[N]DEF) -
N(#!ENDIF) = 1<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">ls
-l /usr/local/lib64/kamailio/modules/ | grep geo<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-rwxr-xr-x
1 root root 73800 Dec 14 12:44 geoip2.so<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If
I copy cfg file from install 2 to install 1, no
issues with install 1.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any
idea what could be going wrong?<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-
dan<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - May 14-16, 2018 - <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>