Avani badheka Asked: 2016-08-24 05:45:13 +0800 CST2016-08-24 05:45:13 +0800 CST 2016-08-24 05:45:13 +0800 CST RTP Proxy logs view 772 how to view rtp proxy logs separately . I actually want to view kamailio and rtp proxy logs differently.So I want to know that what are the command to view RTP proxy logs .can anyone help me ? log-files rtp 1 Answers Voted Best Answer Yasin Caner 2016-08-24T06:03:24+08:002016-08-24T06:03:24+08:00 you can use syslog engine to separete them.in syslog.conf add a local lines and number as it has examples. RTPPROXY : instead of LOG_DEAMON , put lOCAL(NUMBER) rtpproxy -l 120.76.118.128 -s udp:127.0.0.1:7722 -F -m 10000 -M 20000 -d DBUG:LOG_DAEMON KAMAILIO : in .cfg file , there is a log_facility. set this parameter as defined syslog.conf. you can add separetly lines different files as example. kamailio.cfg log_facility=LOG_LOCAL1 xlog("LOG_LOCAL3","L_ERR","Load CALLER [$ci] FAILED"); rsyslog.conf local1.* -/var/log/kamailio/kamailio.log local2.* -/var/log/kamailio/kamailio_direction.log local3.* -/var/log/kamailio/kamailio_err.log
you can use syslog engine to separete them.in syslog.conf add a local lines and number as it has examples.
RTPPROXY : instead of LOG_DEAMON , put lOCAL(NUMBER) rtpproxy -l 120.76.118.128 -s udp:127.0.0.1:7722 -F -m 10000 -M 20000 -d DBUG:LOG_DAEMON
KAMAILIO : in .cfg file , there is a log_facility. set this parameter as defined syslog.conf.
you can add separetly lines different files as example.
kamailio.cfg
rsyslog.conf