Konfigurasi Asterisk
apt-get update
apt-get install -y mysql-server
apt-get install -y build-essential linux-headers-`uname -r` openssh-server bison flex apache2 php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox libncurses5-dev libssl-dev libmysqlclient15-dev mpg123 libxml2-dev libxml2 libxml2-dev libxml2-doc libxml2-utils sqlite3 libsqlite3-dev libxslt1.1 libxslt1-dev
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.0+2.6.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.14.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
tar xvf dahdi-linux-complete-2.6.0+2.6.0.tar.gz
cd dahdi-linux-complete-2.6.0+2.6.0.tar.gz
make all && make install && make config
cd..
tar vxf libpri-1.4.12.tar.gz
cd libpri-1.4.12
make && make install
cd ..
tar xvf asterisk-1.6.2.20.tar.gz
cd asterisk-1.6.2.20
./configure
make && make install
make samples
cd ..
tar xvf asterisk-addons-1.6.2.0.tar.gz
cd asterisk-addons-1.6.2.0
./configure
make && make install
make samples
cd ..
tar xvf asterisk-sounds-1.2.1.tar.gz
cd asterisk-sounds-1.2.1
make && make install
cd /etc/asterisk
setting sip.conf
nano sip.conf
//copy script dibawah ini, taruh dibawah sendiri atau hapus semua dulu
//simpan file
[general]
bindport=5060 ;port dari SIP server
bindaddr=192.168.1.2 ;IP yang digunakan sebagai SIP server
srvlookup=yes
allow=ulaw
context=bogon-calls
autodomain=yes
dtmfmode=rfc2833 ;sinyal DTMF yang digunakan
localnet=192.168.1.255/255.255.255.0 ;network IP yang digunakan
[9250] ;username yang digunakan di softphone
type=friend
context=from-sip
username=9250
secret=9250
subscribecontext=localextensions
host=dynamic
dtmfmode=rfc2833
mailbox=9250@context,9250
allow=ulaw
[9251]
type=friend
context=from-sip
username=9251
secret=9251
subscribecontext=localextensions
host=dynamic
dtmfmode=rfc2833
//Simpan File
setting extension.conf
nano extensions.conf
//copy script dibawah ini, taruh dibawah sendiri atau hapus semua dulu
[general]
static=yes
writeprotect=yes
[bogon-calls]
autofalltrough=yes
clearglobalvars=no
priorityjumping=no
[from-sip]
exten => 9250,1,Dial(SIP/9250,20)
exten => 9250,2,Hangup
exten => 9251,1,Dial(SIP/9251,20)
exten => 9251,2,Hangup
//Simpan File
asterisk start
asterisk -r
reload