thanks for the quick reply.
i m intending to automatic hook off telephone line after 3-4 rings n then device control using dtmf.i m using mt8870 decoder for decoding the dual tone.the problem is the said this is 4 bit decoder but use 5 pins for output.can u help plz.