RubyPhone: Nascent TSAPI library for Ruby
RubyPhone is the first Ruby project I've seen relating to telephony (although if you can leave links to others in the comments, please do!) but this code example struck me as particularly interesting:
phone.answer(call) if phone.ringing?
They say it's ultra-alpha quality, but if you're getting into this area, it's worth a look.