How can I programmatically play a wave file through a voice modem.

Buying an answer machine is not an option.

Hardware limitations prevent me from connecting the sound card output to the modem mic input.

Normal modem control, dialup, answer etc is not a problem. I have written code for that. It's just the .wav file playing that I am stuck on.

Looks like I need to learn about TAPI.
Anybody got any sample code to do this or can point me towards an online tutorial?

Thanks