4 # Perl module for Kamailio
6 # Copyright (C) 2006 Collax GmbH
7 # (Bastian Friedrich <bastian.friedrich@collax.com>)
9 # This file is part of Kamailio, a free SIP server.
11 # Kamailio is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version
16 # Kamailio is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 @ISA = qw(Exporter DynaLoader);
32 @EXPORT_OK = qw ( log );
34 use Kamailio::Message;
35 use Kamailio::Constants;
36 use Kamailio::Utils::Debug;
42 $SIG{'__DIE__'} = sub {
43 Kamailio::Message::log(undef, L_ERR, "perl error: $_[0]\n");
45 $SIG{'__WARN__'} = sub {
46 Kamailio::Message::log(undef, L_ERR, "perl warning: $_[0]\n");