Has anyone ever worked with a modem in a way other than using modem protocol? In short, I'd like to make a phone tree app, that does a few simple things:

1. Answers the phone after X number of rings
2. Outputs wav files to the phone line, suggesting "phone tree" options
3. Listens for specific frequencies (the phone buttons)
4. Records wav file if necessary.

Is there a straightforward way to do this? (Completely for fun)

Bill