Hello, I try to use the PERL module in kamailio v3 for some research due to my thesis.
I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0. 1.) The Problem Starting Kamailio via "./kamctl start" drops the general error JUST when I try to load the PERL module: ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed 2.) The search for errors I got the following errors (and warnings) in DEBUG mode by starting "kamailio -d" for debugging: [...] 0(10776) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so> 0(10776) WARNING: <core> [sr_module.c:445]: /opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead 0(10776) [...] 0(10778) ERROR: perl [perl.c:330]: insufficient module parameters. Module not loaded. 0(10778) ERROR: <core> [sr_module.c:874]: init_mod(): Error while initializing module perl 3.) What I did before... 3.1) Compiled Kamailio I compiled Kamailio 3.0.0 using the following commands, where $1 is the target: make prefix=$1/ include_modules="db_mysql tls perl" cfg make Q=1 all make install #make prefix=$1/ TLS=1 #make prefix=$1/ TLS=1 modules #make prefix=$1/ TLS=1 install #make prefix=$1/ include_modules="db_mysql" modules #make prefix=$1/ include_modules="db_mysql" install 3.2) Set the environment variables as described in http://kamailio.org/docs/modules/stable/modules_k/perl.html#id2920768 You need to set the environment variables PERLLDOPTS, PERLCCOPTS and TYPEMAP to values similar to the output of PERLLDOPTS: perl -MExtUtils::Embed -e ldopts PERLCCOPTS: perl -MExtUtils::Embed -e ccopts TYPEMAP: echo "`perl -MConfig -e 'print $Config{installprivlib}'`/ExtUtils/typemap" 3.3) Trying to load the perl-module via kamailio.cfg loadmodule "perl.so" Can you PLEASE help me to solve the problem! Thank you very much... Cheers Nicolas -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users