wardmundy
Nerd Uno
- Joined
- Oct 12, 2007
- Messages
- 19,201
- Reaction score
- 5,219
** NOTE: THIS NOW WORKS ON CENTOS & UBUNTU PLATFORMS **
In case you haven't been following this thread on DSL Reports Forum, here is the patch that will let you modify Asterisk 11 to support OAUTH authentication for Google Voice. Once you apply this patch and restart Asterisk 11, your Google Voice connections will all die until you go through the procedure to reenable them with OAUTH authentication (Procedure is documented below). This is a cost-free OAUTH solution provided by Ryan Tilton at GVsip with MAJOR special help from dziny. We will integrate this into all Incredible PBX builds shortly.
In case you haven't been following this thread on DSL Reports Forum, here is the patch that will let you modify Asterisk 11 to support OAUTH authentication for Google Voice. Once you apply this patch and restart Asterisk 11, your Google Voice connections will all die until you go through the procedure to reenable them with OAUTH authentication (Procedure is documented below). This is a cost-free OAUTH solution provided by Ryan Tilton at GVsip with MAJOR special help from dziny. We will integrate this into all Incredible PBX builds shortly.
Code:
# on Ubuntu platform, use this section:
apt-get -y install curl libcurl3-gnutls libcurl4-gnutls-dev libjansson4 libjansson-dev ca-certificates unzip
# on CentOS (64-bit only) platform, use this section:
cd /root
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/x86_64/jansson-2.6-1.el6.x86_64.rpm
rpm -Uvh jansson*
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/x86_64/jansson-devel-2.6-1.el6.x86_64.rpm
rpm -Uvh jansson-devel*
# on CentOS (32-bit only) platform, use this section:
cd /root
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/i386/jansson-2.6-1.el6.i686.rpm
rpm -Uvh jansson*
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/i386/jansson-devel-2.6-1.el6.i686.rpm
rpm -Uvh jansson-devel*
# on ALL platforms, do the following:
cd /usr/src/asterisk-11*
wget http://incrediblepbx.com/asterisk11-gv-o2auth.patch.zip
unzip asterisk11-gv-o2auth.patch.zip
patch -p1 < asterisk11-gv-o2auth.patch
make distclean
autoconf
./bootstrap.sh
./configure
make menuselect.makeopts
menuselect/menuselect --enable-category MENUSELECT_ADDONS menuselect.makeopts
menuselect/menuselect --enable CORE-SOUNDS-EN-GSM --enable MOH-OPSOUND-WAV --enable EXTRA-SOUNDS-EN-GSM --enable cdr_mysql menuselect.makeopts
menuselect/menuselect --disable app_mysql --disable app_setcallerid --disable func_audiohookinherit menuselect.makeopts
# in the next step, verify that the setup is the way you expect
make menuselect
make
make install
echo "icesupport=yes" >> /etc/asterisk/sip_general_custom.conf
echo "stunaddr=stun.counterpath.net" >> /etc/asterisk/sip_general_custom.conf
amportal restart