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-t... Sent from the Users mailing list archive at Nabble.com.
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
On 28/07/14 08:46, aawaise wrote:
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-t... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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-t... Sent from the Users mailing list archive at Nabble.com.
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
On 04/08/14 05:34, aawaise wrote:
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-t... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users