Hi Jaime,
I've not programmed such stuff, but I've purchased a bunch and here's what others have been able to do:
>1) How do i know when the call is being answered?
This is an easy on for the hardware. How to programmatically detect will depend on the specifics of the card. There are a lot of options for cards. Depending on the specifics of your needs, this will vary.
>2) How can i detect an answering machine
This is very difficult. Even the big dialers screw this up. They usually attempt to "detect" an answering maching by measuring the length of sounds on the line once the call is picked up. A "Hello" of 1.5 secs means someone is on the phone. "Hello, this is John I'm not here right now" or 5 sec means answering machine. Doesn't work very well.
>3) How can i then play a WAV file through the phone?
Depends on the card, but very doable.
Take a look at
http://www.tmcnet.com. They publish some of the leading magazines for the call center market. Every major vendor will be advertizing there.