[asterisk-users] Rate My Dialplan Contest Announced - Wina Phone or Copies of APSTel Visual Dialplan Std or Pro!

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Dec 5 12:55:43 CST 2008


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"}
  '

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list