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"}
'
After pressing enter, you will see something like this:
from-pstn -> from-pstn-custom
from-pstn -> ext-did
from-pstn -> ext-did-post-custom
from-pstn -> from-did-direct
Got a better way to list your asterisk includes? Show it in the comments!
Moshe Brevda, FreePBX Development Team
Found this tip useful? Don't forget to donate by click the donate button on the right!
Found this tip useful? Don't forget to donate by click the donate button on the right!
0 comments:
Post a Comment