[OpenSIPS-Users] Problem with initilizing Perl module
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Feb 19 15:13:36 CET 2010
Hi Stina,
PERL module is not by default compiled as it depends on some additional
libs (like perl-dev).
To compile the module, remove it from the "exclude_module" list in Makefile.
Regards,
Bogdan
Stina Szemere wrote:
> Hello,
>
> I have a problem... I want to use the perl module in opensips
> (Ubuntu-server 8.04).
>
> When installing opensips I did not explixitly state anything about Perl.
> I used the original Makefile when installing.
> I can find the module perl.so in the
> /usr/local/src/opensips-1.6.1-tls/modules/perl/
>
> I have these params in my opensips.cfg
>
> # ----- perl params -----
> modparam("perl", "filename", "/etc/opensips/perl/chf.pl")
> modparam("perl", "modpath",
> "/usr/local/src/opensips-1.6.1-tls/modules/perl/")
>
> When I try to start opensips (as root) I get
>
> root at co-sip18:/usr/local/src/opensips-1.6.1-tls# tail -f
> /var/log/opensips.log
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]:
> NOTICE:signaling:mod_init: initializing module ...
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: INFO:sl:mod_init:
> Initializing StateLess engine
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: INFO:tm:mod_init: TM -
> initializing...
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: INFO:maxfwd:mod_init:
> initializing...
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]:
> INFO:usrloc:ul_init_locks: locks array size 512
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: INFO:perl:mod_init:
> initializing...
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: INFO:perl:parser_init:
> setting lib path: '/usr/local/src/opensips-1.6.1-tls/modules/perl/'
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: ERROR:perl:parser_init:
> failed to load perl file "/etc/opensips/perl/chf.pl".
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: ERROR:core:init_mod:
> failed to initialize module perl
> Feb 19 14:03:18 co-sip18 /sbin/opensips[5875]: ERROR:core:main: error
> while initializing modules
>
>
> root at co-sip18:/usr/local/src/opensips-1.6.1-tls# ls -la /etc/opensips/perl
> total 36
> drwxr-xr-x 2 root root 4096 2010-02-19 13:20 .
> drwx------ 3 root root 4096 2010-02-19 14:03 ..
> -rwxrwxrwx 1 root root 28314 2010-02-19 13:20 chf.pl
>
>
> Do you have any tips on what to do or what I shall look for?
>
> Best Regards
> Stina Szemere
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list