[asterisk-users] Rate My Dialplan Contest Announced - Wina Phone or Copies of APSTel Visual Dialplan Std or Pro!
Jeff LaCoursiere
jeff at jeff.net
Fri Dec 5 13:24:52 CST 2008
On Fri, 5 Dec 2008, Tzafrir Cohen wrote:
> On Fri, Dec 05, 2008 at 12:46:26PM -0600, Danny Nicholas wrote:
>> "Good" programmers can diagram the most obfuscated code. It's part of the
>> job description.
>
> Anybody with a dialplan that looks like a puppy?
>
> Reminder from a previous thread: a really silly script to graph (using
> gnuplot) inclusions between contexts:
>
> asterisk -rx 'dialplan show' | \
> awk -F"'" '
> BEGIN {printf "digraph dialplan {\n";};
> /^\[ Context/ {context=$2};
> /^ Include =>/ {printf "\t%s -> %s\n",context,$2};
> END {printf "}\n"}
> '
>
Many years ago when I was in school we had an obfuscated 'C' contest, and
I recall one year the winning entry had #define'd all of the neccessary
code into morse, so that the eventual .c file was completely in morse
code.
j
More information about the asterisk-users
mailing list