Reply to comment
This image explains it:
Submitted by Mark on January 15, 2009 - 2:10pm.
This image explains it: http://markbowers.org/cms/files/Image/robot/signalflowchart.png
The DTMF decoder outputs a 4-bit number. That goes into a 4-bit decoder, and relays are hooked up to the outputs of that.