Quantcast
Channel: VOIP Tech Chat forum - dslreports.com
Viewing all articles
Browse latest Browse all 6358

How to Install naf Asterisk on Ubuntu for Obi100 and Google Voice

$
0
0
Here is a 'easy' install of naf Asterisk. There is no GUI, I prefer it this way. I have pre-configured it for up to 10 GV accounts (except for personal info). You can easily add more. You will need oAuth2 credentials for each GV account. For hardware I used: An old Core 2 Duo (2008) with 2GB ram and a 20GB hard drive. It uses 50 Watts continuous power. If you have a newer computer it will probably use less power. A newer Celeron would be great (under 15 Watts). Connect the ethernet port of the soon-to-be Ubuntu/Asterisk server to your router. Connect the Obi100 to the same router. I used a DVD with Ubuntu Server 17.1 to do a fresh install and then: sudo do-release-upgrade (installs latest Ubuntu version 18.04.1) sudo apt install gcc (installs C compiler) On your regular computer: Download the ZIP file I posted and extract the four configuration files. Load pjsip.conf into Notepad (or similar). Choose which SIP account (1001, 1002... through 1010) you'll be using. You'll only be editing in that account. Where it shows 'agoodpassword' change this to a made-up password you'll use later in the Obi. Enter your Google Voice 10 digit phone number in place of 1112223333 in TWO places. Add your oAuth credentials. Use copy and paste to avoid typing errors. Don't leave any spaces before or after. In place of 444555666 enter your Obi number (written on the bottom of the Obi). You can make up a number if you wish of around 9 digits. Save the file (without any formatting). Copy the newly edited file and the other three .conf files to a USB stick. Then back to the Ubuntu computer: cd /usr/srcsudo git clone https://github.com/asterisk/asterisk.gitcd asterisksudo contrib/scripts/install_prereq install (runs the installation script) (It will pop up with "ITU-T Telephone Code", enter 1 for United States.)sudo ./configure --with-pjproject-bundledsudo make menuselect.makeoptssudo menuselect/menuselect --enable chan_mobile --enable cdr_mysql --enable app_macro menuselect.makeoptssudo make (compiles C into objects)sudo make install (links objects, downloads stuff)sudo make config (Configure as service at bootup)sudo cp configs/samples/*.* /etc/asteriskcd /etc/asterisksudo find . -name "*.sample" -exec sh -c 'mv "$1" "${1%.sample}"' _ {} \; ;Insert your USB stick with the four .conf files.lsblk (this will list drives. The USB will probably be sdb1)sudo mkdir /usb (make a USB directory (on HDD) to mount the USB drive)sudo mount /dev/sdb1 /usb (USB contents are now available in /usb)sudo cp /usb/*.conf /etc/asterisk (copy our .conf files)sudo umount /dev/sdb1 (log out of USB stick) ;remove your USB stick reboot At this point Asterisk will be running in the background and your Obi will connect if you have already configured it. Tips on using a running Asterisk: sudo asterisk -r (continues running but also gives you the Asterisk CLI (command line). core stop now (stops Asterisks if you need to make configuration changes.) sudo nano /etc/asterisk/pjsip.conf (edit the pjsip.conf file) sudo Asterisk -cvvvv (re-starts Asterisk with verbose level 4) Configuring an Obi100 (other ATA's, IP phones, and softphones may be similar): Open a browser on a computer on the same LAN and log into your router to find the IP address of the Ubuntu/Asterisk server and the Obi100. Log into the Obi and go to Service Providers, ITSP Profile A, SIP Uncheck ProxyServer and type in the address of the Asterisk server. Something like 192.168.1.5 Uncheck ProxyServerPort and type in 5085 Scroll down to the bottom and click on Submit (and OK). Go to RTP (on the menu). Enable RTCP and X_RTCPMux Click on Submit and OK. Go to Voice Services, SP1 Service, SIP Credentials, AuthUserName, 1001 or whatever account # you configured earlier. AuthPassword, Enter what you used in place of 'agoodpassword'. Scroll down to bottom and click on Submit and OK. Click on Reboot in the upper right. It should register with the Asterisk server and the phone LED (on the Obi) will light up. Edit: Github file location for Asterisk New configs.zip file. Has new versions of pjsip.conf and extensions.conf.

Viewing all articles
Browse latest Browse all 6358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>