<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 5/2/12 12:40 PM, Ladislav Jur&aacute;k wrote:
    <blockquote
cite="mid:CAKEXow8iX7LhROPkJD_XYm-e+r_05ustnbbyu9PMmodFYtxkTQ@mail.gmail.com"
      type="cite">
      <p style="margin:0px 0px 0px 0px;font:12.0px Helvetica">I finally
        find out where the problem was.</p>
      <p style="margin:0px 0px 0px 0px;font:12.0px Helvetica">the
        modpath parameter in config file was missing:</p>
      <p style="margin:0px 0px 0px 0px;font:12.0px Helvetica">modparam("perl",
        "modpath", "/usr/lib/kamailio/perl")</p>
      <p style="margin:0px 0px 0px 0px;font:12.0px Helvetica">I thought
        that when I installed module from repository i won't be
        necessary to set up path to perl modules because i will be in
        default directory :/ &#8230;</p>
      <p style="margin:0px 0px 0px 0px;font:12.0px Helvetica">thanks
        anyway</p>
    </blockquote>
    good you found it and thanks for writing back the solution, perhaps
    should be documented in the readme for the future.<br>
    <br>
    Was it the same case for python? Some module parameter that has to
    be set?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAKEXow8iX7LhROPkJD_XYm-e+r_05ustnbbyu9PMmodFYtxkTQ@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">On 2 May 2012 08:46, Daniel-Constantin
        Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hello,
            <div class="im"><br>
              <br>
              On 5/2/12 12:50 AM, Ladislav Jur&aacute;k wrote:
              <blockquote type="cite">I tried with this script:
                <div>
                  <div><br>
                  </div>
                  <div>sub donothing{</div>
                  <div>&nbsp; $a = 1000;</div>
                  <div>&nbsp; return 1;</div>
                  <div>}</div>
                  <div>... still the same error</div>
                </div>
              </blockquote>
            </div>
            not a perl/python user myself (using instead app_lua when
            needed), so I cannot test for the moment. But I know other
            peoples are using perl or python and haven't reported such
            issue -- maybe one of them will be able to answer faster.<br>
            <br>
            Cheers,<br>
            Daniel
            <div>
              <div class="h5"><br>
                <br>
                <blockquote type="cite">
                  <div>
                    <div>Thank you for fast reply.</div>
                    <div>LJ.</div>
                    <br>
                    <div class="gmail_quote"> On 2 May 2012 00:22,
                      Daniel-Constantin Mierla <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:miconda@gmail.com"
                          target="_blank">miconda@gmail.com</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div bgcolor="#FFFFFF" text="#000000"> Hello,
                          <div>
                            <div><br>
                              <br>
                              On 5/2/12 12:07 AM, Ladislav Jur&aacute;k wrote:
                              <blockquote type="cite">
                                <div>
                                  <div>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">Hello,</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">I have
                                      problem with loading perl module
                                      on Kamailio v3.2 installed from
                                      repository on Debian sqeeze amd64.
                                      Perl modules was also installed
                                      from repository package
                                      kamailio-perl-modules. I have also
                                      installed all perl dependences
                                      listed in perl module documentary.</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">Into
                                      Kamailio config file I added:</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">loadmodule
                                      "perl.so"</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">and</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">modparam("perl",
                                      "filename", "/etc/kamailio/<a
                                        moz-do-not-send="true"
                                        href="http://skript.pl"
                                        target="_blank">skript.pl</a>")</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">Now when
                                      I'm trying to start Kamailio I'll
                                      get following:</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: DEBUG:
                                      &lt;core&gt; [cfg.y:1712]: loading
                                      module perl.so</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: DEBUG:
                                      &lt;core&gt; [sr_module.c:557]:
                                      load_module: trying to load
                                      &lt;/usr/lib64/kamailio/modules_k/perl.so&gt;</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: WARNING:
                                      &lt;core&gt; [sr_module.c:620]:
                                      /usr/lib64/kamailio/modules_k/perl.so:
                                      exports dlflags interface is
                                      deprecated and it will not be
                                      supported in newer versions;
                                      consider using mod_register()
                                      instead</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: DEBUG:
                                      &lt;core&gt; [modparam.c:96]:
                                      set_mod_param_regex: 'perl'
                                      matches module 'perl'</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: DEBUG:
                                      &lt;core&gt; [sr_module.c:763]:
                                      find_param_export: found
                                      &lt;filename&gt; in module perl
                                      [/usr/lib64/kamailio/modules_k/perl.so]</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server kamailio: DEBUG:
                                      &lt;core&gt; [modparam.c:113]:
                                      set_mod_param_regex: found
                                      &lt;filename&gt; in module perl
                                      [/usr/lib64/kamailio/modules_k/perl.so]</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server
                                      /usr/sbin/kamailio[31192]: DEBUG:
                                      &lt;core&gt; [sr_module.c:928]:
                                      DEBUG: init_mod: perl</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server
                                      /usr/sbin/kamailio[31192]: ERROR:
                                      perl [perl.c:238]: failed to load
                                      perl file "/etc/kamailio/<a
                                        moz-do-not-send="true"
                                        href="http://skript.pl"
                                        target="_blank">skript.pl</a>".</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">May&nbsp; 1
                                      23:13:46 server
                                      /usr/sbin/kamailio[31192]: ERROR:
                                      &lt;core&gt; [sr_module.c:932]:
                                      init_mod(): Error while
                                      initializing module perl
                                      (/usr/lib64/kamailio/modules_k/perl.so)</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">I am
                                      confused about the WARNIG too, can
                                      it have some influence to the
                                      errors?</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">File <a
                                        moz-do-not-send="true"
                                        href="http://skript.pl"
                                        target="_blank">skript.pl</a> is
                                      in the specified directory. I also
                                      changed permissions to 777. It's
                                      content is from sample "<a
                                        moz-do-not-send="true"
                                        href="http://branches.pl"
                                        target="_blank">branches.pl</a>".</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">I have
                                      similar problem with module
                                      app_python.so.</p>
                                    <p style="margin:0px 0px 0px
                                      0px;font:13.0px Arial">Can you
                                      please give me some advice? It's
                                      important for me to get this
                                      module working.</p>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                          </div>
                          the warning is harmless, it is just for
                          developers, should be made info or notice,
                          rather than being a warning.<br>
                          <br>
                          The error itself is because of perl_parse()
                          function, which could not understand the
                          script. Can you try with a very basic perl
                          script, like just printing a message or doing
                          a simple operation to see if it starts?<br>
                          <br>
                          Cheers,<br>
                          Daniel<span><font color="#888888"><br>
                              <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
                            </font></span></div>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <div><br>
                    </div>
                    -- <br>
                    S pozdravom LJ<br>
                  </div>
                </blockquote>
                <br>
                <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      S pozdravom LJ<br>
      <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></pre>
  </body>
</html>