Last year I posted a PHP script that lets you dial phone numbers using Grand Central. I updated it this morning to support Google Voice as well.
The syntax is the same
<?PHP $gv = new GoogleVoice('[email protected]', 'password'); $gv->call($your_number, $their_number);
You can grab the code from my google-voice-dialer project on GitHub.