[Freeswitch-users] How to work with the debug logfile?
msc at freeswitch.org
Tue May 26 11:26:05 PDT 2009
On Mon, May 25, 2009 at 8:19 AM, Dennis <odermann at googlemail.com> wrote:
> we encounter some small problems withing the past 2 days and we are
> trying to find out more about the problems. for this we downloaded the
> debug logfiles written by fs, but we do not manage to filter all
> log-entries for one single special call.
> we are using socket outbound and would like to see all entries
> (inbound/outbound) of one call.
> is this possible?
> kind regards
This isn't the easiest thing to do but it is possible. In the past I've used
a combination of uuid and channel name with grep. Also, I recommend rotating
log files using "fsctl send_sighup" which helps keep you from getting a 10GB
freeswitch.log file. :) The first thing I do is find the call's uuid, either
by manually searching through the log file or by using a CDR. (Use whichever
works best for you.) Then use grep to find all the line numbers for that
particular uuid. Here's a sample from my Mac where I used portaudio to call
the main conference line:
grep -n b1f9e5ce-29a6-497a-a628-71f1bdefa0cb freeswitch.log
In this case I found out my channel name is "portaudio/
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>" so
I grep for it:
grep "portaudio/sip:888 at conference.freeswitch.org<sip%3A888 at conference.freeswitch.org>"
It's not perfect but it helps narrow down your call.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users