Dear rekan-rekan, semoga tutorial ini
bermanfaat bagi rekan-rekan semua dan mohon koreksinya. saya sudah coba
test dengan xlite dan berjalan.
Tahapan untuk instalasi asterisk di slackware:
1. instal dahulu slackware di harddisk anda
2. upgrade kernel ke 2.6
3. diperlukan Standard compilation tools yaitu:
===============
* gcc
* make
* diffutils
* binutils
==============
4. untuk packages asterisk diperlukan juga beberapa hal
===================
*Linux kernel header files.
* bison
* ncurses
* zlib
* openssl
==================
5. letakan seluruh modul ke /usr/src
6. Download tarballs asterisk dan modul lainnya
===========================================================
===========================================================
- wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.9.10.tar.gz
- wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.7.tar.gz
- wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.3.tar.gz
- wget http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.2.3.tar.gz
- wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
- playvoip untuk web interfaces
=============================================================
7. instalasi
7. instalasi
instalasi libpri:
# tar zxvf libpri-1.2.3.tar.gz
# cd /usr/src/libpri-1.2.3
# make clean
# make
# make install
Instalasi zaptel
# tar zxvf zaptel-1.2.7.tar.gz
# cd /usr/src/zaptel-1.2.7
# make clean
# make
# make install
instalasi asterisk
#tar zxvf asterisk-1.2.9.10.tar.gz
#cd /usr/src/asterisk-1.2.9.10
# make clean
# make mpg123
# make
# make install
# make samples
8. copykan script untuk slackware
cp /usr/src/asterisk/contrib/init.d/rc.slackware.asterisk /etc/rc.d/rc.asterisk
9. installasi playvoip
# tar zxvf playvoip-0.1.tar.gz
# cd /usr/src/playvoip-0.1
edit config.php ---> vi config.php
$conf_db['host'] = "localhost";
$conf_db['user'] = "root";
$conf_db['pass'] = "yoncrew";
$conf_db['name'] = "voiprakyat_asterisk";
$voip_domain = "10.9.21.86";
#lalu save
copy kan seluruh folder web ke /var/www/htdocs
#cp -R /usr/src/playvoip-0.1/web /var/www/htdocs
10. Edit astwebhelper
# vi /usr/src/playvoip-0.1/bin/astwebhelper
di bagian--> VRWEB="/var/www/html"; ' isikan dimana anda akan letakan
misal ke /var/www/hdocs
buatkan crontab (crontab -e)
* * * * * /usr/local/sbin/astwebhelper >/dev/null 2>&1
11. Copy astwebhelper ke /usr/local/sbin
# cp /usr/src/playvoip-0.1/bin/astwebhelper /usr/local/sbin/
12. Copykan directory asterisk ke /etc/asterisk (edit dahulu) sesuai manual
playvoip
# cp /usr/src//playvoip-0.1/etc/asterisk/*.conf /etc/asterisk/
# chmod 666 /etc/asterisk/*_additional.conf
13. buat database menggunakan mysql
buka web ke http://localhost/phpMyAdmin
create new database => isi dgn voiprakyat_asterisk sesuai dengan
config.php
lalu import sql dari /usr/src/playvoip/sql/voiprakya.sql
14. buka web anda http://localhost/web/
untuk di php.ini tolong edit option untuk tampilin errornya di offkan saja
Thx