December 15, 2017, 01:44:17 pm *
Welcome, Guest. Please login or register.
News:
 
   Forum Home   Search Login Register OBiTALK  
Pages: [1]
  Print  
Author Topic: Yate for free GV on OBi1xx  (Read 335 times)
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« on: December 05, 2017, 12:00:17 pm »

Yate is a free PBX that runs on Windows and supports GV. It downloads and installs in a couple minutes. After the install you need to configure 5 or 6 files. I can supply sample files. There are less than 30 lines of code for all the files. All code resides on your Windows machine including the plain GV password. It also requires you to change your GV account to accept less secure apps. If anybody is interested, post here and I'll walk you thru the setup.
Logged
N7AS
Sr. Member
****
Posts: 334



« Reply #1 on: December 05, 2017, 12:11:58 pm »

I am interested in anything FREE.
Logged

Grant N7AS
Prescott Valley, AZ
vtsnaab
Sr. Member
****
Posts: 257


« Reply #2 on: December 05, 2017, 02:07:42 pm »

Thanks for posting that info & offer Azrobert !!

Given that the Obi would then depend upon the PC/PBX for its GV connection -seems to me that we must also factor in the need for the PC & PBX to then be running 24/7, yes ??

If that is correct, it would seem better to employ some sort of online PBX for the same function, if possible...like PBXes used to be able to do ??

As of this morning both our Obi boxes ceased to function;
No big shock with the Obi110 - but the Obi2xx also quit at the very same time and none of this is endearing me towards Obi anymore except to use them as ATAs going forward.

Any further helpful info will be greatly appreciated.

Thanks.
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #3 on: December 06, 2017, 08:36:54 am »

Download Yate and run setup:
http://voip.null.ro/tarballs/yate6/yate-6.0.0-1-setup.exe

Take all the default settings.
Don't check any boxes for desktop ICONs.
Those are for the Yate Client, not Yate Server.

Using File Explorer go to:  c:\Program Files (x86)\Yate
Right click on yate-console and create a desktop shortcut.

You need to create 6 conf files.
Place these file in: c:\Program Files (x86)\Yate\conf.d
Folder conf.d also contains sample configuration files.
Copy the code into Notepad and save as the file name above code.
Do NOT save as txt file
Select file type "All Files".

The Yate folder is restricted.
Assuming you are the administrator on your computer, you will be prompted when saving a file.
You can delete files.
You won't be able to modify an existing file.
You need to change the permissions on the Yate folder to make mods.
You can maintain the files in another location then delete/copy modified file.

Here are the 6 files:

accfile.conf
Code:
[GoogleVoice1]
enabled=yes
protocol=jabber
username=GV_ID
domain=gmail.com
password=GV_Password
options=allowplainauth

regexroute.conf
Code:
[contexts]
${in_line}GoogleVoice1=;called=100;jingle_version=0;jingle_flags=noping;dtmfmethod=rfc2833
[default]
^100$=return;called=100
${username}^$=-;error=noauth
^\(1[2-9][0-9]\{9\}\)$=jingle/\1@voice.google.com;line=GoogleVoice1;\
 ojingle_version=0;ojingle_flags=noping;redirectcount=5;checkcalled=false;dtmfmethod=rfc2833
^.*$=tone/info

regfile.conf
Code:
[general]
[100]
password=password

yate-console.conf
Code:
[postload]
${modulepath}/client/jabberclient${modsuffix}=yes

yate-service.conf
Code:
[postload]
${modulepath}/client/jabberclient${modsuffix}=yes

yjinglechan.conf
Code:
[general]
servermode=no
stanza_timeout=10000
ping_interval=100000

accfile defines the GV trunk. Replace GV_ID and GV_Password. Don't use "gmail.com" for ID.

regfile defines extensions. You can use any number or name. Add 2 more lines for another extension.

regexroute contains routing rules. I'm only allowing 11 digit outbound numbers, so the OBi must convert 10 or 7 digit numbers to 11. You will get a tone for invalid numbers.

yate-console is used when starting with shortcut. yate-service is used with the service.

Sign into Google accounts.
https://accounts.google.com/

Click "Apps With Account Access"
Turn on "Allow less secure apps"

Start Yate by double clicking on shortcut you created above.

Yate is also installed as a service "Yet Another Telephone Engine". Alternately you can start Yate by starting the service. Change the service to "Auto" to automatically start Yate when computer is powered on.

OBi1xx Setup:
Service Providers -> ITSP Profile A -> SIP -> ProxyServer: 192.168.1.100
Voice Services -> SP4 Service -> AuthUserName: 100
Voice Services -> SP4 Service -> AuthPassword: password

Change 192.168.1.100 to the IP address of the computer running Yate.

If GV doesn't work, sign into Google Accounts again and check activity. If the signin failed because of an unknown app, select "This is Mine" then sign into Google UnlockCaptcha to clear error.

https://accounts.google.com/DisplayUnlockCaptcha
« Last Edit: December 06, 2017, 08:41:39 am by azrobert » Logged
GPz1100
Full Member
***
Posts: 119


« Reply #4 on: December 06, 2017, 11:32:04 am »

Azrobert, does Yate support oauth2?
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #5 on: December 06, 2017, 12:02:58 pm »

Azrobert, does Yate support oauth2?
No. Just plain passwords.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC