[OpenSIPS-Users] Loglevel priority prefix in /var/log/messages
Denys Pozniak
denys.pozniak at gmail.com
Wed Jul 31 04:57:07 EDT 2019
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 at 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:55555 at 192.168.56.3 / ci=
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1
Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: warning_New message
rm=INVITE / si=192.168.56.1 / ru=sip:55555 at 192.168.56.3 / ci=
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1
Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: error_New message
rm=INVITE / si=192.168.56.1 / ru=sip:55555 at 192.168.56.3 / ci=
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1
Jul 27 15:28:31 localhost rtpengine: [1564255711.862367] INFO: [
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1]: Received command
'offer' from 10.10.200.43:53649
Jul 27 15:28:31 localhost rtpengine: [1564255711.862410] NOTICE: [
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1]: Creating new call
Jul 27 15:28:31 localhost rtpengine: [1564255711.862684] INFO: [
008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1]: Replying to 'offer'
from 10.10.200.43:53649 (elapsed time 0.000304 sec)
[root at 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 at localhost opensips]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
--
BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190731/d8deec29/attachment.html>
More information about the Users
mailing list