[asterisk-users] Dialplan Visualization (Extensions.conf or Dialplan Show)

Matthew Gibson mattgibson.ca at gmail.com
Mon Apr 21 04:26:35 CDT 2008


On Mon, Apr 21, 2008 at 5:11 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
wrote:

> 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.
>

Awesome. Thanks!

Will post updates as we progress.

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080421/36e52cda/attachment.htm 


More information about the asterisk-users mailing list