Install Asterisk on Amazon EC2

    版本為 14:41, 20 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    系統環境:

    CentOS 5.4
    dahdi-linux-current
    Asterisk-1.6.1-current
    Linux domU-12-31-39-14-69-89 2.6.18-xenU-ec2-v1.0 (uname -a)

    安裝 kernel source, dahdi

    請參考這篇教學 Install Elastix on Amazon EC2

    安裝 Asterisk

    // 檢查並安裝所有相依性的套件

    # rpm -q gcc-c++ zlib-devel openssl-devel ncurses-devel gtk2-devel iksemel-devel speex-devel libogg-devel libvorbis-devel curl-devel unixODBC-devel libtool-ltdl-devel net-snmp-devel bzip2-devel newt-devel lm_sensors-devel openldap-devel postgresql-devel gtk+-devel 
    # yum install gcc-c++ zlib-devel openssl-devel ncurses-devel gtk2-devel iksemel-devel speex-devel libogg-devel libvorbis-devel curl-devel unixODBC-devel libtool-ltdl-devel net-snmp-devel bzip2-devel newt-devel lm_sensors-devel openldap-devel postgresql-devel gtk+-devel
    
    

    // Install asterisk

    # cd /usr/src
    # wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.1-current.tar.gz
    # tar xzf asterisk-1.6.1-current.tar.gz
    # cd asterisk-1.6.1*/
    # contrib/scripts/get_ilbc_source.sh ;安裝 iLBC codec
    # ./configure
    # make menuselect
    

    進入編譯模組的選單,選擇 Core Sound Packages,安裝所有項目(按 Enter),還有 Music On Hold File Packages,Extras Sound Packages 也都做相同的處理。

    # make
    # make install
    # make samples
    # make config
    

    // 檢查 asterisk 是否可執行

    # asterisk -vvvvvvvvvvc
    CLI> stop now 
    

    // 安裝 asterisk-addons

    # cd /usr/src
    # wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6.1-current.tar.gz
    # tar asterisk-addons-1.6.1-current.tar.gz
    # cd asterisk-addons-1.6.1*/
    # make clean
    # ./configure
    # make menuselect
    

    這裡的選單顯示有關與 MySQL 連結的所有模組是否可以安裝。

    # make
    # make install
    # make samples 
    

    設定 Asterisk

    Powered by MindTouch Core