Hello,

I try to execute some PERL-code within kamailio v3 for some research due to my 
thesis. I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.

I added the follwoing lines to "kamailio.cfg":

  loadmodule "perl.so"
  modparam("perl", "filename", "/opt/kamailio-3.0.0/PERL/myperl.pl")
  modparam("perl", "modpath", "/opt/kamailio-3.0.0/lib/kamailio/perl")

I added a subroutine called "myprint" to the file "myperl.pl" for testing.

I tried to exec the subroutine by adding the following line to "kamailio.cfg" 
just before "Routing Logic" (...even tried within "route{..}") as described in 
the perl_module description :

  perl_exec_simple("myperl");

Unfortunately it seems the code isn't executed, as it should write some lines 
in a log-file.

What can I do? 

Thank you!!

Cheers Nicolas



additional information: 
=======================

Kamailio is starting without problems it just shows the follwing warning:

"0(28679) 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 notbe supported in newer versions; consider using 
mod_register() instead 0(28679) DEBUG: <core> [mem/f_malloc.c:265]: 
fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048"
-- 
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

Reply via email to