uestchp / asterisk-rpi

Install Asterisk on Raspberry PI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asterisk on Raspberry PI

Install Asterisk/FreePBX on Raspberry PI with Google Voice.

Motivation

I pay $30+ a month for a VoIP BYOD service, including selected World calling plan. I already have Asterisk in place at home but has to maintain a VM off Xen. With the powerful combination of Asterisk, Raspberry PI, and Google Voice, the cost is greatly reduced.

Installation

disable_ipv6='true'

After Restart

After restart (and module upgrades), reboot doesn't restart amportal. The command amportal is replaced by fwconsole. Use the following commands to restart asterisk

chmod +x /usr/sbin/fwconsole
fwconsole chown
fwconsole restart

Power Management

Turn off power management will resolve wifi timeout problem. For Raspberry PI 2

echo "options 8192cu rtw_power_mgnt=0" >> /etc/modprobe.d/8192cu.conf
reboot

For Raspberry PI 3

# turn off power management
sudo iwconfig wlan0 power off

Enable channel 12 and 13

iwlist wlan0 channel
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
sudo rpi-update 41f8b4812ad653abf321b8c54cb4bee57ebdb129
reboot
iwlist wlan0 channel

Add to startup script

echo "/sbin/iwconfig wlan0 power off" > /etc/init.d/wireless_power_off
update-rc.d /etc/init.d/wireless_power_off defaults

About

Install Asterisk on Raspberry PI