Sei sulla pagina 1di 8

COMPILE/INSTALL ASTERISK DI LINUX DEBIAN

By : Febiansya Aji Laksana

==================================================

Asterisk adalah software IP PBX untuk membuat sistem layanan komunikasi telepon melalui
internet atau biasa disebut VoIP (Voice over Internet Protocol). Asterisk adalah
software Open Source yang berjalan di linux. Asterisk juga memungkinkan komunikasi antar
pengguna telepon regular dengan telepon berbasis sip (sip phones).

Saya menggunakan STB HG680p dengan armbian debian 11 bullseye

=============================================

INSTALASI

apt update

apt install asterisk

===============================================

SETELAH PROSES INSTALL SELESAI SELANJUTNYA KONFIGURASI

nano /etc/asterisk/sip.conf

SUPPORT VIDCALL DENGAN APK: PortSIP

pada script yang paling bawah silahkan copy paste konfigurasi sebagai berikut :

[general]

context=default

port=5060

binaddr=0.0.0.0

srvlookup=yes

videosupport=yes
allowoverlap=no

[2000]

context=default

type=friend

defaultuser=2000

secret=123456

host=dynamic

videosupport=yes

disallow=all

allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes

allow=gsm

allow=h263p

allow=h264

allow=vp8

dtmfmode=rfc2833

rfc2833compensate=yes

insecure=port,invite

[2001]

context=default
type=friend

defaultuser=2001

secret=123456

host=dynamic

videosupport=yes

disallow=all

allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes

allow=gsm

allow=h263p

allow=h264

allow=vp8

rfc2833compensate=yes

insecure=port,invite

[2002]

context=default

type=friend

defaultuser=2002

secret=123456

host=dynamic

videosupport=yes

disallow=all
allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes

allow=gsm

allow=h263p

allow=h264

allow=vp8

dtmfmode=rfc2833

rfc2833compensate=yes

insecure=port,invite

[2003]

context=default

type=friend

defaultuser=2003

secret=123456

host=dynamic

videosupport=yes

disallow=all

allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes
allow=gsm

allow=h263p

allow=h264

allow=vp8

dtmfmode=rfc2833

rfc2833compensate=yes

insecure=port,invite

[2004]

context=default

type=friend

defaultuser=2004

secret=123456

host=dynamic

videosupport=yes

disallow=all

allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes

allow=gsm

allow=h263p

allow=h264

allow=vp8
dtmfmode=rfc2833

rfc2833compensate=yes

insecure=port,invite

[2005]

context=default

type=friend

defaultuser=2005

secret=123456

host=dynamic

videosupport=yes

disallow=all

allow=ulaw

allow=alaw

canreinvite=no

qualifiy=yes

allow=gsm

allow=h263p

allow=h264

allow=vp8

dtmfmode=rfc2833

rfc2833compensate=yes

insecure=port,invite

SAVE dengan cara ctrl + x, kemudian tekan y , dan enter


Dalam script ini terdapat username sekaligus no. telp, dan passwordnya.

Username & no. telp : 2000 sampai dengan 2005

Pass : 123456

==================================================

KONFIGURASI ROUTING

nano /etc/asterisk/extensions.conf

Cari text seperti dibawah :

[default]

; By default we include the demo. In a production system, you

; probably don't want to have the demo there.

include => demo

COPY PASTE konfigurasi rouuting berikut ini tepat di bawahnya :

exten => _20XX,1,Dial(SIP/${EXTEN},30,rt)

exten => _20XX,2,HangUp

=============================================

RESTART ASTERISK

/etc/init.d/asterisk restart

MELIHAT STATUS
/etc/init.d/asterisk status

asterisk -r

============================================

Untuk melakukan panggilan di android bisa menggunakan aplikasi Zoiper,

Di Komputer bisa menggunakan MicroSIP, QuteCom.

SUMBER :

http://onnocenter.or.id/wiki/index.php/VoIP:_Asterisk_Demo_User

http://onnocenter.or.id/wiki/index.php/VoIP:_Asterisk_Demo_Dial_Plan

Potrebbero piacerti anche