emailhoc |
22-02-2010 03:01 PM |
Cài đặt Asterisk với YUM
Tạo tập tin mang tên "centos-asterisk.repo" đặt tại đường dẫn "/etc/yum.repos.d" với nội dung:
Mã:
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
Tạo thêm một tập tin mang tên "centos-digium.repo" và chèn nội dung:
Mã:
[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
Để bắt đầu cài đặt, thực thi lệnh:
Mã:
[root@localhost~]# yum install asterisk16 asterisk16-configs asterisk16-voicemail dahdi-linux dahdi-tools libpri
Chúc mừng bạn, giờ đây bạn đã cài đặt xong hòan chỉnh Asterisk. Kiểm tra lại việc cài đặt bằng cách khởi động Asterisk:
Mã:
[root@localhost yum.repos.d]# asterisk -vvvgci
|