ASTERISK IAX + Quintum AF Series ( Case : Implementasi Menghubungkan antar kantor cabang )


User yang ada di kantor  Jakarta harus bisa memanggil extension user yang ada di bandung dan sebaliknya. Maka untuk menyelesaikan case ini digunakan IAX trunk. Iax trunk digunakan untuk menghubungkan dua asterisk server:)

Berkut adalah langkah-langkahnya:

  1. Config di server Bandung (192.168.0.60)
[root@iax2 asterisk]# cd /etc/asterisk/[root@iax2 asterisk]# mv iax.conf iax.conf-def

[root@iax2 asterisk]# vim /etc/asterisk/iax.conf[general]
bindport = 4569
bindaddr = 0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
usecallerid=yes
callerid=asreceived
[iax_2]
type=friend
host=dynamic
trunk=yes
auth=md5,plaintext,rsa
username=iax_2
secret=iax_2
;callerid=asrecei
;callerid=”081234567890″ <1234567890>
qualify=yes
context=iax-trunksave:wq!!
[root@iax2 asterisk]# vim /etc/asterisk/extensions.conf
Ini akan menjadi inbound call ketika ada panggilan dari Jakarta dan akan berdering exte 4002
[iax-trunk]
exten => _X.,1,Dial(SIP/4002,,tT)
[root@iax2 asterisk]# vim /etc/asterisk/sip.conf[4002]
context=ecentrix-agents
type=friend
callerid=”4002″ <4002>
username=4002
secret=4002
host=dynamic                   ; This device needs to register
nat=no                        ; X-Lite is behind a NAT router
canreinvite=no                 ; Typically set to NO if behind NAT
disallow=all
allow=gsm                      ; GSM consumes far less bandwidth than ulaw
allow=ulaw
allow=alaw
allow=g729
  1. Server Jakarta (192.168.0.50)
[root@iax1 asterisk]# vim /etc/asterisk/iax.conf
[general]
bindport = 4569
bindaddr = 0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
usecallerid=yes
callerid=asreceived
[root@iax1 asterisk]# vim /etc/asterisk/extensions.conf
;Daftarkan AIX TRUNK dari server bandung
[globals]
IAX_2 = iax2/iax_2:iax_2@192.168.0.60;outbound call dari server jakarta menuju serverbandung dengan prefix 9
[ecentrix-agents]
exten => _9X.,1,DIAL(${IAX_2}/${EXTEN:1},,tT)
[root@iax1 asterisk]# vim /etc/asterisk/sip.conf
[4001]
context=ecentrix-agents
type=friend
callerid=”4001″ <4001>
username=4001
secret=4001
host=dynamic                   ; This device needs to register
canreinvite=no                 ; Typically set to NO if behind NAT
disallow=all
allow=gsm                      ; GSM consumes far less bandwidth than ulaw
allow=ulaw
allow=alaw
allow=g729
mailbox=1234@default
qualify=yes
  1. Testing call dari Jakarta ke bandung via xlite or ip phone  (4001-> 4002). Tekan dari xlite 94002 maka akan terdengar nada ring di kantor Bandung pada extension 4002.

PERCOBAAN II

Saling dapat memanggil antar cabang Jakarta dan bandung.
Server Jakarta
Iax.conf
[general]
bindport = 4569
bindaddr = 0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
usecallerid=yes
callerid=asreceived
;register => iax2:iax2@192.168.0.60 => INI TIDAK DIPERLUKAN
;register => iax_2:iax_2@192.168.0.60  => INI TIDAK DIPERLUKAN
[iax_1]
type=friend
host=dynamic
trunk=yes
auth=md5,plaintext,rsa
username=iax_1
secret=iax_1
;callerid=asrecei
;callerid=”081234567890″ <1234567890>
qualify=yes
context=iax-trunk
Register di server Bandung

extensions.conf
[globals]
IAX_1 = iax2/iax_1:iax_1@192.168.0.50
[iax-trunk]
exten => _X.,1,Dial(SIP/4002,,tT)
[ecentrix-agents]
exten => _9X.,1,DIAL(${IAX_1}/${EXTEN:1},,tT)
WARNING
Apabila muncul error pada saat menjalankan iax2 reload
“Unable to support trunking on peer ” without timing”
maka kemungkinan karena blm di reload
module reload chan_iax2.so
dan comment ; trunk = Yest pada iax.conf
saya tidak tau kenapa bisa begini:) heheheh
Advertisements

One thought on “ASTERISK IAX + Quintum AF Series ( Case : Implementasi Menghubungkan antar kantor cabang )

  1. fadsfas January 31, 2012 at 10:38 am Reply

    dsfasfasfas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: