<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>