~~~~~~~~asterisk 1.8.8.1編~~~~~~~~~~
◆環境準備
# yum update
# yum groupinstall 'Development Tools'
# yum install -y make gcc ncurses-devel libtermcap-devel kernel-devel zlib-devel libtool
◆Asteriskのダウロード&解凍
# wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.8.1.tar.gz
# tar zxvf asterisk-1.8.8.1.tar.gz
◆Asteriskのインストール
# cd ./asterisk-1.8.8.1
# ./configure -disable-xmldoc
※successully completedが表示されれれば完了
◆Asteriskビルド
# make
◆Asteriskインストール
# make install
※Asterisk Installation Comleteが表示されれれば完了
◆サンプルファイルとconfig準備
# make samples
# make config
◆Asteriskの設定ファイル
# cp /etc/asterisk/sip.conf sip.conf.bak
# vim /etc/asterisk/sip.conf
以下を追加
[general]
context=default
port=5060
bindaddr=0.0.0.0
language=ja
[201]
type=friend
defaultuser=201
secret=pass
host=dynamic
canreinvite=no
[202]
type=friend
defaultuser=202
secret=pass
host=dynamic
canreinvite=no
[203]
type=friend
defaultuser=203
secret=pass
host=dynamic
canreinvite=no
◆extensions.confの設定
# cp /etc/asterisk/extensions.conf extensions.conf.bak
# vim /etc/asterisk/extensions.conf
[default]
;
; By default we include the demo. In a production system, you
; probably don't want to have the demo there.
;
;include => demo
exten => 201,1,Dial(SIP/201,30,r)
exten => 201,2,Hangup()
exten => 202,1,Dial(SIP/202,30,r)
exten => 202,2,Hangup()
exten => 203,1,Answer()
exten => 203,2,Playback(hello-world)
exten => 203,3,Hangup()
◆Asterisk起動
# systemctl start asterisk
# asterisk -vvvvcr
0 件のコメント:
コメントを投稿