返回列表 發帖

唔该比个asterisk1.8的详细安装方法

唔该边位大佬,比个asterisk1.8的详细安装方法,只要跟住做就可以安装成功个种。

本帖最後由 ckleea 於 2010-11-5 10:17 編輯

唔夠胆出,因為我個方法是 upgrade,而且仲用到GUI (firefox)。
基本上自已 compile會好D, 暫時用rpm 係有問題。

可以參考
http://www.telecom-cafe.com/foru ... &extra=page%3D1
用source code compile 係冇問題。

TOP

唔夠胆出,因為我個方法是 upgrade,而且仲用到GUI (firefox)。
基本上自已 compile會好D, 暫時用rpm 係有 ...
ckleea 發表於 2010-11-5 06:14



    即是要从asterisk1.6先可以升级?无法从asterisk1.4升级?
因为之前我用code装左冇法用gui

TOP

我是用source code compile to upgrade. 不過當我backup 完所有舊 files (/etc/asterisk, /usr/lib/asterisk, /var/lib/asterisk),用 rpm -e or yum remove 所有舊嘅 asterisk rpm,然後用係 asterisk source code directory make install,then make progdocs, make sample, make config,最後放回我原有 1.6 嘅 係/etc/asterisk 嘅 config file
而GUI方面,我從來都冇用rpm install, 用 svn checkout 方法。所以我的GUI 係 firefox work

基本上 asterisk 的 files 係呢幾個 directories
config: /etc/asterisk
modules, codec, apps: /usr/lib/asterisk
sound, gui, backups: /var/lib/asterisk
log: /var/log/asterisk
executable: /usr/sbin

但係唔清楚 dahdi D files。 不過我都會用再 compile 一次 source codes and make install

所以唔想亂寫,教錯大家。

另外,iax 方面有D問題。

TOP

睇来我仲系乖乖地用返asterisk1.4比较好   等 成熟左  再装asterisk1.8  话唔定冇几耐就会有asterisk1.8的ISO出来了

TOP

回復 3# lttliang

如果你的 asterisk 1.4 的是用rpm 裝,我會先 backup ,然後 yum remove and rpm -e all asterisk dahdi packages. 再 compile 1.8 source code to install.

遲D我會send out my /var/lib/asterisk/static directory. 你地可以試下 GUI 係 firefox work 唔 work

TOP

You can try this but I can't guarantee GUI works
  1. # fresh Centos 5.5 and get the following packages; more packages may be installed at the same time

  2. yum install gcc-c++ make gnutls-devel kernel-devel libxml2-devel ncurses-devel subversion doxygen texinfo curl-devel net-snmp-devel neon-devel

  3. # install dadhi
  4. cd /usr/src
  5. wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
  6. tar zxvf dahdi-linux-complete-2.4.0+2.4.0.tar.gz
  7. cd dahdi-linux-complete-2.4.0+2.4.0
  8. make
  9. make install
  10. make config
  11. chkconfig dahdi on
  12. service dahdi start
  13. cd ..

  14. #If you are using E1 cards you need to install LIBPRI.
  15. wget http://downloads.asterisk.org/pub/telephony/libss7/libss7-1.0.2.tar.gz
  16. tar zxvf libss7-1.0.2.tar.gz
  17. cd libss7-1.0.2
  18. make
  19. make install
  20. cd ..

  21. wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
  22. tar zxvf libpri-1.4.12-beta2.tar.gz
  23. cd libpri-1.4.12-beta2
  24. make
  25. make install
  26. cd ..

  27. # for Gtalk support
  28. wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
  29. tar zxvf iksemel-1.4.tar.gz
  30. cd iksemel-1.4
  31. ./configure
  32. make
  33. make install
  34. cd ..

  35. # for iCal support
  36. wget http://sourceforge.net/projects/freeassociation/files/libical/libical-0.44/libical-0.44.tar.gz/download
  37. tar zxvf libical-0.44.tar.gz
  38. cd libical-0.44
  39. ./configure --enable-shared
  40. make
  41. make install
  42. cd ..

  43. #optional; If you also want to build the PDF manual (but you don't need to, you will need an optional tool called rubber that compiles Latex into a PDF
  44. wget http://launchpad.net/rubber/trunk/1.1/+download/rubber-1.1.tar.gz
  45. tar zxvf rubber-1.1.tar.gz
  46. cd rubber-1.1
  47. ./configure
  48. make
  49. make install
  50. cd ..

  51. #install asterisk
  52. wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.0.tar.gz
  53. tar zxvf asterisk-1.8.0.tar.gz
  54. cd asterisk-1.8.0
  55. ./configure
  56. #this is ony for format MP3 - SVN required
  57. contrib/scripts/get_mp3_source.sh
  58. make menuselect
  59. make
  60. make install
  61. make samples
  62. make progdocs
  63. make config
  64. chkconfig asterisk on

  65. service dadhi start
  66. service asterisk start

  67. # finally install asterisk-gui 2.0; may or may not work for you
  68. svn checkout http://svn.digium.com/svn/asterisk-gui/branches/2.0/
  69. cd 2.0
  70. ./configure
  71. make
複製代碼

TOP

I believe that the compiliation method is the same as Asterisk 1.4 and 1.6. If you are able to compile the the previous tar ball, then you may be able to the new tar ball too.

YH

TOP

回復 8# 角色


    Yes, exactly the same. Trickly point is GUI not working well.

TOP

Just wondering if the GUI doesn't work, has somebody reported this bug to digium?

TOP

回復 10# Qnewbie


    yes, it was

TOP

不知是否在用64bit的linux關係...
如果在menuselect中全選Compiler Flags或Module Embedding後make也會出現error...

你們會全選所有選項嗎?

TOP

I do not select any in these 2 submenu

TOP

本帖最後由 ckleea 於 2010-11-7 16:22 編輯

For GUI to work under firefox, you need to copy these 2 files to /etc/asterisk
dahdi_scan.conf ; it is of zero bytes in my case
dahdi_guiread.conf;

Perhaps the GUI cannot create the files and keep on loop and loop

asterisk 1.8.png (117.38 KB)

asterisk 1.8.png

TOP

回復 12# 電腦超人


   
我沒有做全選,但也選了很多Codec 及 mySQL,Compile 時也出了問題,不過無你咁多error。  今晚再試下用default settings 再裝一次。

BTW,我compile DAHDI 時順利,沒有問題。

TOP

返回列表