Discussion:
[SR-Users] See XDBG and XERR Messages in Logs
aawaise
2014-07-28 06:46:32 UTC
Permalink
I have added some XLOG and XDBG commands in registrar module of kamailio. I
want to see messages in result of these commands being printed in logs to
make sure that changes are being made surely. How can it be done ?
I am using fedora and I see kamailio related logs in /var/log/messages.log



--
View this message in context: http://sip-router.1086192.n5.nabble.com/See-XDBG-and-XERR-Messages-in-Logs-tp129266.html
Sent from the Users mailing list archive at Nabble.com.
Daniel-Constantin Mierla
2014-07-28 11:10:57 UTC
Permalink
Can you give where the lines you added in the c code?

There you should use the macros from dprint.h, like LM_ERR(...) or
LM_DBG(...)

Cheers,
Daniel
Post by aawaise
I have added some XLOG and XDBG commands in registrar module of kamailio. I
want to see messages in result of these commands being printed in logs to
make sure that changes are being made surely. How can it be done ?
I am using fedora and I see kamailio related logs in /var/log/messages.log
--
View this message in context: http://sip-router.1086192.n5.nabble.com/See-XDBG-and-XERR-Messages-in-Logs-tp129266.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
aawaise
2014-08-04 03:34:17 UTC
Permalink
Can you please explain how to use macros from dprint.h ??

I have entered xlog and xdbg commands in lookup.c file of registrar module
h. So when lookup function is used on arrival of invite packet, lookup is
called.



--
View this message in context: http://sip-router.1086192.n5.nabble.com/See-XDBG-and-XERR-Messages-in-Logs-tp129266p129389.html
Sent from the Users mailing list archive at Nabble.com.
Daniel-Constantin Mierla
2014-08-04 09:48:59 UTC
Permalink
Hello,

they are like printf functions, with its parameters...

LM_ERR("format", parameters);

The format is a string with specifies (like %d, %s) to be replaced by
parameters' values.

Perhaps you can see many examples across other modules or core.

Cheers,
Daniel
Post by aawaise
Can you please explain how to use macros from dprint.h ??
I have entered xlog and xdbg commands in lookup.c file of registrar module
h. So when lookup function is used on arrival of invite packet, lookup is
called.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/See-XDBG-and-XERR-Messages-in-Logs-tp129266p129389.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...