On Mon, Apr 21, 2008 at 04:19:16AM -0400, Matthew Gibson wrote: > On Sun, Apr 20, 2008 at 11:54 PM, Tzafrir Cohen <[EMAIL PROTECTED]> > wrote: > > > On Mon, Apr 21, 2008 at 02:09:26AM +0300, Moshe Brevda wrote: > > > will this do? > > > > > http://yum.trixbox.org/centos/5/RPMS/repodata/repoview/tb-trixboxgraph-0-0.1.0-2.html > > > > > > btw, it has (almost) nothing to do with trixbox > > > > Considering it takes the data from a mysql table called "asterisk" and > > hard-wires the default FreePBX (or is it TrixBox CE) password for that > > table, I'd say it has everything to do with FreePBX. > > > Thanks, but yeah, we had found this already too. It's too "tied to FreePBX" > for our use, we want essentially the same thing but more like > > asterisk -rx "dialplan show" | fancygrapherscript.<ext>
Here's a quick hack. Just looked at the dot man page. Did't even test that it is actually valid. But it is probably a good start. 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"} ' Only graphs simple inclusions between contexts. BTW: asterisk -rx | less Behaves really strange. no scrolling possible. But I don't see anything strange in a hexdump. -- 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