Implementasi Jaringan VoIP dengan Asterisk 1.4 : Administrasi Asterisk

Administrasi server Asterisk dilakukan dengan memasuki mode console dari komputer server bersistem operasi Linux, yaitu Asterisk CLI (Command Line Interfaces). Di Asterisk CLI dapat memonitor seluruh aktifitas jaringan VoIP.

  • Menjalankan Asterisk CLI.

# asterisk

# asterisk –rvvvvvvT

[Jun 5 12:24:39] Asterisk 1.4.19.1, Copyright (C) 1999 – 2008 Digium, Inc. and others.

[Jun 5 12:24:39] Created by Mark Spencer <markster@digium.com>

[Jun 5 12:24:39] Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.

[Jun 5 12:24:39] This is free software, with components licensed under the GNU General Public

[Jun 5 12:24:39] License version 2 and other licenses; you are welcome to redistribute it under

[Jun 5 12:24:39] certain conditions. Type ‘core show license’ for details.

[Jun 5 12:24:39] ==================================================================

[Jun 5 12:24:39] == Parsing ‘/etc/asterisk/asterisk.conf’: [Jun 5 12:24:39] Found

[Jun 5 12:24:39] == Parsing ‘/etc/asterisk/extconfig.conf’: [Jun 5 12:24:39] Found

[Jun 5 12:24:39] Connected to Asterisk 1.4.19.1 currently running on dikmansn-laptop (pid = 6270)

Verbosity was 0 and is now 6

dikmansn-laptop*CLI>

  • Monitor client yang terhubung ke server Asterisk

— Registered SIP ‘2003’ at 192.168.17.20 port 5060 expires 60

— Saved useragent “Voip Phone 1.0” for peer 2003

— Registered SIP ‘2002’ at 192.168.17.18 port 5060 expires 1800

— Saved useragent “X-Lite release 1105d” for peer 2002

  • Monitor client yang tidak terhubung ke Asterisk

— Unregistered SIP ‘2002’

— Unregistered SIP ‘2004’

  • Monitor client yang terdaftar di server Asterisk CLI.

dikmansn-laptop*CLI> sip show users

Username Secret Accountcode Def.Context ACL NAT

2004 2004 default No RFC3581

2003 2003 default No RFC3581

2002 2002 default No RFC3581

2001 2001 default No RFC3581

  • Monitor client yang terhubung dan tidak di server Asterisk CLI.

dikmansn-laptop*CLI> sip show peers

Name/username Host Dyn Nat ACL Port Status

2005/2005 (Unspecified) D 0 Unmonitored

2004/2004 192.168.17.19 D 5060 Unmonitored

2003/2003 192.168.17.20 D 5060 Unmonitored

2002/2002 192.168.17.18 D 5060 Unmonitored

2001/2001 (Unspecified) D 0 Unmonitored

5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 2 offline]

  • Monitor panggilan tak terjawab

— Executing [2002@default:1] Dial(“SIP/2003-081e3d30”, “SIP/2002|30|Ttm”) in new stack

— Called 2002I>

— Started music on hold, class ‘default’, on channel ‘SIP/2003-081e3d30’

— SIP/2002-081e92a8 is ringing

— Nobody picked up in 30000 ms

— Stopped music on hold on SIP/2003-081e3d30

— Executing [2002@default:2] VoiceMail(“SIP/2003-081e3d30”, “2002@default”) in new stack

— <SIP/2003-081e3d30> Playing ‘vm-intro’ (language ‘en’)

— <SIP/2003-081e3d30> Playing ‘beep’ (language ‘en’)

— Recording the message

— x=0, open writing:

/var/spool/asterisk/voicemail/default/2002/tmp/5h911r

format: wav49, 0x81eff10

— x=1, open writing:

/var/spool/asterisk/voicemail/default/2002/tmp/5h911r

format: gsm, 0x81f0228

— x=2, open writing:

/var/spool/asterisk/voicemail/default/2002/tmp/5h911r

format: wav, 0x81e9460

— User hung up>

== Spawn extension (default, 2002, 2) exited non-zero on

‘SIP/2003-081e3d30’

Keterangan dari script monitor panggilan tak terjawab:

Pada tampilan script panggilan tak terjawab Asterisk CLI, didapat bahwa user dengan extension 2003 akan menghubungi user dengan extension 2002. Selama menunggu user 2003 menjawab panggilan akan mendengarkan nada tunggu berupa musik. User 2002 ringing, tetapi selama 30 detik tidak menjawab panggilan user 2003, maka pada user 2003 akan masuk kedalam voicemail user 2002 dengan terlebih dahulu matinya musik dan panduan untuk meninggalkan pesan setelah terdengar bunyi “beep”. User 2003 dapat meninggalkan pesan yang akan tersimpan pada mailbox 2002 ataupun tidak meninggalkan pesan dengan menutup atau memutus hubungan.

  • Monitor panggilan terjawab

— Executing [2002@default:1] Dial(“SIP/2003-081e3d30”, “SIP/2002|30|Ttm”) in new stack

— Called 2002I>

— Started music on hold, class ‘default’, on channel ‘SIP/2003-081e3d30’

— SIP/2002-081e9630 is ringing

— SIP/2002-081e9630 answered SIP/2003-081e3d30

— Stopped music on hold on SIP/2003-081e3d30

== Spawn extension (default, 2002, 1) exited non-zero on ‘SIP/2003-081e3d30’

Keterangan dari script monitor panggilan terjawab:

Pada tampilan script panggilan Asterisk CLI, didapat bahwa user dengan extension 2003 akan menghubungi user dengan extension 2002. Selama menunggu user 2003 menjawab panggilan akan mendengarkan nada tunggu berupa musik. User 2002 ringing dan menjawab panggilan user 2003, maka pada user 2003 mematikan nada sambung, dan langsung dapat berkomunikasi dengan user 2002. Untuk memutus hubungan , dapat dilakukan oleh salah satu user.

Selesai sudah…. Selamat menikmati mencoba, semoga bermanfaat….

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