返回列表 發帖

【角色茶桌】—— Request for the remarks on installation of Asterisk server

本帖最後由 角色 於 2011-9-4 14:16 編輯

Since I have not complied Asterisk server for a long time, I almost forgot the compilation details when we install an Asterisk server.

All I know is to
1) download the CentOS 5.6 from the official website www.centos.org,
2) choose the server mode to install the CentOS,
3) yum -y update the CentOS
4) downland the tar ball 1.8.6.0 tar ball from www.asterisk.org and put it into the /usr/scr/asterisk directory

As far as I know, we may need to download other files in order to install the asterisk server. If you know it, please let me know.

YH

SVN method:

Depending on your needs, some packages are optional.
  1. 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

  2. # If you are using E1 cards you need to install LIBPRI.
  3. cd /usr/src/asterisk-complete/libpri
  4. svn co http://svn.asterisk.org/svn/libpri/tags/1.4.12 libpri-1.4.12
  5. cd libpri-1.4.12
  6. make && make install

  7. cd /usr/src/asterisk-complete
  8. wget http://downloads.asterisk.org/pub/telephony/libss7/libss7-1.0.2.tar.gz
  9. tar zxvf libss7-1.0.2.tar.gz
  10. cd libss7-1.0.2
  11. make && make install

  12. # install dahdi
  13. cd /usr/src/asterisk-complete/dahdi
  14. svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.5.0+2.5.0 dahdi-2.5.0+2.5.0
  15. cd dahdi-2.5.0+2.5.0
  16. make && make install && make config
  17. chkconfig dahdi on
  18. service dahdi start

  19. # Channel Drivers > chan_nbs
  20. cd /usr/src/asterisk-complete
  21. svn co http://svn.digium.com/svn/nbs/trunk nbs-trunk
  22. cd nbs-trunk
  23. make && make install

  24. # Codec Translators > codec_resample
  25. cd /usr/src/asterisk-complete
  26. svn co http://svn.digium.com/svn/thirdparty/libresample/trunk libresample-trunk
  27. cd libresample-trunk
  28. ./configure && make && make install

  29. # Resource Modules > res_srtp
  30. cd /usr/src/asterisk-complete
  31. wget -O srtp-1.4.4.tgz http://sourceforge.net/projects/srtp/files/srtp/1.4.4/srtp-1.4.4.tgz/download
  32. tar xvzf srtp-1.4.4.tgz
  33. cd srtp
  34. ./configure && make && make install

  35. # Resource Modules > res_calendar_caldav res_calendar_exchange res_calendar_icalendar
  36. cd /usr/src/asterisk-complete
  37. wget -O libical-0.44.tar.gz http://sourceforge.net/projects/freeassociation/files/libical/libical-0.44/libical-0.44.tar.gz/download
  38. tar zxvf libical-0.44.tar.gz
  39. cd libical-0.44
  40. ./configure --enable-shared && make && make install

  41. # Resource Modules > res_jabber, Channel Drivers >  chan_local chan_jingle
  42. cd /usr/src/asterisk-complete
  43. wget http://packages.sw.be/iksemel/iksemel-devel-1.4-1.el6.rf.i686.rpm
  44. wget http://packages.sw.be/iksemel/iksemel-1.4-1.el6.rf.i686.rpm
  45. rpm -Uvh iksemel-devel-1.4-1.el6.rf.i686.rpm iksemel-1.4-1.el6.rf.i686.rpm

  46. # Resource Modules > res_calendar_ews
  47. cd /usr/src/asterisk-complete
  48. wget -c http://www.webdav.org/neon/neon-0.29.6.tar.gz
  49. tar xvzf neon-0.29.6.tar.gz
  50. cd neon-0.29.6
  51. ./configure --enable-shared --with-ssl && make && make install

  52. # Applications > app_osplookup
  53. cd /usr/src/asterisk-complete
  54. wget -O OSPToolkit-3.6.1.tar.gz http://sourceforge.net/projects/osp-toolkit/files/osp-toolkit/OSPToolkit%203.6.1/OSPToolkit-3.6.1.tar.gz/download
  55. tar xvzf OSPToolkit-3.6.1.tar.gz
  56. cd TK-3_6_1-20100107/src
  57. make clean && make build && make install
  58. # et pour asterisk:
  59. ./configure --with-osptk=/usr/local/include/osp

  60. # Compiler Flags > hoard
  61. cd /usr/src/asterisk-complete
  62. wget -c http://www.cs.umass.edu/%7Eemery/hoard/hoard-3.8/source/hoard-38.tar.gz
  63. tar xvzf hoard-38.tar.gz
  64. cd hoard-38/src
  65. make linux-gcc-x86
  66. # et pour asterisk:
  67. ./configure --with-hoard=/usr/src/hoard-38/src
  68. echo "/usr/src/hoard-38/src" >> /etc/ld.so.conf

  69. # Codec Translators > codec_speex
  70. cd /usr/src/asterisk-complete
  71. wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
  72. tar xvzf speex-1.2rc1.tar.gz
  73. cd speex-1.2rc1
  74. ./configure && make && make install

  75. # Applications > res_fax, Resource Modules > res_fax_spandsp
  76. cd /usr/src/asterisk-complete
  77. wget http://soft-switch.org/downloads/spandsp/spandsp-0.0.6pre18.tgz
  78. tar xvzf spandsp-0.0.6pre18.tgz
  79. cd spandsp-0.0.6
  80. ./configure && make && make install
  81. echo "/etc/ld.so.conf.d/usrlocallib.conf" /usr/local/lib
  82. cat >> /etc/ld.so.conf.d/usrlocallib.conf /usr/local/lib
  83. ldconfig

  84. # PBX Modules > pbx_lua
  85. cd /usr/src/asterisk-complete
  86. wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
  87. tar xvzf lua-5.1.4.tar.gz
  88. cd lua-5.1.4
  89. make linux && make install
  90. cd /usr/src/asterisk-complete/asterisk
  91. echo "/usr/local/lib" >> /etc/ld.so.conf
  92. ldconfig -v

  93. #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
  94. cd /usr/src/asterisk-complete
  95. wget http://launchpad.net/rubber/trunk/1.1/+download/rubber-1.1.tar.gz
  96. tar zxvf rubber-1.1.tar.gz
  97. cd rubber-1.1
  98. ./configure && make && make install

  99. # install asterisk
  100. cd /usr/src/asterisk-complete/asterisk
  101. #get branch
  102. svn co http://svn.asterisk.org/svn/asterisk/branches/1.8 asterisk-1.8
  103. #get trunk
  104. svn checkout http://svn.asterisk.org/svn/asterisk/trunk asterisk-1.8
  105. cd asterisk-1.8
  106. ./configure
  107. #this is only for format MP3 - SVN required
  108. contrib/scripts/get_mp3_source.sh
  109. contrib/scripts/get_ilbc_source.sh
  110. make menuselect
  111. make && make install
  112. make samples
  113. make progdocs
  114. make config
  115. make install-logrotate

  116. chkconfig asterisk on
  117. service dahdi start
  118. service asterisk start

  119. # Optional: GUI installation
  120. http://etel.wiki.oreilly.com/wiki/index.php/Install_the_Asterisk_GUI
  121. # finally install asterisk-gui 2.0; may or may not work for you
  122. cd /usr/src/asterisk-complete
  123. svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
  124. cd asterisk-gui
  125. ./configure
  126. make && make install
  127. make samples
複製代碼

TOP

Where is this tutorial coming from? It is more complete than that I used before.

TOP

I found that most of the tutorials from English speaking world is sometimes limited, especially for Asterisk 1.8. Hence, I started searching the tutorial in some non-English environment long time ago.  The above information was mainly come from a French website, I also add additional information from another Korean and Japanese site with my own experience getting from many installation trial.

The french website is http://www.asterisk-france.org/c ... risk-1.8-sur-CentOS

Google is my friend and Google translation is also my friend too!

TOP

What is the purpose of hoard and chan_NBC?

TOP

Umm….. you got me!  Don't know what the hoard in depth.  What I understand is that it can help speeding up Asterisk and dramatically improve application performance, especially for multithreaded programs running on multiprocessors and multicore CPUs.

Chan_nbs is network broadcast sound support channel driver.  I think there is no harm to install it in Asterisk when it is related to sound driver and even don't know how it works behind.

No more supplement here.

TOP

回復 6# bubblestar


    Have you installed both?

TOP

Yes, I have installed both.

TOP

回復 2# bubblestar


    This is the most complete one except that one is not working. I also forgot the installation requirement for google talk and calendar

TOP

本帖最後由 bubblestar 於 2011-9-4 11:17 編輯

最初試裝Asterisk 1.8 的時候,遇到很多問題,又有很多不知名、不熟悉及難明的困難,及後,不斷探索,最後整理成現有的安裝程序,現在安裝時使用這一套已經很順利了,我也重覆安裝了很多次,沒有什麼問題發生,所以我把它記錄成文字存檔,方便日後再使用。

Google talk and Calendar,按照以上的步驟便可以了。

至於為什麼要 yum install 這麼多的libraries 和 packages 呢? 哈哈! 懶囉! 也為了省時間嘛! 主要原因是因為我在後來要加入一些功能所需而要把它們預先安裝罷了,例如,iaxmodem、HylaFax、AvanFax、SMS 之類的東西。
假如只需要安裝Asterisk 1.8,有很多是不需要去yum install 的。

TOP

Many thanks.

YH

TOP

This is not working

# Applications > app_osplookup

TOP

I have no ideas.  Mine in the menuselect is like the attached screen cap. as below. Are you missing some dependencies?

osplookup.png
2011-9-4 18:13

TOP

回復 13# bubblestar

为什么你的图片那么大,而我的图那么小,你是否用Graphics GUI做出来,或者用VNC呢?

角色

TOP

把Putty 的屏幕全屏顯示吧!

TOP

返回列表