[SR-Users] app_perl persistent database connection

Vik Killa vipkilla at gmail.com
Mon Sep 15 17:03:08 CEST 2014

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?

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";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140915/ac7f0980/attachment.html>

More information about the sr-users mailing list