Difference between revisions of "Creating an Asterisk exchange with 3G dongle"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
'''Script to connect dongle''' ( Huwaei E160 )<br>
 
''./sakis3g  connect --console APN='CUSTOM_APN' USBINTERFACE='3' USBMODEM='12d1:1003' OTHER='USBMODEM' MODEM='OTHER'  CUSTOM_APN='giffgaff.com' APN_USER='giffgaff' APN_PASS='password'''<br>
 
'''When raspbx os was installed instead of Raspbian the device numbers changed :''' '''Bold text'''<br>
 
root@raspbx:~# ./sakis3g connect --console APN='CUSTOM_APN' USBINTERFACE='0' USBMODEM='12d1:140c' OTHER='USBMODEM' MODEM='OTHER' CUSTOM_APN='giffgaff.com' APN_USER='giffgaff' APN_PASS='password'<br>
 
E160 connected to giffgaff (23410).<br><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 ie, not using raspbx !'''  http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_for_Raspberry_Pi_on_Raspbian <br>

Revision as of 12:51, 14 March 2015

Install asterisk manually ie, not using raspbx ! http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_for_Raspberry_Pi_on_Raspbian

sudo apt-get -y install vim mlocate zip unzip gcc make hgsvn libssl-dev libtiff4-dev \
libsqlite3-dev subversion mysql-server libmysqlclient-dev libmysqlclient18 libnewt-dev \
libuuid1 libxslt1-dev liburiparser1 libncurses5-dev libjansson-dev libogg-dev libspandsp-dev \
libjansson4 uuid-dev libxml2 mime-construct sendmail

  • Download and configure speedex

cd /usr/src
sudo wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
sudo tar xvf speex-1.2rc1.tar.gz
sudo rm -f speex-1.2rc1.tar.gz

cd speex-1.2rc1
sudo ./configure


sudo make
sudo make install

  • Download and configure Asterisk

cd /usr/src
sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
sudo tar xvf asterisk-12-current.tar.gz
cd asterisk-12......

sudo ./contrib/scripts/get_mp3_source.sh
sudo ./configure
sudo make menuselect

sudo make
sudo make install
sudo make samples
sudo make config

sudo ldconfig

Forwarding must be enabled
root@raspbx:~# cat /proc/sys/net/ipv4/ip_forward
0
root@raspbx:~# sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
root@raspbx:~# cat /proc/sys/net/ipv4/ip_forward
1
root@raspbx:~#