You might be interested in
twilio, or you can google for
Perl telephony. The information gathered there may clue you in on how to make a telephone interface of somesort. I would think the interface board would be quite an electronic engineering challenge. If I was going to try it, the first thing I would do is buy a cheap electronic phone that comes with a schematic, and try to cannibalize it.