返回列表 發帖

想問各位如何在大機compile Asterisk?

我用Win7 Ultimate 64 bit+VMWare workstation 8裝了CentOS 5.8 64 bit, 想試o下自行compile Asterisk然後用Sangoma U100 USBfxo.
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

./configure
make
make install

TOP

  1. ## Install libraries on Centos 5 32 bits
  2. wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  3. rpm -Uvh epel-release-5-4.noarch.rpm
  4. rm -rf epel-release-5-4.noarch.rpm

  5. ## yum update
  6. yum groupinstall "Development tools"
  7. yum -y install nano ncurses-devel neon-devel sqlite sqlite-devel iksemel iksemel-devel mysql-server mysql-devel libical
  8. yum -y install gcc gcc-c++ libxml2-devel ncurses-devel openssl-devel mysql-devel sqlite-devel unixODBC-devel libtool-ltdl-devel freetds-devel libvorbis-devel alsa-lib-devel bluez-libs-devel curl-devel libtiff-devel  libssl-dev speex speex-devel libusb-devel CIG-devel openldap-devel gmime-devel net-snmp-devel flex bison lua-devel subversion make gnutls-devel gnutls-utils kernel-devel newt-devel mlocate lynx tar wget nmap bzip2 mod_ssl crontabs vixie-cron libxml2 texinfo neon neon-devel


  9. ## Install Asterisk 11 Branch
  10. mkdir /usr/src/asterisk
  11. cd /usr/src/asterisk
  12. svn co http://svn.asterisk.org/svn/asterisk/branches/11 asterisk11
  13. cd asterisk11
  14. contrib/scripts/install_prereq install
  15. ## this is ony for format MP3 - SVN required
  16. contrib/scripts/get_mp3_source.sh
  17. contrib/scripts/get_ilbc_source.sh
  18. ./configure  
  19. make menuconfig
  20. make
  21. make install
  22. make samples
  23. make progdocs

  24. mv /etc/asterisk /etc/asterisk.samples
  25. mkdir /etc/asterisk

  26. cd contrib/init.d
  27. cp rc.redhat.asterisk /etc/init.d
  28. cd /etc/init.d
  29. mv rc.redhat.asterisk asterisk
複製代碼
回復 1# 雯雯

TOP

Limitation for USBFXO U100

DAHDI 2.6 Currently not supported, please use DAHDI 2.5.0.2 or below

http://wiki.sangoma.com/sangoma-wanpipe-usbfxo

TOP

我用Win7 Ultimate 64 bit+VMWare workstation 8裝了CentOS 5.8 64 bit, 想試o下自行compile Asterisk然後 ...
雯雯 發表於 2012-12-12 23:48



    点解唔装Elastix?基本上asterisk可以做到的,Elastix都可以,而且冇asterisk的操作咁复杂,最重要一点是Elastix基本上已经装左好多卡的驱动,但是USB的有冇就唔知了

TOP

回復 4# bubblestar

Thank you! 不過就算裝唔到都唔緊要, 可以繼續用SPA400.
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

回復 5# lttliang

因為在NAS玩開自行compile Asterisk, 多D o野玩!
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

CK的script好像有问题:

./configure  
make menuconfig
make
make install
make samples
make progdocs

mv /etc/asterisk /etc/asterisk.samples    《----- 应该是cp
mkdir /etc/asterisk                                  《-----又mkdir? 应该不用这句,除非有别的意思。

(应该是)

TOP

The last two lines are to make a backup of asterisk default config examples and deploy my own from my PC/server or backup media

TOP

回復 9# ckleea

我跟上面的script做, CentOS reboot後唔識自動start Asterisk, 而且確有角色師兄所說的問題.
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

回復 4# bubblestar

去到這步唔識點繼續:
U100.jpg
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

你未改好 /etc/init.d/asterisk

有一句要改 path
/usr/sbin/asterisk

TOP

现在的雯雯又进入一个新德纪元了!之前用ATA + VPN,然后用Draytek的VoIP,再OBixxx,然后Asterisk GUI on NAS,现在再下一城,Aasterisk GUI on CentOS!   (估计小师妹打后会非常忙!)

TOP

回復 13# 角色

貼上成果圖:
CentOS Asterisk.jpg
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

I can tell you that you have done more than me. I can't make the GUI work with asterisk 11

TOP

返回列表