<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><FONT face=Arial
size=2>I've been working on a visualization tool that would be totally open
source and I'd share it now if I wasn't embarassed by how quickly and shoddily I
assembled it. Here's an example of the sample extensions.conf file that was part
of 1.4.19: </FONT><A href="http://www.mbs3.org/extensions-conf-sample.jpg"><FONT
face=Arial size=2>http://www.mbs3.org/extensions-conf-sample.jpg</FONT></A><SPAN
class=961223213-21042008><FONT face=Arial
size=2> </FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><SPAN
class=961223213-21042008><FONT face=Arial
size=2></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><SPAN
class=961223213-21042008><FONT face=Arial size=2>Right now, it doesn't handle
any of the quoting escapes that Asterisk allows, and it shows anything that is
an include or a Goto. Eventually I think it might be neat to just graph all of
the dialplan's structure, kind of like this site explains for web sites: <A
href="http://www.aharef.info/2006/05/websites_as_graphs.htm">http://www.aharef.info/2006/05/websites_as_graphs.htm</A></FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><SPAN
class=961223213-21042008><FONT face=Arial
size=2></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><SPAN
class=961223213-21042008><FONT face=Arial size=2>More soon
:)</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=602402813-21042008><SPAN
class=961223213-21042008><FONT face=Arial
size=2></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><FONT size=2>Martin Smith, Systems
Developer<BR>martins@bebr.ufl.edu<BR>Bureau of Economic and Business
Research<BR>University of Florida<BR>(352) 392-0171 Ext. 221</FONT> </DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Matthew
Gibson<BR><B>Sent:</B> Monday, April 21, 2008 5:27 AM<BR><B>To:</B> Asterisk
Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re:
[asterisk-users] Dialplan Visualization (Extensions.conf orDialplan
Show)<BR></FONT><BR></DIV>
<DIV></DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Apr 21, 2008 at 5:11 AM, Tzafrir Cohen <<A
href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</A>>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">On
Mon, Apr 21, 2008 at 04:19:16AM -0400, Matthew Gibson wrote:<BR>> On Sun,
Apr 20, 2008 at 11:54 PM, Tzafrir Cohen <<A
href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</A>><BR>>
wrote:<BR>><BR>> > On Mon, Apr 21, 2008 at 02:09:26AM +0300, Moshe
Brevda wrote:<BR>> > > will this do?<BR>> > ><BR>> >
<A
href="http://yum.trixbox.org/centos/5/RPMS/repodata/repoview/tb-trixboxgraph-0-0.1.0-2.html"
target=_blank>http://yum.trixbox.org/centos/5/RPMS/repodata/repoview/tb-trixboxgraph-0-0.1.0-2.html</A><BR>>
> ><BR>> > > btw, it has (almost) nothing to do with
trixbox<BR>> ><BR>> > Considering it takes the data from a mysql
table called "asterisk" and<BR>> > hard-wires the default FreePBX (or
is it TrixBox CE) password for that<BR>> > table, I'd say it has
everything to do with FreePBX.<BR>><BR>><BR>> Thanks, but yeah, we
had found this already too. It's too "tied to FreePBX"<BR>> for our use,
we want essentially the same thing but more like<BR>><BR>> asterisk
-rx "dialplan show" | fancygrapherscript.<ext><BR><BR>Here's a quick
hack. Just looked at the dot man page. Did't even test<BR>that it is
actually valid. But it is probably a good start.<BR><BR>asterisk -rx
'dialplan show' | \<BR> awk -F"'" '<BR> BEGIN {printf
"digraph dialplan {\n";};<BR> /^\[ Context/
{context=$2};<BR> /^ Include =>/ {printf "\t%s ->
%s\n",context,$2};<BR> END {printf "}\n"}<BR> '<BR><BR>Only
graphs simple inclusions between contexts.<BR><BR>BTW:<BR><BR> asterisk
-rx | less<BR><BR>Behaves really strange. no scrolling possible. But I don't
see anything<BR>strange in a hexdump.<BR></BLOCKQUOTE>
<DIV><BR>Awesome. Thanks!<BR><BR>Will post updates as we
progress.<BR><BR>Thanks,<BR>Matt<BR><BR></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>