Try this - I made changes to my logic.tcl to read the IP on a certain DTMF sequence. Its not a whole module just a function in logic.tcl. It calls the bash script also in that link to find the IP of the specified interface. Since there wasn't a dot
I use a dash to separate the IP. Also it only does IPv4 for what that's worth, good luck typing an IPv6 by hand.