Does anyone have a code sample/program they are willing to share that will allow me to record a phone call using my computers modem.

I'm basically wanting my computer to detect that a call is in progress and allow the user to record the conversation to disk.


Thanks in Advance
-David