You can use xlog to print the whole message to syslog and syslog facility to redirect the log messages from ser to a special file (see http://www.voice-system.ro/docs/ser-syslog/ar01s06.html). But you will have some other log messages from ser in that file, so you will need to sort them (a small perl or awk script will do it -- you can enclose the request between some special delimiters).
Daniel
On 06/15/05 06:29, TCCHAN wrote:
Dear All,
I know that I can dump a request to a file using :
exec_msg("cat >> /usr/local/sbin/log.txt");
How do I get a dump of the response?
I try this and it won't run:
onreply_route[1] { if (status == "200" || status=="202") { .... ... exec_msg("cat >> /usr/local/sbin/log.txt");
Is there a way that I could log the response to a file.
Thank for any help available.
Regards,
TC Chan
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers