Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the URL to make a Google Voice call using the direct access number?

I am trying to write a Google Voice app and was wondering if anyone knew the url and post parameters to make a call using the direct access number instead of the ring-back.

like image 519
Jason Christa Avatar asked Apr 02 '11 22:04

Jason Christa


3 Answers

For example, to call 1-800-555-0111, enter

https://voice.google.com/u/0/calls?a=nc,%2B18005550111
like image 108
user13021122 Avatar answered Nov 11 '22 03:11

user13021122


I did not test it, but check this api: http://code.google.com/p/google-voice-java/

Specially, the voice.java at line 711, which is the method:

public String call(String originNumber, String destinationNumber,
                        String phoneType) throws IOException {

In line 737 they use:

URL callURL = new URL("https://www.google.com/voice/call/connect/");

and the full comments for the methods say:

            // POST /voice/call/connect/ 
            // outgoingNumber=[number to call]
            // &forwardingNumber=[forwarding number]
            // &subscriberNumber=undefined
            // &phoneType=[phone type from google]
            // &remember=0
            // &_rnr_se=[pull from page]

I hope this helps.

like image 28
Aleadam Avatar answered Nov 11 '22 04:11

Aleadam


I don't think there is an official API, but this site seems to have made some progress with the URLs you are after: http://posttopic.com/topic/google-voice-add-on-development , and there is an unofficial API here: http://sourceforge.net/projects/gvoicedotnet/

like image 29
lod3n Avatar answered Nov 11 '22 02:11

lod3n