Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
martins at bebr.ufl.edu
Guest





PostPosted: Mon Apr 21, 2008 8:34 am    Post subject: [asterisk-users] Dialplan Visualization (Extensions.conf orD Reply with quote

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:
http://www.mbs3.org/extensions-conf-sample.jpg
<http://www.mbs3.org/extensions-conf-sample.jpg>

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:
http://www.aharef.info/2006/05/websites_as_graphs.htm

More soon Smile

Martin Smith, Systems Developer
martins at bebr.ufl.edu
Bureau of Economic and Business Research
University of Florida
(352) 392-0171 Ext. 221

________________________________

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matthew
Gibson
Sent: Monday, April 21, 2008 5:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Dialplan Visualization
(Extensions.conf orDialplan Show)




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/4efdab2e/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services