1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Asterisk 11.6インストールメモ

Last updated at Posted at 2015-06-29

CentOS 6.6にて

必要なライブラリをインストール

$ sudo yum -y install gcc gcc-c++ libxml2 libxml2-devel openssl-devel ncurses-devel sqlite-devel newt-devel libuuid-devel uuid-devel

ファイルをダウンロード、解凍、makeなど

$ wget http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.6-current.tar.gz
$ tar xzvf certified-asterisk-11.6-current.tar.gz
$ cd certified-asterisk-11.6-cert11
$ ./configure
$ make
$ sudo make install
$ sudo make samples
$ sudo make config

いろいろ設定

$ sudo vi /etc/asterisk/sip.conf
[general]
context=default

ユーザー

$ sudo vi /etc/asterisk/users.conf
[6000]
type=friend
username=6000
secret=1234
canreinvite=no
host=dynamic

[6001]
type=friend
username=6001
secret=1234
canreinvite=no
host=dynamic

内線

$ sudo vi /etc/asterisk/extensions.conf
exten => 200,1,Dial(SIP/6000)
exten => 200,n,HangUp
exten => 201,1,Dial(SIP/6001)
exten => 201,n,HangUp

Asterisk起動

$ sudo service asterisk start

CLI起動

$ sudo asterisk -r

SIPの接続状況を確認する

> sip show peers

CLIからのAsterisk再起動

> core restart now
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?