Hot Posts

6/recent/ticker-posts

SETING ASTERISK VOIP MENGGUNAKAN SERVER LINUX DEBIAN

 


Login: root

Password: 123
 

MENGGABUNGKAN REPOSITORY DEBIAN


Ahmad :~# apt-cdrom add (input cd-1, cd-2 dan cd-3) à enter
Ahmad :~# nano /etc/apt/sources.list


KONFIGURASI IP ADDRESS


Ahmad :~# nano /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
             address 192.168.1.1
             netmask 255.255.255.0
             network 192.168.1.0
 
                                
 [simpan ctrl+x --> y [yes] -enter
 
Ahmad :~# service networking restart
Ahmad :~# ifconfig -a

INSTAL APLIKASI ASTERISK


Ahmad :~# apt-get install asterisk
                [n] / [y]
                (input DVD-1,dan DVD-2) à enter
 

KONFIGRASI IP TELPHONE


Ahmad :~# nano /etc/asterisk/sip.conf
 
[general]                                -->> context umum,harus ada
context=tkj                            -->> nama context user
port=5060                               -->> default port untuk SIP
binaddr=0.0.0.0                     -->> listen semua ip_addr yg request
srvlookup=yes
tos=0x18
videosupport=yes
 
;softphone                            (nama atau nomor account)
[111]                                       (user/extension)
type=friend                            (tipe account)
username=111                       (login account)
secret=111                             (password account)
host=dynamic                       (host yang menjadi IP PBX,dapat berubah)
nat=no                                    (tanpa NAT)
dtmfmode=rfc2833                (RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals)
allow=all                                                 (mode codec, bisa semua jenis codec)
callerid=”sip00”                    (id client)
context=tkj                            (context jaringan user)
canreinvite=no                      (mekanisme canreinvite)
mailbox=111@tkj                 (username@contex)
 
;ip-phone
[222]
type=friend
username=222
secret=222
host=dynamic
nat=no
dtmfmode=rfc2833
allow=all
callerid=”sip01”
context=tkj
canreinvite=no
mailbox=222@tkj
 
  [simpan ctrl+x --> y [yes] -enter
 
Ahmad :~# nano /etc/asterisk/extensions.conf
 
[tkj]                         à (seluruh dial plan di bawah hanya berlaku bagi context "TKJ")
exten => 111,1,Dial(SIP/111,20)  à Dial ext 101 dengan protokol SIP, time out 20 detik
exten => 111,2,Hangup à setelah timeout 20 detik dilakukan hangup
exten => 222,1,Dial(SIP/222,20)
exten => 222,2,Hangup
 
  [simpan ctrl+x --> y [yes] -enter

Ahmad :~# service asterisk restart

BUKA APLIKASI 

               => Zoiper
               => X-Lite
               =>  Setting zoiper
               => Setting X-Lite
               => Menjadi client / server

KONFIGURASI ROUTER DEBIAN

 

Ahmad :~# nano /etc/sysctl.conf
                    Hapus tanda # didepan  pada kata " #net.ipv4.ip_forward=1"
                    menjadi ( net.ipv4.ip_forward=1 )

                         [simpan ctrl+x --> y [yes] -enter

Ahmad :~# sysctl -p
Ahmad :~# nano /etc/rc.local
                    #exit
                    iptables -t nat -A POSTROUTING -j MASQUERADE

                    [simpan ctrl+x --> y [yes] -enter

Ahmad :~# service rc.local restar
Ahmad :~# service rc.local start
                
                Seting PC Client 
                ==> Pc Clien Ke Pc Server 
                ==> dan Ping server ke Pc Client 
                ==> Pastikan Koneksi server clinet lancar


 

Posting Komentar

0 Komentar