美味しいごはん makes me happy :)

What I see, what I feel...

Ubuntuへのasteriskのインストールの仕方*IPv6

MacでVMwareを使って、仮想サーバーを立てて、Ubuntuをつくってそこにasteriskをインストールする方法(・∀・)IPv6 ver.!!長いw

表現方法については、よくわからなくて自分の言葉にしてしまっているので、間違えてるかもしれません;_;すみません

http://downloads.asterisk.org/pub/telephony/asterisk/ から、最新のasteriskファイルをインストールできます*
私は、asterisk-11.4.0 をインストールしました。

asteriskをダウンロード!

$ wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11.4.0.tar.gz

で、できれば良いのですが 、IPv6のおかげでアクセス出来ない場合があります…!!!

そこで、IPv6アドレスを(自分で)探す!!!

$ nslookup http://downloads.asterisk.org

をすると、IPv6アドレスが表示されるので
ここの部分にIPv6アドレス/pub/telephony/asterisk/asterisk-11.4.0.tar.gzでしてください♡

取得したファイルをひらく

$ tar zxvf asterisk-11.4.0.tar.gz 

ビルドに必要なパッケージをインストール

apt-get install build-essential
apt-get install libncurses5-dev
apt-get install libssl-dev
apt-get install libxml2-dev
apt-get install libsqlite3-dev

configureを実行して、ビルド用設定ファイルを生成する

$ cd ./asterisk-11.4.0
$ ./configure

このように表示されれば、asteriskのビルドに必要なものが生成されたということです!

configure: Menuselect build configuration successfully completed

               .$$$$$$$$$$$$$$$=..      
            .$7$7..          .7$$7:.    
          .$$:.                 ,$7.7   
        .$7.     7$$$$           .$$77  
     ..$$.       $$$$$            .$$$7 
    ..7$   .?.   $$$$$   .?.       7$$$.
   $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
 .777.   .$$$$$$77$$$77$$$$$7.      $$$,
 $$$~      .7$$$$$$$$$$$$$7.       .$$$.
.$$7          .7$$$$$$$7:          ?$$$.
$$$          ?7$$$$$$$$$$I        .$$$7 
$$$       .7$$$$$$$$$$$$$$$$      :$$$. 
$$$       $$$$$$7$$$$$$$$$$$$    .$$$.  
$$$        $$$   7$$$7  .$$$    .$$$.   
$$$$             $$$$7         .$$$.    
7$$$7            7$$$$        7$$$      
 $$$$$                        $$$       
  $$$$7.                       $$  (TM)     
   $$$$$$$.           .7$$$$$$  $$      
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$      
       $$$$$$$$$$$$$$$$.                


makeを実行して、ビルドを行います*

$ make
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+

このように表示されればビルドは成功です:)!
ここに書いているとおりにmake insrallを実行します。

$ sudo make install
 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+

インストール成功♡

make samplesを実行し、サンプル設定ファイルをインストールします。

$ sudo make samples

make configで起動環境を整えます。

$ sudo make config


終了:)*