[asterisk-users] Debugging Asterisk

Terry Wilson twilson at digium.com
Mon Nov 17 09:01:51 CST 2008


> 2) Also wondering what people do when parsing asterisk verbose  
> output in the log.  Specifically, following a certain call.   
> Asterisk's verbose output logs in sequence of action, which is good,  
> but if you have 40-50 workstations going at once, tracking the  
> progress of one call you are trying to make can be difficult.   
> Obviously you can follow the channel as it goes through.  But I am  
> wondering if there is a smarter way, like telling asterisk to only  
> log on certain numbers etc.

I always just used grep.  If you know something about a call that you  
want to look at that would show up, like the phone number, just grep  
for the number (i.e. `grep 5555551212 /var/log/asterisk/messages`).   
Then after you have found that first entry that matches the time that  
you are looking for, look at the number in the brackets next to the  
message type, like VERBOSE[12345].  What I would do then is just `grep  
"\[12345\]" /var/log/asterisk/messages` to look at everything that  
happened during that call.  Not perfect, but it works pretty well as  
long as your log files are being rotated fairly often.

Terry



More information about the asterisk-users mailing list