Astograph

Astograph is a simple python tool to represent visually your Asterisk dialplan

It uses GraphViz to draw the links between included contexts

The code

Get the code here (using our beloved git)

git clone http://git.abourget.net/astograph.git

or just download the copy on my drive

Example usage

Take this extensions.conf file:


    

and run:

cat extensions.conf | ./astograph.py | dot -Tpng:cairo > go.png

(make sure you have GraphViz installed) and you'll get this:

GraphViz representation of the extensions.conf piped in

Dotted lines mean Possible Gotos and solid lines mean Context inclusions.

You can pipe a bunch of extensions.conf files (if you've splitted them with #includes)

Example 2

Here is another example, written in the Digium Advanced Training Class:

More complete example

Contact, bugs, reports, etc..

Have any questions, bugs, patches, send them out to Alexandre Bourget (that's me): alex at bourget dot cc

Have fun!