xlog(level, format)
xdbg(format)
xlog
usagexdbg
usageThis module provides the possibility to print user formatted log or debug messages from SER scripts, similar to printf function but now a specifier is replaced with a part of the SIP request. Section 1.2 shows what can be printed out.
%% : '%'
%Ts : unix time stamp
%Tf : string formatted time
%ci : call-id
%cs : cseq
%ct : contact header
%fu : 'From' uri
%ft : 'From' tag
%rm : request's method
%ru : request's r-uri
%rr : reply's reason
%rs : reply's status
%tu : 'To' uri
%tt : 'To' tag
%mi : SIP message id
%pp : process id (pid)
%is : IP source address
The following modules must be loaded before this module:
No dependencies on other SER modules.
The following libraries or applications must be installed before running SER with this module loaded:
None.
xlog(level, format)
Print a formated message using LOG function.
Meaning of the parameters is as follows:
level - The level that will be used in LOG function. It can be:
L_ALERT
L_CRIT
L_ERR
L_WARN
L_NOTICE
L_INFO
L_DBG
What really matters is the third letter of the value.
format - The formatted string to be printed.
xdbg(format)
Print a formatted message using DBG function.
Meaning of the parameters is as follows:
format - The formatted string to be printed.
The module does not provide any sort of API to use in other SER modules.
Take a look at http://iptel.org/ser.
First at all check if your question was already answered on one of our mailing lists:
E-mails regarding any stable version should be sent to <serusers@iptel.org>
and e-mail
regarding development versions or CVS snapshots should be send to <serdev@iptel.org>
.
If you want to keep the mail private, send it to <serhelp@iptel.org>
.
Please follow the guidelines provided at: http://iptel.org/ser/bugs