DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Selecting All Logfile Entries For A Specific Extension In Asterisk Logfile
// The following command line will show all the applications that were executed for the extension 3025. But only for calls that where placed to a specific extension (myexten@mycontext). This is useful when there are Gotos in the context and you want to see all the executed applications of that call. "full" is the name of the asterisk log file where all the verbose and debugging messages are written to.
grep myexten@context | grep 3025 | sed "s/^.*\(SIP.3025-[0-9a-f]\+\).*$/\1/" | xargs -I sip grep sip full