[SR-Users] app_perl persistent database connection

Vik Killa vipkilla at gmail.com
Mon Sep 15 18:44:53 CEST 2014


Interesting but could you elaborate on how that will answer my question?

On Mon, Sep 15, 2014 at 11:44 AM, Daniel-Constantin Mierla <
miconda at gmail.com> wrote:

>  Hello,
>
> On 15/09/14 17:03, Vik Killa wrote:
>
>   hello, does kamailio start/run the perl script defined by
> modparam("app_perl", "filename", "/usr/local/test/bin/sips.pl") at
> startup and constantly run in background?
>
> yes.
>
> The upcoming 4.2 has the option to reload the script (and reset the perl
> interpreter) periodically.
>
> Cheers,
> Daniel
>
>
> I want a persistent database connection rather than having to constantly
> re-connect to database on each transaction.
> Is this possible?
>
> I'm connecting to postgres with
>
> use DBI;
> my $dsn = "DBI:Pg:database=$database;host=$host;port=$port";
> my $dbh = DBI->connect($dsn, $user, $pass) || die "Could not connect to
> database: $DBI::errstr";
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
> Sep 22-25, Berlin, Germany
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140915/a2dd4d73/attachment.html>


More information about the sr-users mailing list