Hi all,
About xmpp module on kamailio 3.0.4 (Centos server).
I enabled DEBUG mode with level 7, but when check on /var/log/message I don't see any log from xmpp module (LM_DBG):
#!ifdef WITH_DEBUG debug=7 log_stderror=no #!else debug=2 log_stderror=no #!endif
memdbg=5 memlog=5
log_facility=LOG_LOCAL0
fork=yes children=4
If I change LM_DBG to LM_ERR, I just see 3 line as below:
Oct 25 17:03:48 civilpol /usr/local/sbin/kamailio[31029]: ERROR: xmpp [xmpp.c:345]: cmd_send_message Oct 25 17:03:48 civilpol /usr/local/sbin/kamailio[31029]: ERROR: xmpp [xmpp.c:379]: message from sip:101@sip.htk.com Oct 25 17:03:48 civilpol /usr/local/sbin/kamailio[31029]: ERROR: xmpp [xmpp.c:388]: using R-URI as destination
How can I check all LM_DBG logs in some files as xmpp.c, xmpp_component.c .... to view the registration processing of kamailio to local jabberd server ?
Thanks, Huy Nguyen
www.htk-inc.com
On 10/25/2010 12:31 PM, Huy Nguyen wrote:
log_facility=LOG_LOCAL0
How can I check all LM_DBG logs in some files as xmpp.c, xmpp_component.c .... to view the registration processing of kamailio to local jabberd s erver ?
Huy,
In the default syslog.conf of centos you have a line:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
Which only sends log level info and lower to /var/log/messages.
If you add a line:
local0.* -/var/log/kamailio.log
You will find all any debugging output of kamailio in /var/log/kamailio.log Don't forget to restart syslog
Regards, Robert Verspuy