[asterisk-users] Dialplan Visualization (Extensions.conf or Dialplan Show)
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Mon Apr 21 04:11:53 CDT 2008
On Mon, Apr 21, 2008 at 04:19:16AM -0400, Matthew Gibson wrote:
> On Sun, Apr 20, 2008 at 11:54 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
> 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: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