返回列表 發帖
本帖最後由 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

我是用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

回復 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

回復 8# 角色


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

TOP

回復 10# Qnewbie


    yes, it was

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

After make install for dahdi, you need to do a make config, chkconfig on and service dahdi start.

After so many trials, I suspect rpm also works for asterisk 1.8. But features wise, I think source code compilation is still better.

TOP

就是這個問題,請pm 我你的 email address。可以send 我現在用緊 copy 你試吓!

TOP

咁就冇辦法!我的copy用firefox 可以控制到 asterisk 18

TOP

睇睇read write 是否和我的一樣
  1. [root@ns asterisk]# ls -l static-http
  2. total 600
  3. -rw-r--r-- 1 root root   6066 Nov 17 21:41 ajamdemo.html
  4. -rw-r--r-- 1 root root    461 Nov 17 21:41 astman.css
  5. -rw-r--r-- 1 root root   7912 Nov 17 21:41 astman.js
  6. drwxr-xr-x 6 root root   4096 Nov 19 00:03 config
  7. -rw-r--r-- 1 root root 467995 Nov 17 21:41 core-en_US.xml
  8. -rwxr-xr-x 1 root root    216 Nov 10 21:43 index.html
  9. -rw-r--r-- 1 root root   4170 Nov 17 21:41 mantest.html
  10. -rw-r--r-- 1 root root  96653 Nov 17 21:41 prototype.js
  11. [root@ns asterisk]# ls -l static-http/config
  12. total 556
  13. -rwxr-xr-x 1 root root  2544 Nov 10 21:43 asterisklogs.html
  14. -rwxr-xr-x 1 root root  4747 Nov 10 21:43 backup.html
  15. -rwxr-xr-x 1 root root     0 Nov 10 21:43 blank.html
  16. -rwxr-xr-x 1 root root  3043 Nov 10 21:43 bulkadd.html
  17. -rwxr-xr-x 1 root root  7702 Nov 10 21:43 callingrules.html
  18. -rwxr-xr-x 1 root root  4331 Nov 10 21:43 cdr.html
  19. -rwxr-xr-x 1 root root   242 Nov 10 21:43 cfgbasic.html
  20. -rwxr-xr-x 1 root root  3248 Nov 10 21:43 cli.html
  21. -rwxr-xr-x 1 root root  5866 Nov 10 21:43 date.html
  22. -rwxr-xr-x 1 root root  4073 Nov 10 21:43 dialplans.html
  23. -rwxr-xr-x 1 root root   272 Nov 10 21:43 digital.html
  24. -rwxr-xr-x 1 root root  4673 Nov 10 21:43 directory.html
  25. -rwxr-xr-x 1 root root  5600 Nov 10 21:43 emailsettings.html
  26. -rwxr-xr-x 1 root root 11145 Nov 10 21:43 features.html
  27. -rwxr-xr-x 1 root root  4110 Nov 10 21:43 feditor.html
  28. -rwxr-xr-x 1 root root  3235 Nov 10 21:43 flashupdate.html
  29. -rwxr-xr-x 1 root root  4151 Nov 10 21:43 flipadvanced.html
  30. -rwxr-xr-x 1 root root  7997 Nov 10 21:43 followme.html
  31. -rwxr-xr-x 1 root root  5806 Nov 10 21:43 gtalk.html
  32. -rwxr-xr-x 1 root root  4449 Nov 10 21:43 guialert.html
  33. -rwxr-xr-x 1 root root 11396 Nov 10 21:43 hardware_aa50.html
  34. -rwxr-xr-x 1 root root 19406 Nov 10 21:43 hardware_dahdi.html
  35. -rwxr-xr-x 1 root root 17232 Nov 10 21:43 hardware.html
  36. -rwxr-xr-x 1 root root  5772 Nov 10 21:43 home.html
  37. -rwxr-xr-x 1 root root 13624 Nov 10 21:43 iax.html
  38. drwxr-xr-x 2 root root  4096 Nov 10 21:43 images
  39. -rwxr-xr-x 1 root root  5050 Nov 10 21:43 incoming.html
  40. -rwxr-xr-x 1 root root 15463 Nov 10 21:43 index.html
  41. drwxr-xr-x 2 root root  4096 Nov 10 21:43 js
  42. -rwxr-xr-x 1 root root  5441 Nov 10 21:43 language.html
  43. lrwxrwxrwx 1 root root    36 Nov 10 21:45 Master.csv -> /var/log/asterisk/cdr-csv/Master.csv
  44. -rwxr-xr-x 1 root root  5787 Nov 10 21:43 meetme.html
  45. -rwxr-xr-x 1 root root  5113 Nov 10 21:43 menuprompts_record.html
  46. -rwxr-xr-x 1 root root  2122 Nov 10 21:43 menuprompts_upload.html
  47. -rwxr-xr-x 1 root root 12906 Nov 10 21:43 menus.html
  48. -rwxr-xr-x 1 root root  5241 Nov 10 21:43 misdn.html
  49. -rwxr-xr-x 1 root root  3931 Nov 10 21:43 mohfiles.html
  50. -rwxr-xr-x 1 root root  3994 Nov 10 21:43 networking.html
  51. -rwxr-xr-x 1 root root  7370 Nov 10 21:43 paging.html
  52. -rwxr-xr-x 1 root root  4055 Nov 10 21:43 password.html
  53. -rwxr-xr-x 1 root root  6986 Nov 10 21:43 preferences.html
  54. drwxr-xr-x 3 root root  4096 Nov 10 21:43 private
  55. -rwxr-xr-x 1 root root  8302 Nov 10 21:43 queues.html
  56. -rwxr-xr-x 1 root root  2137 Nov 10 21:43 reboot.html
  57. -rwxr-xr-x 1 root root 16526 Nov 10 21:43 registerg729.html
  58. -rwxr-xr-x 1 root root  3873 Nov 10 21:43 reset_defaults.html
  59. -rwxr-xr-x 1 root root  5279 Nov 10 21:43 ringgroups.html
  60. -rwxr-xr-x 1 root root 22425 Nov 10 21:43 sip.html
  61. -rwxr-xr-x 1 root root  8882 Nov 10 21:43 skype.html
  62. -rwxr-xr-x 1 root root  4676 Nov 10 21:43 smtp_settings.html
  63. -rwxr-xr-x 1 root root  4219 Nov 10 21:43 status.html
  64. drwxr-xr-x 2 root root  4096 Nov 10 21:43 stylesheets
  65. -rwxr-xr-x 1 root root  6242 Nov 10 21:43 sysinfo.html
  66. -rwxr-xr-x 1 root root  6611 Nov 10 21:43 timeintervals.html
  67. -rwxr-xr-x 1 root root  2771 Nov 10 21:43 timezone.html
  68. -rwxr-xr-x 1 root root  9267 Nov 10 21:43 trunks_analog.html
  69. -rwxr-xr-x 1 root root  2103 Nov 10 21:43 trunks_digital.html
  70. -rwxr-xr-x 1 root root  4592 Nov 10 21:43 trunks_providers.html
  71. -rwxr-xr-x 1 root root  6367 Nov 10 21:43 trunks_sps.html
  72. -rwxr-xr-x 1 root root  7790 Nov 10 21:43 trunks_voip.html
  73. -rwxr-xr-x 1 root root  3530 Nov 10 21:43 update_phonefirmware.html
  74. -rwxr-xr-x 1 root root  1608 Nov 10 21:43 upload2.html
  75. -rwxr-xr-x 1 root root  3125 Nov 10 21:43 upload_abe_overlay.html
  76. -rwxr-xr-x 1 root root  1653 Nov 10 21:43 upload_form.html
  77. -rwxr-xr-x 1 root root 22149 Nov 10 21:43 users.html
  78. -rwxr-xr-x 1 root root  3490 Nov 10 21:43 vmgroups.html
  79. -rwxr-xr-x 1 root root  4815 Nov 10 21:43 voicemail.html
  80. -rwxr-xr-x 1 root root 19799 Nov 10 21:43 welcome.html
  81. [root@ns asterisk]#
複製代碼

TOP

我用 root to start asterisk

TOP

多谢  我copy左入去  好似仲系唔得
lttliang 發表於 2010-11-20 00:33


對咗 D files attribute 後,得唔得?

TOP

返回列表