Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tzafrir.cohen at xorco...
Guest





PostPosted: Fri Apr 18, 2008 8:51 am    Post subject: [asterisk-users] Dialplan Visualization (Extensions.conf or Reply with quote

On Fri, Apr 18, 2008 at 04:28:29AM -0400, Matthew Gibson wrote:
Quote:
Hello,

About 4 years ago there used to be a script floating around to generate
dynamic graphs/diagrams of extensions.conf (the asterisk dialplan).

It was using GraphViz to perform the graphing.

Does anyone have a copy of this script, or a better solution to generate a
flowchart of my dialplan?

from extensions.conf or from the output of 'dialplan show'? The latter
assumes that Asterisk is running, but is also probably simpler to
implement.

For the former, I saw a perl module Asterisk::Config on CPAN. There are
probably other ways to do that.

--
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
Back to top
mattgibson.ca at gmail...
Guest





PostPosted: Fri Apr 18, 2008 2:19 pm    Post subject: [asterisk-users] Dialplan Visualization (Extensions.conf or Reply with quote

On Fri, Apr 18, 2008 at 9:51 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
wrote:

Quote:
On Fri, Apr 18, 2008 at 04:28:29AM -0400, Matthew Gibson wrote:
Quote:
Hello,

About 4 years ago there used to be a script floating around to generate
dynamic graphs/diagrams of extensions.conf (the asterisk dialplan).

It was using GraphViz to perform the graphing.

Does anyone have a copy of this script, or a better solution to generate
a
Quote:
flowchart of my dialplan?

from extensions.conf or from the output of 'dialplan show'? The latter
assumes that Asterisk is running, but is also probably simpler to
implement.


Either or. I would assume from "dialplan show" might be better because if
includes and the like. From extensions.conf might work too if there were no,
or limited includes.

Quote:

For the former, I saw a perl module Asterisk::Config on CPAN. There are
probably other ways to do that.


I'll check it out. Thanks.

I know there was a script, I think it was linked from the "asterisk
cookbook" (remember that?@#$), but I've since found a few links to the
cookbook, and there is no mention in it, I also tried voip-info, and
google's cache, but couldn't find it there either.

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080418/edf566a0/attachment.htm
Back to top
moshe at ipconnect.co.il
Guest





PostPosted: Sun Apr 20, 2008 6:09 pm    Post subject: [asterisk-users] Dialplan Visualization (Extensions.conf or Reply with quote

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

On Fri, Apr 18, 2008 at 10:19 PM, Matthew Gibson <mattgibson.ca at gmail.com>
wrote:

Quote:


On Fri, Apr 18, 2008 at 9:51 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
wrote:

Quote:
On Fri, Apr 18, 2008 at 04:28:29AM -0400, Matthew Gibson wrote:
Quote:
Hello,

About 4 years ago there used to be a script floating around to
generate
Quote:
dynamic graphs/diagrams of extensions.conf (the asterisk dialplan).

It was using GraphViz to perform the graphing.

Does anyone have a copy of this script, or a better solution to
generate a
Quote:
flowchart of my dialplan?

from extensions.conf or from the output of 'dialplan show'? The latter
assumes that Asterisk is running, but is also probably simpler to
implement.


Either or. I would assume from "dialplan show" might be better because if
includes and the like. From extensions.conf might work too if there were no,
or limited includes.



Quote:

For the former, I saw a perl module Asterisk::Config on CPAN. There are
probably other ways to do that.


I'll check it out. Thanks.

I know there was a script, I think it was linked from the "asterisk
cookbook" (remember that?@#$), but I've since found a few links to the
cookbook, and there is no mention in it, I also tried voip-info, and
google's cache, but couldn't find it there either.

Thanks,
Matt


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


--
Moshe Brevda, CTO
ipconnect, ltd.
26 Strauss St., Jerusalem, Israel
W. 1.800.800.456 (+9722.569.5295)
M. +97254.666.1367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080421/f18584f9/attachment.htm
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Sun Apr 20, 2008 10:54 pm    Post subject: [asterisk-users] Dialplan Visualization (Extensions.conf or Reply with quote

On Mon, Apr 21, 2008 at 02:09:26AM +0300, Moshe Brevda wrote:
Quote:
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.

--
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
Back to top
mattgibson.ca at gmail...
Guest





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

On Sun, Apr 20, 2008 at 11:54 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
wrote:

Quote:
On Mon, Apr 21, 2008 at 02:09:26AM +0300, Moshe Brevda wrote:
Quote:
will this do?

http://yum.trixbox.org/centos/5/RPMS/repodata/repoview/tb-trixboxgraph-0-0.1.0-2.html
Quote:

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>

Smile

We're going to look at the graphiz stuff this has incorporated and see if we
can do some really crazy regexes to accomplish this.. unless there is a way
to make asterisk export the dialplan in xml format or some form of
structured format that anyone knows of..

?

thanks,
matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080421/57a5906f/attachment.htm
Back to top
tzafrir.cohen at xorco...
Guest





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

On Mon, Apr 21, 2008 at 04:19:16AM -0400, Matthew Gibson wrote:
Quote:
On Sun, Apr 20, 2008 at 11:54 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>
wrote:

Quote:
On Mon, Apr 21, 2008 at 02:09:26AM +0300, Moshe Brevda wrote:
Quote:
will this do?

http://yum.trixbox.org/centos/5/RPMS/repodata/repoview/tb-trixboxgraph-0-0.1.0-2.html
Quote:

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