[SR-Users] Perl Code Execution via kamailio.cfg fails
Henning Westerholt
henning.westerholt at 1und1.de
Wed Jul 14 19:31:45 CEST 2010
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
More information about the sr-users
mailing list