Creating an Asterisk exchange with 3G dongle

From MyWiki
Revision as of 12:50, 6 March 2015 by George2 (Talk | contribs)

Jump to: navigation, search

Script to connect dongle ( Huwaei E160 )
./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'
When raspbx os was installed instead of Raspbian the device numbers changed : Bold text
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'
E160 connected to giffgaff (23410).

Install asterisk manually ie, not using raspbx ! http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_for_Raspberry_Pi_on_Raspbian
http://sourceforge.net/projects/pbxinaflash/files/IncrediblePi-1.x-Debian-6/  ????What is this?????

  • Set a static IP address.
  • Possibly set alias : alias ll="ls -la --color --group-directories-first --time-style=\"+%Y-%m-%d %H:%M\""
  • Install prerequisites :

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