I needed a quick way to check how many calls were going to voicemail versus being dropped or answered, since the CDR in my version of FreePBX doesn't show such detail. Might be useful for other logfile parsing (with regex!).
Here's the code: https://gist.github.com/zyphlar/2994842