Go over to Sourceforge.com and do a search on Turbopower Asyncpro. This library includes all kinds of TAPI functions. I worked on a project that used this to autoanswer a phone, play voicemail options, listen for menu response and play wave file answers. Recording input to a wave --not sure about. But this could lead you in the right direction.
Scotto the Unwise