<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Miha,<br>
    <br>
    The cachedb_redis module is excluded from compilation by default,
    because it depends on an external library.<br>
    To enable it, go to OpenSIPS sources folder, do<br>
    &nbsp;&nbsp;&nbsp; make menuconfig<br>
    go to 'Configure Compile Options' -&gt; Configure Excluded Modules&nbsp;
    , scroll to cachedb_redis, check it ( space bar ), go back ( q ) ,
    hit 'Save Changes' and recompile &amp; re-install OpenSIPS. You
    should have cachedb_redis compiled, and cachedb_redis.so generated
    this time.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 04/23/2012 12:51 PM, Miha wrote:
    <blockquote cite="mid:4F95260E.8080602@softnet.si" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi Vlad,<br>
      <br>
      I did but I guss problem is that I do not have .so file.<br>
      <br>
      I have installed redis server and downlaod this <a
        moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://github.com/antirez/hiredis">https://github.com/antirez/hiredis</a><br>
      <br>
      Aftet that I did make&amp;make install<br>
      <br>
      Regards,<br>
      Miha<br>
      <br>
      On 4/23/2012 10:40 AM, Vlad Paiu wrote:
      <blockquote cite="mid:4F951595.9000700@opensips.org" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <title></title>
        Hi Miha,<br>
        <br>
        Are you sure you have the cachedb_redis module loaded ?<br>
        Add <br>
        &nbsp;&nbsp;&nbsp; loadmodule "cachedb_redis.so"<br>
        at the beggining of your config file.<br>
        <br>
        Regards,<br>
        <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
        <br>
        On 04/23/2012 09:39 AM, Miha wrote:
        <blockquote cite="mid:4F94F90B.9020403@softnet.si" type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          Hi @Vlad,<br>
          <br>
          I did as you said. I remove libhiredis.so from modules folder
          and just add this modparam("cachedb_redis",
          "cachedb_url","redis:group1://localhost:6379/"); in cgf file.<br>
          <br>
          <br>
          <small>[root@localhost ~]# /etc/init.d/opensips
            start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
            Not starting : invalid configuration file!<br>
            <br>
            Apr 23 07:52:38 [3267] ERROR:core:set_mod_param_regex: no
            module matching cachedb_redis found<br>
            Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
            config file /usr/local/etc/opensips/opensips.cfg, line 54,
            column 19-20: Parameter &lt;cachedb_url&gt; not found in
            module &lt;cachedb_redis&gt; - can't set<br>
            Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
            config file /usr/local/etc/opensips/opensips.cfg, line 54,
            column 20-21: syntax error<br>
            Apr 23 07:52:38 [3267] CRITICAL:core:yyerror: parse error in
            config file /usr/local/etc/opensips/opensips.cfg, line 54,
            column 20-21: <br>
            Apr 23 07:52:38 [3267] ERROR:core:main: bad config file (3
            errors)</small><br>
          <br>
          Thanks!<br>
          MIha<br>
          <br>
          On 4/20/2012 4:24 PM, Vlad Paiu wrote:
          <blockquote cite="mid:4F9171A1.7080807@opensips.org"
            type="cite">
            <meta content="text/html; charset=ISO-8859-1"
              http-equiv="Content-Type">
            Hi Miha,<br>
            <br>
            Do NOT copy libhiredis.so in the opensips modules folder.<br>
            Just install hiredis it as usual on your server ( from
            sources, or packages if they are available for your OS ) and
            leave it there.<br>
            &nbsp;<br>
            Regards,<br>
            <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
            <br>
            On 04/20/2012 03:05 PM, Miha wrote:
            <blockquote cite="mid:4F91511C.3010208@softnet.si"
              type="cite">
              <meta http-equiv="content-type" content="text/html;
                charset=ISO-8859-1">
              <small>HI,<br>
                <br>
                I have installed redis server and instal hiredis as is
                written on link from Opensips.<br>
                <br>
                Than I copied </small><small>libhiredis.so to </small><small>/usr/local/lib64/opensips/modules/.<br>
                <br>
                After runing opensips I get this. What could be causing
                problem?<br>
                <br>
                THanks!<br>
              </small><small><br>
                [root@localhost hiredis]# /etc/init.d/opensips
                start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
                Not starting : invalid configuration file!<br>
                <br>
                Apr 20 13:19:23 [4603] ERROR:core:sr_load_module:
                load_module:
                /usr/local/lib64/opensips/modules/libhiredis.so:
                undefined symbol: exports<br>
                Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse
                error in config file
                /usr/local/etc/opensips/opensips.cfg, line 38, column
                13-14: failed to load module<br>
                Apr 20 13:19:23 [4603] ERROR:core:set_mod_param_regex:
                no module matching cachedb_redis found<br>
                Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse
                error in config file
                /usr/local/etc/opensips/opensips.cfg, line 43, column
                19-20: Parameter &lt;cachedb_url&gt; not found in module
                &lt;cachedb_redis&gt; - can't set<br>
                Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse
                error in config file
                /usr/local/etc/opensips/opensips.cfg, line 43, column
                20-21: syntax error<br>
                Apr 20 13:19:23 [4603] CRITICAL:core:yyerror: parse
                error in config file
                /usr/local/etc/opensips/opensips.cfg, line 43, column
                20-21: <br>
                Apr 20 13:19:23 [4603] ERROR:core:main: bad config file
                (4 errors)</small>
              <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
          <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
        </blockquote>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>