Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Ci t cc gi cn thit ci Asterisk

Trc khi ci Asterisk ln CentOS, chng ta cn phi cp nht v sau khi ng li h thng :

Trch dn:
#yum update


sau khi cp nht xong cn khi ng li CentOS:

Trch dn:
#init 6


Download Asterisk 1.8 v DAHDI + Tools

Trch dn:
#wget http://downloads.asterisk.org/pub/telep ... 5.0.tar.gz && wget http://downloads.asterisk.org/pub/telep ... 5.0.tar.gz


Gii nn cc gi va down v Asteris v DAHDI + Tools

Trch dn:
#tar -xvzf asterisk-1.8* && tar -xvzf dahdi-linux-complete-*


Ci t cc gi cn thit bin dch Asterisk 1.8

Trch dn:
#yum install kernel-devel gcc make gcc-c++ libxml2-devel perl ncurses-devel patch libtiff-devel libtermcap-devel bison flex curl-devel libtool-ltdl-devel
gmime-devel


DAHDi cn c build u tin chng ta c th build Asterisk vi s h tr cho cc phng hi ngh (meetme) v bt c iu g khc m i hi DAHDi.
BN PHI BO M BN DAHDi C build trc tin.

Trch dn:
#cd dahdi-linux-complete*
#make all
#make install
#make config


Khi ng DAHDi khi h thng khi ng

Trch dn:
#chkconfig dahdi on
#service dahdi start


Ci t Asterisk

Trch dn:

cd asterisk-*
#./configure
#make
#make install


Ci t tp tin cu hnh mu trong /etc/asterisk v ci t Asterisk khi ng cng h thng.

Trch dn:
#make samples
#make config
#chkconfig asterisk on


Khi ng Asterisk kim tra

Trch dn:
#asterisk -vvvvc


dng Asterisk ngay

Trch dn:
#core stop now


khi ng services asterisk

Trch dn:
#/etc/init.d/asterisk start

You might also like