<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
what is the version of the json library? Maybe they changed the api
in a new version.<br>
<br>
We have to fix the one for json, but note that you may use jansson
module for json handling in config file.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 29/07/15 19:17, Joao Alves wrote:<br>
</div>
<blockquote
cite="mid:BE9CCC3E59E41A43B74480AD128661E80114A9864D@ILRAADAGBE3.corp.amdocs.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.apple-tab-span
{mso-style-name:apple-tab-span;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have just installed the kamailio 4.3 (from
github) and was trying to include the additional modules that
I require. I’ve edited the modules.lst and changed the extra
modules to compile “include_modules= db_mysql utils json”.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">During compilation (using “make all”)
getting the following warnings in relation with the json
module.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:Menlo">CC (gcc) [M
json.so]<span class="apple-tab-span">
</span>json_funcs.o</span><span
style="font-size:12.0pt;font-family:Menlo"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo">json_funcs.c:
In function 'json_get_field':<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo">json_funcs.c:58:2:
warning: implicit declaration of function 'is_error'
[-Wimplicit-function-declaration]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo">json_funcs.c:64:2:
warning: 'json_object_object_get' is deprecated (declared at
/usr/local/include/json-c/json_object.h:303)
[-Wdeprecated-declarations]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">And later, when running the config file:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ERROR: <core> [sr_module.c:574]:
load_module(): could not open module
</usr/local/lib64/kamailio/modules/json.so>:
libjson-c.so.3: cannot open shared object file: No such file
or directory 0(2344) : <core> [cfg.y:3432]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 195, column 12-20:
failed to load module ERROR: bad config file (1 errors)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have already installed json-c modules and
confirmed this installation by doing:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a class="moz-txt-link-abbreviated" href="mailto:root@ID14337:/usr/local/kamailio-4.3/kamailio#">root@ID14337:/usr/local/kamailio-4.3/kamailio#</a>
pkg-config --cflags json-c<o:p></o:p></p>
<p class="MsoNormal">-I/usr/local/include/json-c <o:p></o:p></p>
<p class="MsoNormal"><a class="moz-txt-link-abbreviated" href="mailto:root@ID14337:/usr/local/kamailio-4.3/kamailio#">root@ID14337:/usr/local/kamailio-4.3/kamailio#</a>
pkg-config --libs json-c<o:p></o:p></p>
<p class="MsoNormal">-L/usr/local/lib -ljson-c <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@ID14337:/usr/local/include/json-c# ls<o:p></o:p></p>
<p class="MsoNormal">arraylist.h json.h
json_inttypes.h json_object_private.h
linkhash.h<o:p></o:p></p>
<p class="MsoNormal">bits.h json_c_version.h
json_object.h json_tokener.h
printbuf.h<o:p></o:p></p>
<p class="MsoNormal">debug.h json_config.h
json_object_iterator.h json_util.h random_seed.h<o:p></o:p></p>
<p class="MsoNormal"><span lang="PT">root@ID14337:/usr/local/include/json-c#
cd ../../lib<o:p></o:p></span></p>
<p class="MsoNormal">root@ID14337:/usr/local/lib# ls<o:p></o:p></p>
<p class="MsoNormal">libjson-c.a libjson-c.la libjson-c.so
libjson-c.so.3 libjson-c.so.3.0.0 pkgconfig python2.6
python2.7<o:p></o:p></p>
<p class="MsoNormal">root@ID14337:/usr/local/lib#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So any ideas of what could be causing this
to fail?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif">Joao
Alves</span></b><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
This message and the information contained herein is proprietary
and confidential and subject to the Amdocs policy statement,
you may review at <a class="moz-txt-link-freetext" href="http://www.amdocs.com/email_disclaimer.asp">http://www.amdocs.com/email_disclaimer.asp</a>
<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://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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>