in reply to Placing a Phone Call
Take a look at Asterisk and Asterisk or AGI. Also consider SIP if you already have a SIP-capable phone and want to do things the hard way.