返回列表 發帖

【Raspberry Pi】—— Asterisk + chan_dongle 手動安裝

跟隨這兩個網頁,裝作了自家 compile 的Asterisk 11.X and chan_dongle

http://blog.provu.co.uk/item/396

http://www.andrius.mobi/2013/03/ ... as-gsm-gateway.html

screenshot.22-07-2013 20.45.47.png

還做了這個 GUI

screenshot.22-07-2013 21.10.05.png

TOP

是否能说详细一点呢?

就是toolchain set好,下载asterisk-11,再compile,再下载Asterisk-GUI,安装吗?

TOP

本帖最後由 ckleea 於 2013-7-24 11:56 編輯

不用,首先download個latest raspberrypi wheezy image
然後去digium/asterisk,download 個 source,(我用 subversion, download svn source)
跟著就是download dependent libraries (都有幾多)
慢慢做compile 就得

已做咗個image供分享

TOP

基本image 更新了,
1. debian wheezy image for raspberry pi
2. latest asterisk 11 by svn
3. latest digium gui by svn
4. mysql, samba, webmin, iaxmodem, hylafax-server
5. softether VPN (pocketix)
6. tighvncserver

約 3.69 GB size

TOP

screenshot.25-07-2013 21.44.22.png

TOP

本帖最後由 ckleea 於 2013-7-25 22:17 編輯

安裝代碼
  1. ## prepare the system and do update
  2. apt-get update
  3. apt-get upgrade
  4. apt-get install libncurses5-dev libsqlite3-dev libssl-dev usbutils unzip autoconf automake uuid subversion tightvncserver libusb-dev uuid-dev


  5. ## download and install asterisk 11
  6. mkdir /usr/src/asterisk
  7. cd /usr/src/asterisk
  8. svn co http://svn.asterisk.org/svn/asterisk/branches/11 asterisk11
  9. cd asterisk11
  10. contrib/scripts/install_prereq install
  11. ## this is ony for format MP3 - SVN required
  12. contrib/scripts/get_mp3_source.sh
  13. contrib/scripts/get_ilbc_source.sh
  14. ./configure  
  15. make menuconfig
  16. make
  17. make install

  18. ## Install Asterisk GUI
  19. cd /usr/src/asterisk
  20. svn checkout http://svn.digium.com/svn/asterisk-gui/branches/2.0/ gui
  21. cd gui
  22. ./configure
  23. make
  24. make install

  25. ## Install USB-modeswitch (optional)
  26. cd /usr/src/asterisk
  27. wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.2.5.tar.bz2
  28. wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20121109.tar.bz2
  29. tar -jxvf usb-modeswitch-1.2.5.tar.bz2
  30. tar -jxvf usb-modeswitch-data-20121109.tar.bz2
  31. cd usb-modeswitch-1.2.5
  32. make all
  33. make install
  34. cd ../usb-modeswitch-data-20121109
  35. make install
  36. cd ..

  37. ## download and install chan_dongle
  38. cd /usr/src/asterisk
  39. wget https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip
  40. unzip asterisk11.zip
  41. cd asterisk-chan-dongle-asterisk11/
  42. aclocal
  43. autoconf
  44. automake -a
  45. ./configure
  46. make all
  47. make install


  48. ## Install webmin
  49. apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
  50. wget http://prdownloads.sourceforge.net/webadmin/webmin_1.630_all.deb
  51. dpkg --install webmin_1.630_all.deb


  52. ## Install others
  53. apt-get samba mysql-server iaxmodem hylafax-server php5
複製代碼

TOP

Thanks CK. I shall follow your installation guide to install Asterisk with Digium-GUI on my Raspberry PI.

TOP

CK, followed your 安裝代碼 step by step but something wrong during line 51 & 52 with prompt 'No rule to make target 'install'...

Also, how to enter the asterisk config page?

TOP

Line 51 & 52 are for dongle installation. Were the set up interrupted and you are not in the directory?

TOP

Thanks CK,

Finally, I followed another article by using my current Freepbx system with 'install-dongle' and make it successfully.

PS: I'm using a Huawei E-160G USB 3G Modem (bought from TaoBao)

Here is the website for anyone feel interested.

http://www.raspberry-asterisk.or ... y-with-chan_dongle/

TOP

Thanks CK,

Finally, I followed another article by using my current Freepbx system with 'install-dongle' and make it successfully.

PS: I'm using a Huawei E-160G USB 3G Modem (bought from TaoBao)

Here is the website for anyone feel interested.

http://www.raspberry-asterisk.or ... y-with-chan_dongle/

TOP

回復 12# Thunderman


    I just don't want to use freepbx. So I compile my own version

TOP

D*mn, the cheap charger("apple"-style 5V1A) got short-current and burned.

Have you monitored the current as raspberry pi+3G dongle are running? I am considering of 2.1A charger from Apple or Belkin. 1A charger might be overloaded to deliver power to both raspberry and dongle.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

回復 14# Qnewbie

Yes, there is risk. Same warning received from A-Lang Ching on the use of 5V 2A USB charger for his nextPBX.

I also believe the dongle is the case that nor running properly.

TOP

返回列表