The Following User Says Thank You to xur17 For This Useful Post: | ||
![]() |
2010-07-19
, 03:42
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#672
|
When I tried entering the url into my browser (with my useragent set as an iphone), I got that same response. I managed to get a correct response when I used the live http headers extension for firefox, and replayed a recording of dialing the number using the iphone web app.
The post content listed in the Live HTTP Headers extension is:
EDIT: I figured out what the post data is. This is the content of the cookie named gvx.Code:{"gvx":"random-letters-and-numbers-here:thirteennumbershere"}
![]() |
2010-07-19
, 23:17
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#673
|
I have been playing with the android google voice dialing, and have made some progress. It appears that a request just needs to be made to:
With a user agent of:Code:https://www.google.com/voice/m/x?m=call&n=18004664411&f=&v=6
You should receive a response back that contains access_number as a variable. This is the number that than needs to be dialed to make an outgoing call.Code:User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
I tried to look through the code for TOR, but I don't know python, and don't even know where to begin looking. I have made some code before that logged into a site, and submitted some post parameters, but I am having some trouble logging into google.
Some help / direction would be great.
![]() |
2010-07-20
, 01:12
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#674
|
![]() |
2010-07-20
, 01:36
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#675
|
All right I've reached the stage where I am able to consistently get the access number to dial out to.
See the code starting here to see the type of request that I send out.
See the code here to see how I parse out the response for the access number.
At this point I'm taking a breather while I try to figure out how to dial out using telepathy, because without that, this effort is mostly useless.
![]() |
2010-07-20
, 02:00
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#676
|
Awesome! This is one of the main things that I really wish I had that android has. Dialing out while in the car is a pain in the neck because I have to wait so long, and click so much to make a call go through.
![]() |
2010-07-20
, 02:04
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#677
|
I agree about the "number-of-clicks-it-takes-to-dial-out" bit, but I'm not jubilant about my status yet: I don't have a common way to dial out.
On the n900 to dial out via GSM, there is a d-bus "api".
But it is recommended to use telepathy. Why? Because thats "the one way" that works for GSM, skype, and sip on the n900 without any hackiness like talking straight to dbus.
In the last 2 months that I've read and re-read the telepathy documents, I've learnt a lot, but not enough to understand how to dial out without me being the one handling the protocol details.
My hunch is that I will probably have to be content with dialing out using dbus on the n900 - which means no dial out for skype or sip on n900.
PS: On desktop linux and windows, I can dial out using skype - no telepathy involved there.
![]() |
2010-07-20
, 02:09
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#678
|
See the code starting here to see the type of request that I send out..
![]() |
2010-07-20
, 02:21
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#679
|
Before I've always hunted around on the CM side of things. Today I looked a bit at the client APIs. There is the Approver Interface. Sadly I think the call is already approved before the "Accept"/"Reject" buttons appear.
This means its back to hacking the UI through CM if at all. What I tried before was trying to imitate hitting the "Accept" button. The main problem with this is the Ui has to recognize you've done this. I've only played with this through adding the person and maybe a little bit extra.
I'm at the point of concluding that I don't think its possible. I'm contemplating talking with the Telepathy folk about some possible additions to the Client API to make our job easier.
![]() |
2010-07-20
, 02:22
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#680
|
Let me see if I get this straight. You are constructing the URL with all of the parameters, sending the cookies through the header (as expected I assume is the normal Qt way of doing cookies), and POSTing the gvx?
The post content listed in the Live HTTP Headers extension is:
Were you submitting the url as a post request, or a get request?
I can attach the Live HTTP Headers file if that would be helpful.
Last edited by xur17; 2010-07-19 at 03:13.