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:[EMAIL PROTECTED]
+972-50-7952406 mailto:[EMAIL PROTECTED]
http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users