News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Yate for free GV on OBi1xx

Started by azrobert, December 05, 2017, 12:00:17 PM

Previous topic - Next topic

azrobert

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.

N7AS

I am interested in anything FREE.
Grant N7AS
Prescott Valley, AZ
https://www.n7as.com

A journeyman electrician sent his apprentice with a 5-gallon bucket and was told to put the ends of the service drop in the bucket and fill it with volts. He was there all day.

vtsnaab

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.

azrobert

#3
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
[GoogleVoice1]
enabled=yes
protocol=jabber
username=GV_ID
domain=gmail.com
password=GV_Password
options=allowplainauth


regexroute.conf
[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
[general]
[100]
password=password


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


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


yjinglechan.conf
[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

GPz1100

Azrobert, does Yate support oauth2?

azrobert