Board logo

標題: Asterisk installation [打印本頁]

作者: ckleea    時間: 2010-8-20 10:55     標題: Asterisk installation

Apart from YUM install, one can compile asterisk and make your own asterisk

Below is some generic scripts that
  1. #!/bin/sh

  2. ASTERISK_BRANCH="1.6.2"
  3. LIBPRI_BRANCH="1.4"
  4. ASTERISK_GUI_BRANCH="2.0"
  5. ASTERISK_ADDONS_BRANCH="1.6.2"
  6. DAHDI_LINUX_BRANCH="2.3"
  7. DAHDI_TOOLS_BRANCH="2.3"

  8. mkdir -p /usr/src/$ASTERISK_BRANCH
  9. cd /usr/src/$ASTERISK_BRANCH

  10. clear
  11. echo
  12. echo "Get Sources"
  13. echo
  14. svn co http://svn.digium.com/svn/asterisk/branches/$ASTERISK_BRANCH asterisk
  15. svn co http://svn.digium.com/svn/libpri/branches/$LIBPRI_BRANCH libpri
  16. svn co http://svn.digium.com/svn/asterisk-gui/branches/$ASTERISK_GUI_BRANCH gui
  17. svn co http://svn.digium.com/svn/asterisk-addons/branches/$ASTERISK_ADDONS_BRANCH
  18. addons
  19. svn co http://svn.digium.com/svn/dahdi/linux/branches/$DAHDI_LINUX_BRANCH
  20. dahdi-linux
  21. svn co http://svn.digium.com/svn/dahdi/tools/branches/$DAHDI_TOOLS_BRANCH
  22. dahdi-tools

  23. echo
  24. echo "Compile & Install Dahdi Linux"
  25. echo
  26. cd dahdi-linux
  27. make && make install

  28. echo
  29. echo "Compile & Install Dahdi Tools"
  30. echo
  31. cd ../dahdi-tools
  32. ./configure && make && make install && make config

  33. echo
  34. echo "Compile & Install Libpri"
  35. echo
  36. cd ../libpri
  37. make && make install

  38. echo
  39. echo "Compile & Install Asterisk"
  40. echo
  41. cd ../asterisk
  42. ./configure

  43. echo
  44. echo "Enable ulaw sounds"
  45. echo
  46. make menuselect.makeopts
  47. menuselect/menuselect --disable CORE-SOUNDS-EN-GSM menuselect.makeopts
  48. menuselect/menuselect --enable CORE-SOUNDS-EN-ULAW menuselect.makeopts
  49. menuselect/menuselect --disable MOH-OPSOUND-WAV menuselect.makeopts
  50. menuselect/menuselect --enable MOH-OPSOUND-ULAW menuselect.makeopts

  51. make && make install && make samples && make install-logrotate

  52. echo
  53. echo "Compile & Install Asterisk Addons"
  54. echo
  55. cd ../addons
  56. ./configure && make && make install && make samples

  57. echo
  58. echo "Compile & Install Asterisk Gui"
  59. echo
  60. cd ../gui && ./configure
  61. make && make install
複製代碼
Another site to look at the installation is

http://www.voip-info.org/wiki/vi ... +1.4.x+installation

http://www.voip-info.org/wiki/vi ... +1.6.x+installation




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