Hi, it could be great if RtpProxy allows logging in a specific log facility (as Kamailio allows). Perhaps I miss something, but it's not possible with the current code, right?
Thanks a lot.
Iñaki Baz Castillo wrote:
Hi, it could be great if RtpProxy allows logging in a specific log facility (as Kamailio allows). Perhaps I miss something, but it's not possible with the current code, right?
Thanks a lot.
Here you go, please try and let me know if it doesn't work:
-------- Original Message -------- To: serdev@lists.iptel.org From: Maxim Sobolev sobomax@sippysoft.com Date: Sat, 30 May 2009 01:48:04 +0200 (CEST) Cc: devel@rtpproxy.org Subject: [RTPproxy Devel] CVS:commitlog: rtpproxy main.c manpage.xml rtpp_defines.h rtpp_log.c rtpp_log.h
sobomax 2009/05/30 01:48:04 CEST
SER CVS Repository
Modified files: . main.c manpage.xml rtpp_defines.h rtpp_log.c rtpp_log.h Log: Add ability to set syslog facility (by adding it after : to the argument of the -d option), i.e. -d WARN:LOG_LOCAL5.
Suggested by: Inaki Baz Castillo
Revision Changes Path 1.89 +11 -3 rtpproxy/main.c http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/main.c.diff?r1=1.88&a... 1.10 +8 -4 rtpproxy/manpage.xml http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/manpage.xml.diff?r1=1... 1.25 +2 -1 rtpproxy/rtpp_defines.h http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/rtpp_defines.h.diff?r... 1.2 +47 -1 rtpproxy/rtpp_log.c http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/rtpp_log.c.diff?r1=1.... 1.7 +2 -1 rtpproxy/rtpp_log.h http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/rtpp_log.h.diff?r1=1....
Regards,
El Sábado, 30 de Mayo de 2009, Maxim Sobolev escribió:
Iñaki Baz Castillo wrote:
Hi, it could be great if RtpProxy allows logging in a specific log facility (as Kamailio allows). Perhaps I miss something, but it's not possible with the current code, right?
Thanks a lot.
Here you go, please try and let me know if it doesn't work:
Again thanks a lot. I'll check it.
El Sábado, 30 de Mayo de 2009, Iñaki Baz Castillo escribió:
El Sábado, 30 de Mayo de 2009, Maxim Sobolev escribió:
Iñaki Baz Castillo wrote:
Hi, it could be great if RtpProxy allows logging in a specific log facility (as Kamailio allows). Perhaps I miss something, but it's not possible with the current code, right?
Thanks a lot.
Here you go, please try and let me know if it doesn't work:
Again thanks a lot. I'll check it.
Unfortunatelly I can't get it working. I run rtpproxy with "-d INFO:LOG_LOCAL6" and configure syslog-ng to log local6 facility into /var/log/rtpproxy (exactly the *same* I do with kamailio and local7 working perfectly). But /var/log/rtpproxy is not generated when restarting rtpproxy and it remains logging into syslog, messages and daemon files.
Does it work for you?
Regards.
Iñaki Baz Castillo wrote:
El Sábado, 30 de Mayo de 2009, Iñaki Baz Castillo escribió:
El Sábado, 30 de Mayo de 2009, Maxim Sobolev escribió:
Iñaki Baz Castillo wrote:
Hi, it could be great if RtpProxy allows logging in a specific log facility (as Kamailio allows). Perhaps I miss something, but it's not possible with the current code, right?
Thanks a lot.
Here you go, please try and let me know if it doesn't work:
Again thanks a lot. I'll check it.
Unfortunatelly I can't get it working. I run rtpproxy with "-d INFO:LOG_LOCAL6" and configure syslog-ng to log local6 facility into /var/log/rtpproxy (exactly the *same* I do with kamailio and local7 working perfectly). But /var/log/rtpproxy is not generated when restarting rtpproxy and it remains logging into syslog, messages and daemon files.
Does it work for you?
OK, it looks like I made a mistake. I've checked in a fix few minutes ago, please do cvs update, rebuild and try again.
Regards,
2009/6/1 Maxim Sobolev sobomax@sippysoft.com:
Unfortunatelly I can't get it working. I run rtpproxy with "-d INFO:LOG_LOCAL6" and configure syslog-ng to log local6 facility into /var/log/rtpproxy (exactly the *same* I do with kamailio and local7 working perfectly). But /var/log/rtpproxy is not generated when restarting rtpproxy and it remains logging into syslog, messages and daemon files.
Does it work for you?
OK, it looks like I made a mistake. I've checked in a fix few minutes ago, please do cvs update, rebuild and try again.
It works now, thanks :)
El Lunes, 1 de Junio de 2009, Iñaki Baz Castillo escribió:
2009/6/1 Maxim Sobolev sobomax@sippysoft.com:
Unfortunatelly I can't get it working. I run rtpproxy with "-d INFO:LOG_LOCAL6" and configure syslog-ng to log local6 facility into /var/log/rtpproxy (exactly the *same* I do with kamailio and local7 working perfectly). But /var/log/rtpproxy is not generated when restarting rtpproxy and it remains logging into syslog, messages and daemon files.
Does it work for you?
OK, it looks like I made a mistake. I've checked in a fix few minutes ago, please do cvs update, rebuild and try again.
It works now, thanks :)
It's really really strange, but while I've got it working perfectly in a Debian Etch 64 bits using syslog-ng, I can't get it working in a Debian Etch 32 bits, also with syslog-ng. Exactly the *same* configuration. rtpproxy remains logging in default facility. I insist on it: exactly the same configuration (in syslog-ng.conf, in /etc/default/rtpproxy). I've also tested that the sources are updates (make clean, make, make install...).
Any idea? Thanks.
2009/6/1 Iñaki Baz Castillo ibc@aliax.net:
It's really really strange, but while I've got it working perfectly in a Debian Etch 64 bits using syslog-ng, I can't get it working in a Debian Etch 32 bits, also with syslog-ng. Exactly the *same* configuration. rtpproxy remains logging in default facility. I insist on it: exactly the same configuration (in syslog-ng.conf, in /etc/default/rtpproxy). I've also tested that the sources are updates (make clean, make, make install...).
For sure I've running the latest CVS version in this 32 bits Debian Etch, since dissabling TOS modification (-t -1) is working :)