I want to be able to intercept/answer an incoming call on a per-cid basis and, when I find appropriate, stream a local audio file as the answer to the call - i.e over the speech channel of an ordinary voice call. This should ideally be done in background mode, either when I'm connected in an ongoing voice call or just silently, without blocking other incoming calls, when I'm not.
Reason for this is that I want to create The Ultimate Black List App, that answers my phone when telemarketing people calls me (or any other individual that I simply do not want to communicate with) and dumps an audio file of my own choice (preferably selected based in incoming CID) into their ear.
Any ideas on how to do this, anyone?