Install Asterisk-1.8 on CentOS 5.8

[UPDATE] 2013.07.24 

1. root password 설정(안되어 있는 경우)

[Src : http://mashow.egloos.com/3572782]


2. Prepare

[Src : http://www.selbytech.com/2011/05/how-to-setup-asterisk-1-8-on-centos-5/]

(보안 적용 해제를 위해서는 root 권한으로 실행해야 한다.)

$ yum -y update
$ vi /etc/selinux/config

SELINUX=disabled    => 보안적용을 해제 시키는 명령

$ shutdown -r now


3. Download and Install components

$ yum install wget gcc gcc-c++ make perl libxml2-devel ncurses-devel newt-devel openssl-devel kernel-devel


$ mkdir /usr/src/asterisk
$ cd /usr/src/asterisk

$ wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
$ wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
$ wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

$ tar zxvf libpri-1.4-current.tar.gz
$ tar zxvf dahdi-linux-complete-current.tar.gz
$ tar zxvf asterisk-1.8-current.tar.gz


$ cd /usr/src/asterisk/libpri-1.4.13     -> 버전은 바뀔 수 있으므로 확인 후 맞춰 수행
$ make
$ make install


$ cd /usr/src/asterisk/dahdi-linux-complete-2.4.1.2+2.4.1  -> 버전은 바뀔 수 있음.
$ make all
$ make install
$ make config


$ cd /usr/src/asterisk/libpri-1.4.13     -> 버전은 바뀔 수 있으므로 확인 후 맞춰 수행
$ make
$ make install


4. Install Asterisk

$ cd /usr/src/asterisk/asterisk-1.8.17.0
$ ./configure
$ make menuselect => 내용은 설정할 필요 없음. Exit!
$ make
$ make install
$ make samples
$ make config
$ chkconfig asterisk on => 무반응...

* make progdocs(asterisk program documentation)와 add-on 설치는 optional 이라서 필요에 따라 설치를 하면 됩니다. 여기서는 그냥 기본적인것들만...



5. Set Asterisk

$ vi /etc/asterisk/asterisk.conf
[directories](!)   => delete!

$ shutdown -r now


6. Set users

$ vi /etc/asterisk/users.conf

*아래 예시을 맨 아래 빈 공간에 추가

[1000]
username=1000
host=dynamic
type=friend
secret=1234
context=users
callerid=1000



7. Run Asterisk

$ asterisk -r

위의 명령어를 입력하면 아래와 같은 콘솔모드로 들어간다.

asterisk*CLI>



*명령어를 모를 경우 '?'를 누르면 입력 가능한 명령어가 보인다

asterisk*CLI> ?



*가입자 정보 추가 후  asterisk cli에서 아래와 같이 user 정보 reload가 필요함

asterisk*CLI> sip reload



*유저 정보 확인

asterisk*CLI> sip show users



*유저 등록상태 확인

asterisk*CLI> sip show peers



8. Register UAC

단말 uac 셋팅 후 등록 수행.
등록이 원활히 진행되면 OK
그렇지 않다면 방화벽 체크(아래 링크) 필요!

[Cent Os 방화벽 관리]

방화벽 포트별 해제 또는 전체 해제 후

uac 다시 등록 시도 및 확인!



댓글 없음:

댓글 쓰기

안녕하세요 :)