Install asterisk di debian leny

Written By pcbolong on Tuesday, May 25, 2010 | 5:59 PM

Asterrisk adalah salah satu softswitch yang digunakan dalam protocol ip phone. Ip phone dikenal juga dengan sebutan voip. Langsung saja, dibawah ini adalah langkah menginstall dan konfigurasi asterisk.

Login sebagai root, dan ketikkan

lulus:/home/master# apt-get install asterisk

Proses install otomatis akan berjalan.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
postgresql-client-8.3 postgresql-client-common postgresql-common
postgresql-8.3
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
asterisk-config asterisk-sounds-main libgsm1 libiksemel3 libogg0 libperl5.10
libpri1.0 libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15 libspeex1
libspeexdsp1 libsqlite0 libsysfs2 libtonezone1 libvorbis0a libvorbisenc2
libvpb0 module-assistant vpb-driver-source
Suggested packages:
ekiga ohphone twinkle kphone asterisk-doc asterisk-dev asterisk-h323
lm-sensors speex vpb-utils
The following NEW packages will be installed:
asterisk asterisk-config asterisk-sounds-main libgsm1 libiksemel3 libogg0
libperl5.10 libpri1.0 libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15
libspeex1 libspeexdsp1 libsqlite0 libsysfs2 libtonezone1 libvorbis0a
libvorbisenc2 libvpb0 module-assistant vpb-driver-source
0 upgraded, 22 newly installed, 0 to remove and 40 not upgraded.
Need to get 10.2MB of archives.
After this operation, 24.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://kebo.vlsm.org lenny/main libgsm1 1.0.12-1 [27.2kB]
Get:2 http://kebo.vlsm.org lenny/main libiksemel3 1.2-4 [35.2kB]
Get:3 http://security.debian.org lenny/updates/main libvorbis0a 1.2.0.dfsg-3.1+lenny1 [102kB]
Get:4 http://kebo.vlsm.org lenny/main libogg0 1.1.3-4 [14.3kB]
Get:5 http://kebo.vlsm.org lenny/main libpri1.0 1.4.3-2 [120kB]
Get:6 http://security.debian.org lenny/updates/main libvorbisenc2 1.2.0.dfsg-3.1+lenny1 [77.3kB]
Get:7 http://security.debian.org lenny/updates/main asterisk-config 1:1.4.21.2~dfsg-3+lenny1 [479kB]
Get:8 http://kebo.vlsm.org lenny/main libradiusclient-ng2 0.5.5-1 [36.4kB]
Get:9 http://kebo.vlsm.org lenny/main libsnmp-base 5.4.1~dfsg-12 [1369kB]
Get:10 http://security.debian.org lenny/updates/main asterisk-sounds-main 1:1.4.21.2~dfsg-3+lenny1 [1898kB]
Get:11 http://kebo.vlsm.org lenny/main libperl5.10 5.10.0-19lenny2 [623kB]
Get:12 http://kebo.vlsm.org lenny/main libsysfs2 2.1.0-5 [28.3kB]
Get:13 http://kebo.vlsm.org lenny/main libsensors3 1:2.10.7-1 [113kB]
Get:14 http://kebo.vlsm.org lenny/main libsnmp15 5.4.1~dfsg-12 [2063kB]
Get:15 http://security.debian.org lenny/updates/main asterisk 1:1.4.21.2~dfsg-3+lenny1 [2407kB]
Get:16 http://kebo.vlsm.org lenny/main libspeex1 1.2~rc1-1 [111kB]
Get:17 http://kebo.vlsm.org lenny/main libspeexdsp1 1.2~rc1-1 [86.8kB]
Get:18 http://kebo.vlsm.org lenny/main libsqlite0 2.8.17-4 [174kB]
Get:19 http://kebo.vlsm.org lenny/main libtonezone1 1:1.4.11~dfsg-3 [72.8kB]
Get:20 http://kebo.vlsm.org lenny/main libvpb0 4.2.38.1-1 [188kB]
Get:21 http://kebo.vlsm.org lenny/main module-assistant 0.10.11.0 [103kB]
Get:22 http://kebo.vlsm.org lenny/main vpb-driver-source 4.2.38.1-1 [81.8kB]
Fetched 10.2MB in 7min15s (23.5kB/s)
Selecting previously deselected package libgsm1.
(Reading database ... 33122 files and directories currently installed.)
Unpacking libgsm1 (from .../libgsm1_1.0.12-1_i386.deb) ...
Selecting previously deselected package libiksemel3.
Unpacking libiksemel3 (from .../libiksemel3_1.2-4_i386.deb) ...
Selecting previously deselected package libogg0.
Unpacking libogg0 (from .../libogg0_1.1.3-4_i386.deb) ...
Selecting previously deselected package libpri1.0.
Unpacking libpri1.0 (from .../libpri1.0_1.4.3-2_i386.deb) ...
Selecting previously deselected package libradiusclient-ng2.
Unpacking libradiusclient-ng2 (from .../libradiusclient-ng2_0.5.5-1_i386.deb) ...
Selecting previously deselected package libsnmp-base.
Unpacking libsnmp-base (from .../libsnmp-base_5.4.1~dfsg-12_all.deb) ...
Selecting previously deselected package libperl5.10.
Unpacking libperl5.10 (from .../libperl5.10_5.10.0-19lenny2_i386.deb) ...
Selecting previously deselected package libsysfs2.
Unpacking libsysfs2 (from .../libsysfs2_2.1.0-5_i386.deb) ...
Selecting previously deselected package libsensors3.
Unpacking libsensors3 (from .../libsensors3_1%3a2.10.7-1_i386.deb) ...
Selecting previously deselected package libsnmp15.
Unpacking libsnmp15 (from .../libsnmp15_5.4.1~dfsg-12_i386.deb) ...
Selecting previously deselected package libspeex1.
Unpacking libspeex1 (from .../libspeex1_1.2~rc1-1_i386.deb) ...
Selecting previously deselected package libspeexdsp1.
Unpacking libspeexdsp1 (from .../libspeexdsp1_1.2~rc1-1_i386.deb) ...
Selecting previously deselected package libsqlite0.
Unpacking libsqlite0 (from .../libsqlite0_2.8.17-4_i386.deb) ...
Selecting previously deselected package libtonezone1.
Unpacking libtonezone1 (from .../libtonezone1_1%3a1.4.11~dfsg-3_i386.deb) ...
Selecting previously deselected package libvorbis0a.
Unpacking libvorbis0a (from .../libvorbis0a_1.2.0.dfsg-3.1+lenny1_i386.deb) ...
Selecting previously deselected package libvorbisenc2.
Unpacking libvorbisenc2 (from .../libvorbisenc2_1.2.0.dfsg-3.1+lenny1_i386.deb) ...
Selecting previously deselected package libvpb0.
Unpacking libvpb0 (from .../libvpb0_4.2.38.1-1_i386.deb) ...
Selecting previously deselected package asterisk-config.
Unpacking asterisk-config (from .../asterisk-config_1%3a1.4.21.2~dfsg-3+lenny1_all.deb) ...
Selecting previously deselected package asterisk-sounds-main.
Unpacking asterisk-sounds-main (from .../asterisk-sounds-main_1%3a1.4.21.2~dfsg-3+lenny1_all.deb) ...
Selecting previously deselected package asterisk.
Unpacking asterisk (from .../asterisk_1%3a1.4.21.2~dfsg-3+lenny1_i386.deb) ...
Selecting previously deselected package module-assistant.
Unpacking module-assistant (from .../module-assistant_0.10.11.0_all.deb) ...
Selecting previously deselected package vpb-driver-source.
Unpacking vpb-driver-source (from .../vpb-driver-source_4.2.38.1-1_all.deb) ...
Processing triggers for man-db ...
Setting up libgsm1 (1.0.12-1) ...
Setting up libiksemel3 (1.2-4) ...
Setting up libogg0 (1.1.3-4) ...
Setting up libpri1.0 (1.4.3-2) ...
Setting up libradiusclient-ng2 (0.5.5-1) ...
Setting up libsnmp-base (5.4.1~dfsg-12) ...
Setting up libperl5.10 (5.10.0-19lenny2) ...
Setting up libsysfs2 (2.1.0-5) ...
Setting up libsensors3 (1:2.10.7-1) ...
.udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.

Creating config file /etc/sensors.conf with new version
Setting up libsnmp15 (5.4.1~dfsg-12) ...
Setting up libspeex1 (1.2~rc1-1) ...
Setting up libspeexdsp1 (1.2~rc1-1) ...
Setting up libsqlite0 (2.8.17-4) ...
Setting up libtonezone1 (1:1.4.11~dfsg-3) ...
Setting up libvorbis0a (1.2.0.dfsg-3.1+lenny1) ...
Setting up libvorbisenc2 (1.2.0.dfsg-3.1+lenny1) ...
Setting up libvpb0 (4.2.38.1-1) ...

Voicetronix hardware configuration helper 4.2.38.1.
This will scan the PCI bus to determine what cards you have
and create a set of default config files for them.

Scanning PCI bus....
Failed to read hardware config: Cannot find any VoiceTronix boards!

Setting up asterisk-config (1:1.4.21.2~dfsg-3+lenny1) ...
Setting up asterisk-sounds-main (1:1.4.21.2~dfsg-3+lenny1) ...
Setting up asterisk (1:1.4.21.2~dfsg-3+lenny1) ...
Adding system user for Asterisk
Adding user `asterisk' to group `dialout' ...
Adding user asterisk to group dialout
Done.
Adding user `asterisk' to group `audio' ...
Adding user asterisk to group audio
Done.
Starting Asterisk PBX: asterisk.
Setting up module-assistant (0.10.11.0) ...
Setting up vpb-driver-source (4.2.38.1-1) ...


Nah sampai langkah di atas, berarti proses instalasi asterisk sudah selesai. Sekarang kita cek apakah asterisk berjalan dengan baik. Caranya dengan mengetikkan

asterisk –vvc

maka asterisk akan me-load modul dan mengkonfigurasinya. Jika asterisk berhasil meload modul dan mengkonfigurasi makan akan muncul tampilan seperti di bawah ini

Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on lulus (pid = 4518)
Verbosity was 0 and is now 2
lulus*CLI>


Sekarang kita sudah masuk ke dalam command line interfaces milik asterisk. Untuk keluar dari asterisk command line tetapi agar asterisk tetap running, cukup ketikkan exit. Untuk menghentikan proses asterisk cukup ketikkan stop now. Sampai di sini dulu tutorial kali ini.

0 comments: