Board logo

標題: 【Raspberry Pi】—— Asterisk + chan_dongle 手動安裝 [打印本頁]

作者: ckleea    時間: 2013-7-22 21:18     標題: 【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 20.45.47.png (2013-7-22 21:17, 46.73 KB) / 下載次數 994
http://telecom-cafe.com/forum/attachment.php?aid=2652&k=17af054ea3bc9fbf92bdf8e30997083d&t=1732316051&sid=pw61yp


作者: ckleea    時間: 2013-7-22 21:29

screenshot.22-07-2013 21.10.05.png

圖片附件: screenshot.22-07-2013 21.10.05.png (2013-7-22 21:29, 107.06 KB) / 下載次數 876
http://telecom-cafe.com/forum/attachment.php?aid=2653&k=20d0577527400ebf80734d94e80fbf1c&t=1732316051&sid=pw61yp


作者: 角色    時間: 2013-7-22 23:17

是否能说详细一点呢?

就是toolchain set好,下载asterisk-11,再compile,再下载Asterisk-GUI,安装吗?
作者: ckleea    時間: 2013-7-23 07:58

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

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

已做咗個image供分享
作者: ckleea    時間: 2013-7-25 21:40

基本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
作者: ckleea    時間: 2013-7-25 22:14

screenshot.25-07-2013 21.44.22.png

圖片附件: screenshot.25-07-2013 21.44.22.png (2013-7-25 22:13, 68.7 KB) / 下載次數 911
http://telecom-cafe.com/forum/attachment.php?aid=2659&k=e9ccb81cf7dd44502c2d8872991e0b9b&t=1732316051&sid=pw61yp


作者: ckleea    時間: 2013-7-25 22:16

本帖最後由 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
複製代碼

作者: 角色    時間: 2013-7-26 00:33

Thanks CK. I shall follow your installation guide to install Asterisk with Digium-GUI on my Raspberry PI.
作者: Thunderman    時間: 2013-7-27 08:22

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?
作者: ckleea    時間: 2013-7-28 06:27

Line 51 & 52 are for dongle installation. Were the set up interrupted and you are not in the directory?
作者: Thunderman    時間: 2013-8-3 13:35

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/
作者: Thunderman    時間: 2013-8-3 13:35

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/
作者: ckleea    時間: 2013-8-3 17:23

回復 12# Thunderman


    I just don't want to use freepbx. So I compile my own version
作者: Qnewbie    時間: 2013-8-10 04:52

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.
作者: ckleea    時間: 2013-8-10 06:33

回復 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.
作者: SuiYan    時間: 2013-9-5 00:38

今日終於俾我買到隻平 hwuwei E180, 解了鎖, 欠voice enable未解到.
搵唔到要解voice的檔案.
所以. 未玩得住.
作者: SuiYan    時間: 2013-9-7 14:59

本帖最後由 SuiYan 於 2013-9-7 17:06 編輯

Update了E180新firmware, 自動開啟了語音功能.
作者: 角色    時間: 2013-9-7 16:35

回復 17# SuiYan

那么你用什么GUI呢?Asterisk-GUI,还是FreePBX呢?
作者: SuiYan    時間: 2013-9-7 17:06

現在用緊asterisk-gui, 早前我用過RASPBERRY PI版的FREEPBX, 看見內置CHAN_DONGLE
作者: ckleea    時間: 2013-9-7 18:08

回復 17# SuiYan
唔錯
作者: 角色    時間: 2013-9-15 00:18

回復 7# ckleea

直接打command不行,要用sudo command才能进行。
作者: 角色    時間: 2013-9-15 00:50

回復 7# ckleea

Root Password是否多少呢?
作者: 角色    時間: 2013-9-15 02:00

在./configure中出现下面问题:

configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.


然后用下面command去安装libxm2-dev package

sudo apt-get install libxml2-dev




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2