Hi Denys,
Check your syslog configuration and see to which log file the LOCAL0
facility is diverted - maybe you are looking into the wrong file.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS Summit 2019
https://www.opensips.org/events/Summit-2019Amsterdam/
On 07/31/2019 11:57 AM, Denys Pozniak wrote:
Hello!
Please help me to configure loglevel prefix priority (like INFO,
NOTICE, WARNING, ERROR) for /var/log/messages.
As you can see below OpenSIPS does not display it, but for example,
Rtpengine does.
####### Global Settings ########
log_level=3
log_stderror=no
log_facility=LOG_LOCAL0
...
####### Routing Logic ########
route{
xlog("L_INFO","info_New message rm=$rm / si=$si / ru=$ru /
ci=$ci \n");
xlog("L_NOTICE","notice_New message rm=$rm / si=$si / ru=$ru /
ci=$ci \n");
xlog("L_WARN","warning_New message rm=$rm / si=$si / ru=$ru /
ci=$ci \n");
xlog("L_ERR","error_New message rm=$rm / si=$si / ru=$ru /
ci=$ci \n");
...
[root@localhost opensips]# tail -f /var/log/messages
Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: notice_New
message rm=INVITE / si=192.168.56.1 / ru=sip:[email protected]
<mailto:sip%[email protected]> /
[email protected]
<mailto:[email protected]>
Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: warning_New
message rm=INVITE / si=192.168.56.1 / ru=sip:[email protected]
<mailto:sip%[email protected]> /
[email protected]
<mailto:[email protected]>
Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: error_New message
rm=INVITE / si=192.168.56.1 / ru=sip:[email protected]
<mailto:sip%[email protected]> /
[email protected]
<mailto:[email protected]>
Jul 27 15:28:31 localhost rtpengine: [1564255711.862367] INFO:
[[email protected]
<mailto:[email protected]>]: Received
command 'offer' from 10.10.200.43:53649 <http://10.10.200.43:53649>
Jul 27 15:28:31 localhost rtpengine: [1564255711.862410] NOTICE:
[[email protected]
<mailto:[email protected]>]: Creating
new call
Jul 27 15:28:31 localhost rtpengine: [1564255711.862684] INFO:
[[email protected]
<mailto:[email protected]>]: Replying
to 'offer' from 10.10.200.43:53649 <http://10.10.200.43:53649>
(elapsed time 0.000304 sec)
[root@localhost opensips]# opensips -V
version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on 13:02:44 May 30 2019 with gcc 4.8.5
[root@localhost opensips]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
--
BR,
Denys Pozniak
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users