<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The answer to the question was: yes, after your question, in a
    dedicated fhrase/paragraph. I expected you wanted to know if the
    perl script is loaded at startup and then run from memory
    (precompiled form) at runtime -- sparing another email to ask what
    you really mean by "constantly run in background", which has
    different meaning in my understanding, but has no relation with the
    purpose of Kamailio and its app_perl module.<br>
    <br>
    The following remark (on separate paragraph) was an addition to say
    that, if you need to refresh the the loaded perl script in memory,
    can be done periodically if using upcoming 4.2. I added it, not
    strictly for reloading the script in memory, but apparently perl was
    not designed for long recursive running of scripts (or maybe
    developers of some libs didn't have that in mind), resulting in
    system memory leak after long interval of runing (reported by
    others, as I am not really using app_perl).<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 15/09/14 18:44, Vik Killa wrote:<br>
    </div>
    <blockquote
cite="mid:CAC-LwPMH=P9E5DHqsjhv4OA4toW-RCbw+BGaFVZ+w6HrwUpf6A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Interesting but could you elaborate on how that
        will answer my question?</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Sep 15, 2014 at 11:44 AM,
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></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,<span class=""><br>
                <br>
                <div>On 15/09/14 17:03, Vik Killa wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <table>
                      <tbody>
                        <tr>
                          <td>hello, does kamailio start/run the perl
                            script defined by modparam("app_perl",
                            "filename", "/usr/local/test/bin/<a
                              moz-do-not-send="true"
                              href="http://sips.pl" target="_blank">sips.pl</a>")
                            at startup and constantly run in background?<br>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </blockquote>
              </span> yes.<br>
              <br>
              The upcoming 4.2 has the option to reload the script (and
              reset the perl interpreter) periodically.<br>
              <br>
              Cheers,<br>
              Daniel<br>
              <br>
              <blockquote type="cite"><span class="">
                  <div dir="ltr">
                    <table>
                      <tbody>
                        <tr>
                          <td><br>
                            I want a persistent database connection
                            rather than having to constantly re-connect
                            to database on each transaction.<br>
                            Is this possible?<br>
                            <br>
                            I'm connecting to postgres with<br>
                            <br>
                            use DBI;<br>
                            my $dsn =
                            "DBI:Pg:database=$database;host=$host;port=$port";<br>
                            my $dbh = DBI->connect($dsn, $user,
                            $pass) || die "Could not connect to
                            database: $DBI::errstr";<br>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                </span>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<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>
Next Kamailio Advanced Trainings 2014 - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </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>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
  </body>
</html>