Hello,
systemd might divert the logs to its journal, and no longer seen via syslog, use journalctl to see if there are available there.
Cheers,
Daniel
On 06.10.17 02:12, Bruno Henrique Gomes Gouvêa wrote:
Hello,
I am doing some tests with version 4.2.3 (installed of RPM centos 7 packages) in a clean installation, I have a kamailio running in production already configured and working, but I would like to start a totally clean configuration to learn more about kamailio.I am using the configuration file that comes in the default installation (kamailio-basic.cfg) just by adding a log on the main route.
I kept the log in messages file and increased the verbosity as below, and when i send any package (INVITE or REGISTER) I assume that the log or xlog lines should be displayed in file, but no. I see the packets arriving via tcpdump, and netstat shows that port 5060 is being listened by kamailio, but I have nothing else besides the initialization information (and the debug of MYSQL querys when activated unrelated to INVITE or REGISTRY packets).
Am I doing something wrong?
Configs Log :
### LOG Levels: 3 = DBG, 2 = INFO, 1 = NOTICE, 0 = WARN, -1 = ERR#! ifdef WITH_DEBUGdebug = 4log_stderror = no#! elsedebug = 4log_stderror = no#! endif
memdbg = 5memlog = 5
log_facility = LOG_LOCAL0
Main route log test:
request_route {log ("Log main request TEST");xlog ("Log main request TEST 2");# not displayedroute (REQINIT);
/var/log/messages:
Oct 5 23:39:12 pabxmodelo kamailio: Stopping kamailio: [ OK ]Oct 5 23:39:12 pabxmodelo systemd: Starting SYSV: Kamailio is a fast, reliable and flexible SIP Server....Oct 5 23:39:13 pabxmodelo kamailio: INFO: <core> [tcp_main.c:4745]: init_tcp(): using epoll_lt as the io watch method (auto detected)Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: rr [../outbound/api.h:54]: ob_load_api(): Failed to import bind_obOct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: rr [rr_mod.c:160]: mod_init(): outbound module not availableOct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: usrloc [hslot.c:53]: ul_init_locks(): locks array size 1024Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: <core> [udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984Oct 5 23:39:13 pabxmodelo kamailio: Starting kamailio:Oct 5 23:39:13 pabxmodelo /usr/sbin/kamailio[30070]: INFO: ctl [io_listener.c:225]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)Oct 5 23:39:13 pabxmodelo systemd: Started SYSV: Kamailio is a fast, reliable and flexible SIP Server..Oct 5 23:39:13 pabxmodelo kamailio: [ OK ]
--------------------------------------------
Bruno H. G. Gouvêa
---
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/ cgi-bin/mailman/listinfo/sr- users
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - www.kamailioworld.com