|
|
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | | + | [[ Script to connect E160 dongle ]] to broadband<br> |
− | '''Install asterisk manually ie, not using raspbx !''' http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_for_Raspberry_Pi_on_Raspbian <br>
| + | [[ Install Asterisk manually on Raspbian ]] ie not using raspbx<br> |
− | | + | [[ IP Forwarding and iptables configuration ]] when using the Pi as a router ( with WiFi Access point connexted ) |
− | * [[ Set a static IP address for PI. ]] ( http://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address)
| + | |
− | * Possibly set alias : alias ll="ls -la --color --group-directories-first --time-style=\"+%Y-%m-%d %H:%M\""
| + | |
− | * Install prerequisites :<br>
| + | |
− | sudo apt-get -y install vim mlocate zip unzip gcc make hgsvn libssl-dev libtiff4-dev \<br>
| + | |
− | libsqlite3-dev subversion mysql-server libmysqlclient-dev libmysqlclient18 libnewt-dev \<br>
| + | |
− | libuuid1 libxslt1-dev liburiparser1 libncurses5-dev libjansson-dev libogg-dev libspandsp-dev \<br>
| + | |
− | libjansson4 uuid-dev libxml2 mime-construct sendmail<br>
| + | |
− | * Download and configure speedex<br>
| + | |
− | cd /usr/src<br>
| + | |
− | sudo wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz<br>
| + | |
− | sudo tar xvf speex-1.2rc1.tar.gz<br>
| + | |
− | sudo rm -f speex-1.2rc1.tar.gz<br>
| + | |
− | | + | |
− | cd speex-1.2rc1<br>
| + | |
− | sudo ./configure<br>
| + | |
− | | + | |
− | | + | |
− | sudo make<br>
| + | |
− | sudo make install<br>
| + | |
− | * Download and configure Asterisk
| + | |
− | cd /usr/src<br>
| + | |
− | sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz<br>
| + | |
− | sudo tar xvf asterisk-12-current.tar.gz<br>
| + | |
− | cd asterisk-12......<br>
| + | |
− | | + | |
− | sudo ./contrib/scripts/get_mp3_source.sh<br>
| + | |
− | sudo ./configure<br>
| + | |
− | sudo make menuselect<br>
| + | |
− | | + | |
− | sudo make<br>
| + | |
− | sudo make install<br>
| + | |
− | sudo make samples<br>
| + | |
− | sudo make config<br>
| + | |
− | | + | |
− | sudo ldconfig<br>
| + | |
− | | + | |
− | '''Forwarding must be enabled'''<br>
| + | |
− | root@raspbx:~# cat /proc/sys/net/ipv4/ip_forward<br>
| + | |
− | 0<br>
| + | |
− | root@raspbx:~# sysctl -w net.ipv4.ip_forward=1<br>
| + | |
− | net.ipv4.ip_forward = 1<br>
| + | |
− | root@raspbx:~# cat /proc/sys/net/ipv4/ip_forward<br>
| + | |
− | 1<br>
| + | |
− | root@raspbx:~#
| + | |