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

From MyWiki
Jump to: navigation, search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Script to connect dongle''' ( Huwaei E160 )<br>
+
[[ Script to connect E160 dongle ]] to broadband<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>
+
[[ Install Asterisk manually on Raspbian ]] ie not using raspbx<br>
'''When raspbx os was installed instead of Raspbian the device numbers changed :''' '''Bold text'''<br>
+
[[ IP Forwarding and iptables configuration ]] when using the Pi as a router ( with  WiFi Access point connexted )
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>
+
http://sourceforge.net/projects/pbxinaflash/files/IncrediblePi-1.x-Debian-6/  ????What is this????? <br>
+
* 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 :<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>
+

Latest revision as of 12:59, 14 March 2015

Script to connect E160 dongle to broadband
Install Asterisk manually on Raspbian ie not using raspbx
IP Forwarding and iptables configuration when using the Pi as a router ( with WiFi Access point connexted )