PIONEERS Asterisk OAUTH GV patches

twinclouds

Guru
Joined
Feb 20, 2010
Messages
54
Reaction score
2
A simplified DIY Google Voice OAUTH procedure is available here. Nobody except you has access to your OAUTH tokens using this new procedure.
Ward:
Thank you very much for your effort and the good step by step how to. The recompilation step is very important (the two sed/s). This is also necessary if one generates own tokens. Of course, in that case, a simple text editing will be more convenient.
 
Joined
Oct 25, 2010
Messages
22
Reaction score
6
I'm looking forward to it on the RPi2.

I tried to find the instructions, but only saw them for Ubuntu and CentOS, not for Debian/Raspian.
 

dziny

Guru
Joined
Sep 4, 2014
Messages
45
Reaction score
19
I'm looking forward to it on the RPi2.

I tried to find the instructions, but only saw them for Ubuntu and CentOS, not for Debian/Raspian.

As Ubuntu is debian based u can use Ubuntu instructions.
 

Dave Gray

Guru
Joined
May 22, 2013
Messages
150
Reaction score
60
Finally got it to work.
There's multiple patches running around. If you see the hardcoded ID and secret:
Code:
    const char * client_id = "470306186573-jtdetm9fb2b28k4gumaleamea7a14deh.apps.googleusercontent.com";
    const char * client_secret = "zWK1W_I-4ZlfRoFnYRoGhsrB";
you've got the wrong one. Similarly, the latest res_xmpp.c patch in the DSL thread is actually against asterisk 11.18, my installation is 11.17.1 - oops. There is a pre-patched copy of res_xmpp.c earlier in that thread, and it works.

When you create the ID/secret pair on Google, you have to create a native application, not a web app. (You'll get an error 400 page, stating that the callback URI isn't in the list if you use the wrong setting.)

But, it really does work.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,198
Reaction score
5,218
PIONEERS only: New OAUTH patches now available for Incredible PBX for Asterisk 13 builds. This uses the stable, hard-coded Incredible PBX credentials because the fancy FreePBX 12 authentication procedure does not (yet) work reliably. So this uses stock Motif module for FreePBX 12.

 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Not following something here - if I already paid initially for the GVSip service, and that seems to be working correctly, do I need to set this up?
Thanks.
 

dziny

Guru
Joined
Sep 4, 2014
Messages
45
Reaction score
19
Not following something here - if I already paid initially for the GVSip service, and that seems to be working correctly, do I need to set this up?
Thanks.

No you are fine. This is only for people who use xmpp/Motif to connect to google voice. Obviously you connect via SIP using the gateway service you have paid for.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Thanks!
I guess once this works though, I really don't bed GVSip then, right?
Question is if it's worth switching off of them, I have had a few issues previously...
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,198
Reaction score
5,218
If you want the more flexible SIP connection to Google Voice, stick with one of the gateways. If you prefer no middleware and no middleman, this is a great alternative.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Gotcha, thanks Ward!
And still curious if there's any reason to switch to billsimon's GV gateway from GVSip...
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
And still curious if there's any reason to switch to billsimon's GV gateway from GVSip...

The extra features of Google Voice Gateway are more interesting for people who are connecting phones to the service than for those who are connecting Asterisk. For Asterisk, it's just a SIP trunk, and even that is optional since you have other ways to connect directly to Google Voice. For people connecting phones directly, they get multi-proxy redundancy, multiple registrations, extension-to-extension calling, and SIP URI forwarding. There's an experimental fax forwarding feature available. If I were using only Google Voice, I'd personally use just GVGW and SIP phones and not bother running a full PBX.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Thanks billsimon.
Definitely need the PBX at this point, but I would want to set up a separate GV number with a fax line, and then I might just move over both numbers to your system.
Any way of having multiple GV numbers set up? And any way to have both GV numbers managed under one account?
Thanks a lot!
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
No, in GVGW, each account is managed and connected independently.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
And GVSip seems to be offline today (unless there's some issue on my end), I can't make any outgoing calls.
Time to switch over to something else...
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,198
Reaction score
5,218
Same news on DSL Reports. Keep an eye on this link as Ryan hangs out there... at least when his site is working. :oops:
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,198
Reaction score
5,218
GVsip reportedly fixed as of an hour ago. No hint as to what the 2-day problem was. :crazy:
 

Members online

Forum statistics

Threads
25,802
Messages
167,720
Members
19,232
Latest member
voiplads
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top