<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I haven't written the json module, so I don't know the limits of the
    versions.<br>
    <br>
    Anyhow, what you can do is to look at debian/rpm specs in source
    tree at pkg/kamailio/..., there should list the dependencies of the
    json libs with versions.<br>
    <br>
    jansson is using another underlying library, one of its features
    being support for json-path.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 06/08/15 14:57, Joao Alves wrote:<br>
    </div>
    <blockquote
cite="mid:BE9CCC3E59E41A43B74480AD128661E80114A9A2AB@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;}
@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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span style="color:#1F497D">Hi Daniel,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I’ve installed
            the latest release (0.12), but can downgrade if needed.
              which version have you integrated with?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">About jansson,
            I was not really aware of it. is it providing improved
            functionalities compared with json?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Joao <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <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.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
                <b>On Behalf Of </b>Daniel-Constantin Mierla<br>
                <b>Sent:</b> quarta-feira, 5 de Agosto de 2015 15:26<br>
                <b>To:</b> Kamailio (SER) - Users Mailing List<br>
                <b>Subject:</b> Re: [SR-Users] Problem adding json
                module<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">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<span style="font-size:12.0pt"><o:p></o:p></span></p>
        <div>
          <p class="MsoNormal">On 29/07/15 19:17, Joao Alves wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <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><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-family:Menlo">json_funcs.c:
              In function 'json_get_field':</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-family:Menlo">json_funcs.c:58:2:
              warning: implicit declaration of function 'is_error'
              [-Wimplicit-function-declaration]</span><o:p></o:p></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]</span><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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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</span><o:p></o:p></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><o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif">This message and the information
              contained herein is proprietary and confidential and
              subject to the Amdocs policy statement, you may review at
              <a moz-do-not-send="true"
                href="http://www.amdocs.com/email_disclaimer.asp">http://www.amdocs.com/email_disclaimer.asp</a>
              <br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif"><br>
            <br>
            <o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Daniel-Constantin Mierla<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
        <pre>Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
      </div>
    </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>