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"
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of "Nicolas Rüger" Sent: Wednesday, July 14, 2010 6:18 AM To: sr-users@lists.sip-router.org Subject: [SR-Users] Perl Code Execution via kamailio.cfg fails
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");
This is incorrect, unless you have a function named "myperl" inside of your script "myperl.pl". The perl_exec() and perl_exec_simple() calls are looking for a named function inside of the file you declare in your modparam.
Regards, - Brad
Ugh... My apologies for the disclaimer, I thought I had already asked my e-mail admin to whitelist this mailing list so it wouldn't get appended.
Hopefully this is fixed now... :/
Regards, - Brad
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Watkins, Bradley Sent: Wednesday, July 14, 2010 8:09 AM To: "Nicolas Rüger"; sr-users@lists.sip-router.org Subject: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of "Nicolas Rüger" Sent: Wednesday, July 14, 2010 6:18 AM To: sr-users@lists.sip-router.org Subject: [SR-Users] Perl Code Execution via kamailio.cfg fails
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");
This is incorrect, unless you have a function named "myperl" inside of your script "myperl.pl". The perl_exec() and perl_exec_simple() calls are looking for a named function inside of the file you declare in your modparam.
Regards,
- Brad
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
Hey Bradley,
thanks. You're right but that's been just a typing error in my mail. I actually call a function called "myprint"
perl_exec_simple("myprint");
So that's been not the problem. Sorry for the wrong typing.
Regards,
Nicolas
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 08:08:33 -0400 Von: "Watkins, Bradley" Bradley.Watkins@compuware.com An: "Nicolas Rüger" NicolasRueger@gmx.de, sr-users@lists.sip-router.org Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of "Nicolas Rüger" Sent: Wednesday, July 14, 2010 6:18 AM To: sr-users@lists.sip-router.org Subject: [SR-Users] Perl Code Execution via kamailio.cfg fails
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");
This is incorrect, unless you have a function named "myperl" inside of your script "myperl.pl". The perl_exec() and perl_exec_simple() calls are looking for a named function inside of the file you declare in your modparam.
Regards,
- Brad
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
On Wednesday 14 July 2010, Nicolas Rüger wrote:
thanks. You're right but that's been just a typing error in my mail. I actually call a function called "myprint"
perl_exec_simple("myprint");
So that's been not the problem. Sorry for the wrong typing.
Hi Nicolas,
do you got some other warnings beside the (unrelated warning) in the logs you quoted earlier? Have you tried to increase the log level to 4 to get some more informations about the module working?
Cheers,
Henning
Hi Henning,
no further warnings (see logs below). I increased the DEBUG-LEVEL to 4 in "kamailio.cfg" and added the follwing lines at the beginng of "routing logic" in "kamailio.cfg".
####### Routing Logic ######## # main request routing logic
route{
#mystuff BEGIN
if (is_method("INVITE")) { perl_exec("myprint"); exit; } #mystuff END
Didn't work out.
Regards, Nicolas
Here's the complete output of debugging with "kamailio -d":
lenny:/opt/kamailio-3.0.0/sbin# ./kamailio -d 0(29372) DEBUG: <core> [cfg.y:1589]: loading modules under /opt/kamailio-3.0.0/lib/kamailio/modules_k/:/opt/kamailio-3.0.0/lib/kamailio/modules/ loading modules under /opt/kamailio-3.0.0/lib/kamailio/modules_k/:/opt/kamailio-3.0.0/lib/kamailio/modules/ 0(29372) DEBUG: <core> [cfg.y:1576]: loading module db_mysql.so 0(29372) DEBUG: <core> [sr_module.c:317]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/db_mysql.so> 0(29372) DEBUG: <core> [sr_module.c:340]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/db_mysql/db_mysql.so> 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules/db_mysql.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module mi_fifo.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/mi_fifo.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module kex.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/kex.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module tm.so 0(29372) DEBUG: <core> [sr_module.c:317]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/tm.so> 0(29372) DEBUG: <core> [sr_module.c:340]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/tm/tm.so> 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules/tm.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module tmx.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/tmx.so> 0(29372) DEBUG: <core> [sr_module.c:173]: register PV from: tmx 0(29372) DEBUG: <core> [cfg.y:1576]: loading module sl.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module rr.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module pv.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/pv.so> 0(29372) DEBUG: <core> [sr_module.c:173]: register PV from: pv 0(29372) DEBUG: <core> [cfg.y:1576]: loading module maxfwd.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/maxfwd.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module usrloc.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/usrloc.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module registrar.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/registrar.so> 0(29372) DEBUG: <core> [sr_module.c:173]: register PV from: registrar 0(29372) DEBUG: <core> [cfg.y:1576]: loading module textops.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module uri_db.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/uri_db.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module siputils.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/siputils.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module xlog.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/xlog.so> 0(29372) DEBUG: <core> [sr_module.c:173]: register PV from: xlog 0(29372) DEBUG: <core> [cfg.y:1576]: loading module sanity.so 0(29372) DEBUG: <core> [sr_module.c:317]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/sanity.so> 0(29372) DEBUG: <core> [sr_module.c:340]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/sanity/sanity.so> 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules/sanity.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module ctl.so 0(29372) DEBUG: <core> [sr_module.c:317]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/ctl.so> 0(29372) DEBUG: <core> [sr_module.c:340]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/ctl/ctl.so> 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules/ctl.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module mi_rpc.so 0(29372) DEBUG: <core> [sr_module.c:317]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/mi_rpc.so> 0(29372) DEBUG: <core> [sr_module.c:340]: load_module: module file not found </opt/kamailio-3.0.0/lib/kamailio/modules_k/mi_rpc/mi_rpc.so> 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules/mi_rpc.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module acc.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so> 0(29372) DEBUG: <core> [cfg.y:1576]: loading module perl.so 0(29372) DEBUG: <core> [sr_module.c:382]: load_module: trying to load </opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so> 0(29372) 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(29372) DEBUG: <core> [mem/f_malloc.c:265]: fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048 0(29372) DEBUG: <core> [mem/f_malloc.c:267]: fm_malloc_init: F_HASH_SIZE=2067, fm_block size=16808 0(29372) DEBUG: <core> [mem/f_malloc.c:268]: fm_malloc_init(0xb57f8000, 33554432), start=0xb57f8000 0(29372) DEBUG: <core> [mem/shm_mem.c:197]: shm_mem_init: success 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'perl' matches module 'perl' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <filename> in module perl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <filename> in module perl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'perl' matches module 'perl' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <modpath> in module perl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <modpath> in module perl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'mi_fifo' matches module 'mi_fifo' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <fifo_name> in module mi_fifo [/opt/kamailio-3.0.0/lib/kamailio/modules_k/mi_fifo.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <fifo_name> in module mi_fifo [/opt/kamailio-3.0.0/lib/kamailio/modules_k/mi_fifo.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'rr' matches module 'rr' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <enable_full_lr> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <enable_full_lr> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'rr' matches module 'rr' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <append_fromtag> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <append_fromtag> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'registrar' matches module 'registrar' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <method_filtering> in module registrar [/opt/kamailio-3.0.0/lib/kamailio/modules_k/registrar.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <method_filtering> in module registrar [/opt/kamailio-3.0.0/lib/kamailio/modules_k/registrar.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'uri_db' matches module 'uri_db' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <use_uri_table> in module uri_db [/opt/kamailio-3.0.0/lib/kamailio/modules_k/uri_db.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <use_uri_table> in module uri_db [/opt/kamailio-3.0.0/lib/kamailio/modules_k/uri_db.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'uri_db' matches module 'uri_db' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_url> in module uri_db [/opt/kamailio-3.0.0/lib/kamailio/modules_k/uri_db.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_url> in module uri_db [/opt/kamailio-3.0.0/lib/kamailio/modules_k/uri_db.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <early_media> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <early_media> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <report_ack> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <report_ack> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <report_cancels> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <report_cancels> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <detect_direction> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <detect_direction> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <failed_transaction_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <failed_transaction_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <log_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <log_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <log_missed_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <log_missed_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <log_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <log_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_missed_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_missed_flag> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_url> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_url> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:89]: set_mod_param_regex: 'acc' matches module 'acc' 0(29372) DEBUG: <core> [sr_module.c:611]: find_param_export: found <db_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [modparam.c:105]: set_mod_param_regex: found <db_extra> in module acc [/opt/kamailio-3.0.0/lib/kamailio/modules_k/acc.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <perl_exec> in module perl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x826e9c8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x826ede0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <mf_process_maxfwd_header> in module maxfwd [/opt/kamailio-3.0.0/lib/kamailio/modules_k/maxfwd.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_send_reply> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x826f508 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x826f920 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <sanity_check> in module sanity [/opt/kamailio-3.0.0/lib/kamailio/modules/sanity.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <xlog> in module xlog [/opt/kamailio-3.0.0/lib/kamailio/modules_k/xlog.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8270158 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8270570 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <has_totag> in module siputils [/opt/kamailio-3.0.0/lib/kamailio/modules_k/siputils.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <loose_route> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#31 #0/1: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#31 #0/1: 3(3)/ 0x3 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8271360 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x82716f0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x3 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8272270 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x82726a8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_check_trans> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_relay> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8272e50 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8273268 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 8(8)/ 0x8273368 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x82729b8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x82733e8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_send_reply> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8270e40 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x82717f0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 8(8)/ 0x82727a8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x82709a8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8273700 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_check_trans> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_relay> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8273ea8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x82742c0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8273a10 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8274340 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_check_trans> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x4 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <remove_hf> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <record_route> in module rr [/opt/kamailio-3.0.0/lib/kamailio/modules_k/rr.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8274a38 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8274e50 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#31 #0/1: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x82750e0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8275470 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <append_hf> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8275928 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8275d40 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x3 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8276160 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8276578 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#33 #0/1: 3(3)/ 0x5 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <setbflag> in module kex [/opt/kamailio-3.0.0/lib/kamailio/modules_k/kex.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8276c18 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8277030 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <save> in module registrar [/opt/kamailio-3.0.0/lib/kamailio/modules_k/registrar.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_reply_error> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x82776d8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8277af0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8276808 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8277138 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_send_reply> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8278550 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x8278968 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x5 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <lookup> in module registrar [/opt/kamailio-3.0.0/lib/kamailio/modules_k/registrar.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_newtran> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_reply> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_send_reply> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#18 #0/2: 22(16)/ 0x82795e0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#18 #1/2: 24(18)/ 0x82795b0 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x8279220 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x827aab8 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#31 #0/1: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#6 #0/1: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_on_reply> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_on_failure> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x827af58 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x827b370 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_relay> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_reply_error> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x827bb20 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x827bf38 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <is_method> in module textops [/opt/kamailio-3.0.0/lib/kamailio/modules_k/textops.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <sl_send_reply> in module sl [/opt/kamailio-3.0.0/lib/kamailio/modules_k/sl.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x827d250 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x827d668 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x2 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <xdbg> in module xlog [/opt/kamailio-3.0.0/lib/kamailio/modules_k/xlog.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:509]: find_export_record: found <xdbg> in module xlog [/opt/kamailio-3.0.0/lib/kamailio/modules_k/xlog.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #0/2: 9(9)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#25 #1/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [sr_module.c:506]: find_export_record: found <t_is_canceled> in module tm [/opt/kamailio-3.0.0/lib/kamailio/modules/tm.so] 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #0/2: 3(3)/ (nil) 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#3 #1/2: 3(3)/ 0x1 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #0/3: 22(16)/ 0x827e398 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #1/3: 8(8)/ 0x827e728 0(29372) DEBUG: <core> [route_struct.c:159]: ACTION_#17 #2/3: 0(0)/ (nil)
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 14:37:41 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: sr-users@lists.sip-router.org CC: "Nicolas Rüger" NicolasRueger@gmx.de, "Watkins, Bradley" Bradley.Watkins@compuware.com Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Wednesday 14 July 2010, Nicolas Rüger wrote:
thanks. You're right but that's been just a typing error in my mail. I actually call a function called "myprint"
perl_exec_simple("myprint");
So that's been not the problem. Sorry for the wrong typing.
Hi Nicolas,
do you got some other warnings beside the (unrelated warning) in the logs you quoted earlier? Have you tried to increase the log level to 4 to get some more informations about the module working?
Cheers,
Henning
On Wednesday 14 July 2010, Nicolas Rüger wrote:
Hi Henning,
no further warnings (see logs below). I increased the DEBUG-LEVEL to 4 in "kamailio.cfg" and added the follwing lines at the beginng of "routing logic" in "kamailio.cfg".
####### Routing Logic ######## # main request routing logic
route{
#mystuff BEGIN
if (is_method("INVITE")) { perl_exec("myprint"); exit; } #mystuff END
Didn't work out. [..]
Hi Nicolas,
the log file you've quoted only shows the startup of the server. But there are no traces that you actually recieved a message on the server which could then trigger the script command you want to execute. This would be probably a bit more interesting for debugging.
I'd also suggest that you add a xlog() statement just before the perl_exec, this should inform you in the logs if the perl method is reached.
Cheers,
Henning
Hi Henning,
as I didn't know how to create logfiles I used "Wireshark" to log all data-packages. I use 2 local sip-clients (pjsip) calling each other for testing the behavior. Therefore I'm sure that the INVITE is sent by one client and replied by the other client. I even get an RTP session running between them.
For testing I uncommented the if-statement, so that the exec-command will be used in every case (see the following lines). Unfortunately it still won't work. Any other ideas?
####### Routing Logic ########
# main request routing logic
route{
#mystuff BEGIN
perl_exec("myprint");
#mystuff END
Where can I find any logfiles logging information while kamailio is running, when I insert the following lines for example?
log("mylog before perl execution\n"); perl_exec("myprint"); log("mylog after perl execution\n");
Regards, Nicolas
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 14:51:33 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: "Nicolas Rüger" NicolasRueger@gmx.de CC: "sr-users@lists.sip-router.org" sr-users@lists.sip-router.org, "Bradley.Watkins@compuware.com" Bradley.Watkins@compuware.com Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Wednesday 14 July 2010, Nicolas Rüger wrote:
Hi Henning,
no further warnings (see logs below). I increased the DEBUG-LEVEL to 4
in
"kamailio.cfg" and added the follwing lines at the beginng of "routing logic" in "kamailio.cfg".
####### Routing Logic ######## # main request routing logic
route{
#mystuff BEGIN
if (is_method("INVITE")) { perl_exec("myprint"); exit; } #mystuff END
Didn't work out. [..]
Hi Nicolas,
the log file you've quoted only shows the startup of the server. But there are no traces that you actually recieved a message on the server which could then trigger the script command you want to execute. This would be probably a bit more interesting for debugging.
I'd also suggest that you add a xlog() statement just before the perl_exec, this should inform you in the logs if the perl method is reached.
Cheers,
Henning
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
On Wednesday 14 July 2010, Nicolas Rüger wrote:
as I didn't know how to create logfiles I used "Wireshark" to log all data-packages.
Hello Nicolas,
so you capture the syslog packages on a network level? I see. :-) Then they should end up somewhere in /var/log/ - if i think it should be possible to specify a certain log target and match this in your logging configuration.
I use 2 local sip-clients (pjsip) calling each other for testing the behavior. Therefore I'm sure that the INVITE is sent by one client and replied by the other client. I even get an RTP session running between them.
Ok, fine. But the question is, if the call is routed over kamailio? :-)
For testing I uncommented the if-statement, so that the exec-command will be used in every case (see the following lines). Unfortunately it still won't work. Any other ideas?
Where can I find any logfiles logging information while kamailio is running, when I insert the following lines for example?
log("mylog before perl execution\n"); perl_exec("myprint"); log("mylog after perl execution\n");
On my system (ubuntu) they are located in /var/log/syslog.
Henning
Hello Henning,
I actually start "Wireshark" just while testing the connection as I didn't know any other way. It's been a whole test environment for my thesis anyway.
I'm sure the call is routed via the Kamailio as Wireshark shows me that the INVITE is sent from client_1 to Kamailio and from Kamailio to client_2 afterwards.
The Perl function is still not excecuted. :(
Coming back to the logs: No logs from Kamailio are found in in "/var/log/syslog".
I tried to change the logging target using this tutorial but didn't work:
http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration
What can I do?
How to set up proper logging?
Regards, Nicolas
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 15:41:02 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: "Nicolas Rüger" NicolasRueger@gmx.de, "sr-users@lists.sip-router.org" sr-users@lists.sip-router.org Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Wednesday 14 July 2010, Nicolas Rüger wrote:
as I didn't know how to create logfiles I used "Wireshark" to log all data-packages.
Hello Nicolas,
so you capture the syslog packages on a network level? I see. :-) Then they should end up somewhere in /var/log/ - if i think it should be possible to specify a certain log target and match this in your logging configuration.
I use 2 local sip-clients (pjsip) calling each other for testing the behavior. Therefore I'm sure that the INVITE is sent by one client and replied by the other client. I even get an RTP session
running
between them.
Ok, fine. But the question is, if the call is routed over kamailio? :-)
For testing I uncommented the if-statement, so that the exec-command
will
be used in every case (see the following lines). Unfortunately it still won't work. Any other ideas?
Where can I find any logfiles logging information while kamailio is running, when I insert the following lines for example?
log("mylog before perl execution\n"); perl_exec("myprint"); log("mylog after perl execution\n");
On my system (ubuntu) they are located in /var/log/syslog.
Henning
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
On Wednesday 14 July 2010, Nicolas Rüger wrote:
I actually start "Wireshark" just while testing the connection as I didn't know any other way. It's been a whole test environment for my thesis anyway.
I'm sure the call is routed via the Kamailio as Wireshark shows me that the INVITE is sent from client_1 to Kamailio and from Kamailio to client_2 afterwards. The Perl function is still not excecuted. :(
Hello Nicolas,
ok, i understand. Then its even more strange.
Coming back to the logs: No logs from Kamailio are found in in "/var/log/syslog".
I tried to change the logging target using this tutorial but didn't work:
http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration
What can I do?
How to set up proper logging?
Just to progress with the first problem you could just enable log to stderr (http://sip-router.org/wiki/cookbooks/core-cookbook/devel#log_stderror):
$ ./ser -f foo.cfg Listening on udp: 127.0.0.1:5060 tcp: 127.0.0.1:5060 Aliases: tcp: localhost:5060 udp: localhost:5060
0(22861) INFO: <core> [tcp_main.c:4144]: init_tcp: using epoll_lt as the io watch method (auto detected) 0(22863) INFO: <core> [udp_server.c:173]: INFO: udp_init: SO_RCVBUF is initially 114688 0(22863) INFO: <core> [udp_server.c:224]: INFO: udp_init: SO_RCVBUF is finally 262142 0(22863) INFO: <core> [udp_server.c:173]: INFO: udp_init: SO_RCVBUF is initially 114688 0(22863) INFO: <core> [udp_server.c:224]: INFO: udp_init: SO_RCVBUF is finally 262142 $ cat foo.cfg debug=2 log_stderror=yes
route{;} $
Maybe you need somehow change your system logging cfg, this should be easier if you use a local log facility.
Regards,
Henning
Hello,
finally found kind of a solution for both of my problems:
1.) Printing ERRORs to stderr didn't work as I started Kamailio with "./kamctl start" instead of "./kamailio"...stupid mistake...
BUT
still don't know why Kamailio isn't writing to "syslogs" when "log_stderror=no" is set in "kamailio.cfg" (using "debian lenny")
and
still don't know why just "xlog()" works, but "log()" doesn't seem to have an effect.
2.) My Perlscript got executed finally. I used the following command in "kamailio.cfg" in the end.
perl_exec_simple("myprint");
My script/subroutine "myprint" actually is writing a control string in another file...just for testing...
I finally used an absolute path instead of an relative path in the perlscript for the filehandle. That worked out then.
BUT
still don't know where Kamailio is trying to open the filehandle when I use a relative path as it's not working then.
Note: When I execute the subroutine from another perlscript it works out perfectly using a relative path for the filehandle.
However....thank you for your help and hints so far!!
Regards, Nicolas
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 19:31:45 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: "Nicolas Rüger" NicolasRueger@gmx.de CC: "sr-users@lists.sip-router.org" sr-users@lists.sip-router.org Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Wednesday 14 July 2010, Nicolas Rüger wrote:
I actually start "Wireshark" just while testing the connection as I
didn't
know any other way. It's been a whole test environment for my thesis anyway.
I'm sure the call is routed via the Kamailio as Wireshark shows me that
the
INVITE is sent from client_1 to Kamailio and from Kamailio to client_2 afterwards. The Perl function is still not excecuted. :(
Hello Nicolas,
ok, i understand. Then its even more strange.
Coming back to the logs: No logs from Kamailio are found in in "/var/log/syslog".
I tried to change the logging target using this tutorial but didn't
work:
http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration
What can I do?
How to set up proper logging?
Just to progress with the first problem you could just enable log to stderr (http://sip-router.org/wiki/cookbooks/core-cookbook/devel#log_stderror):
$ ./ser -f foo.cfg Listening on udp: 127.0.0.1:5060 tcp: 127.0.0.1:5060 Aliases: tcp: localhost:5060 udp: localhost:5060
0(22861) INFO: <core> [tcp_main.c:4144]: init_tcp: using epoll_lt as the io watch method (auto detected) 0(22863) INFO: <core> [udp_server.c:173]: INFO: udp_init: SO_RCVBUF is initially 114688 0(22863) INFO: <core> [udp_server.c:224]: INFO: udp_init: SO_RCVBUF is finally 262142 0(22863) INFO: <core> [udp_server.c:173]: INFO: udp_init: SO_RCVBUF is initially 114688 0(22863) INFO: <core> [udp_server.c:224]: INFO: udp_init: SO_RCVBUF is finally 262142 $ cat foo.cfg debug=2 log_stderror=yes
route{;} $
Maybe you need somehow change your system logging cfg, this should be easier if you use a local log facility.
Regards,
Henning
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
On Thursday 15 July 2010, Nicolas Rüger wrote:
1.) Printing ERRORs to stderr didn't work as I started Kamailio with "./kamctl start" instead of "./kamailio"...stupid mistake...
Hello Nicolas,
good that you managed to get it working in the end. :-)
BUT
still don't know why Kamailio isn't writing to "syslogs" when "log_stderror=no" is set in "kamailio.cfg" (using "debian lenny")
Maybe you can just do a grep from your log string in /var/log - it should be somewhere.
and
still don't know why just "xlog()" works, but "log()" doesn't seem to have an effect.
xlog is the method i used so far and what most people use - maybe the default log level of "log" is different, or there is another problem.
2.) My Perlscript got executed finally. I used the following command in "kamailio.cfg" in the end.
perl_exec_simple("myprint");
My script/subroutine "myprint" actually is writing a control string in another file...just for testing...
I finally used an absolute path instead of an relative path in the perlscript for the filehandle. That worked out then.
BUT
still don't know where Kamailio is trying to open the filehandle when I use a relative path as it's not working then.
Note: When I execute the subroutine from another perlscript it works out perfectly using a relative path for the filehandle.
kamailio using the root '/' directory as working dir as default, if nothing is specified, i think. And here it probably have no permissions to write. You can specify a working dir via some daemon parameter.
Regards,
Henning
Hello,
"xlog" is working fine for me as well and I get a good debugging output starting Kamailio with "./kamailio" after editign the loglevel in "kamailio.cfg" as follows:
debug=9 log_stderror=yes
Thank you for your help.
Regards,
Nicolas
-------- Original-Nachricht --------
Datum: Thu, 15 Jul 2010 13:40:41 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: "Nicolas Rüger" NicolasRueger@gmx.de CC: "sr-users@lists.sip-router.org" sr-users@lists.sip-router.org Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Thursday 15 July 2010, Nicolas Rüger wrote:
1.) Printing ERRORs to stderr didn't work as I started Kamailio with
"./kamctl
start" instead of "./kamailio"...stupid mistake...
Hello Nicolas,
good that you managed to get it working in the end. :-)
BUT
still don't know why Kamailio isn't writing to "syslogs" when "log_stderror=no" is set in "kamailio.cfg" (using "debian lenny")
Maybe you can just do a grep from your log string in /var/log - it should be somewhere.
and
still don't know why just "xlog()" works, but "log()" doesn't seem to
have
an effect.
xlog is the method i used so far and what most people use - maybe the default log level of "log" is different, or there is another problem.
2.) My Perlscript got executed finally. I used the following command in "kamailio.cfg" in the end.
perl_exec_simple("myprint");
My script/subroutine "myprint" actually is writing a control string in another file...just for testing...
I finally used an absolute path instead of an relative path in the perlscript for the filehandle. That worked out then.
BUT
still don't know where Kamailio is trying to open the filehandle when I
use
a relative path as it's not working then.
Note: When I execute the subroutine from another perlscript it works out perfectly using a relative path for the filehandle.
kamailio using the root '/' directory as working dir as default, if nothing is specified, i think. And here it probably have no permissions to write. You can specify a working dir via some daemon parameter.
Regards,
Henning
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