0% found this document useful (0 votes)
61 views12 pages

Asterisk - Clase 0: - Germán Venturino - Rootlinux

This document provides instructions for installing and configuring Asterisk on a Linux system using DAHDI. It includes steps for compiling and installing dependencies like DAHDI and libpri. It then covers configuring, compiling, and installing Asterisk. Finally, it demonstrates starting and testing DAHDI and running basic Asterisk commands via the Asterisk CLI.

Uploaded by

chamikos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views12 pages

Asterisk - Clase 0: - Germán Venturino - Rootlinux

This document provides instructions for installing and configuring Asterisk on a Linux system using DAHDI. It includes steps for compiling and installing dependencies like DAHDI and libpri. It then covers configuring, compiling, and installing Asterisk. Finally, it demonstrates starting and testing DAHDI and running basic Asterisk commands via the Asterisk CLI.

Uploaded by

chamikos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Asterisk Clase 0

Germn Venturino
[email protected]
ROOTLINUX
Asterisk

www.asterisk.org

Licencia GPL

PBX por sotware

Gatewa! entre VoIP ! Te"eon#a tra$iciona"

P"ataorma $e %TI

Posee unciona"ia$es a&an'a$as ()ueues* IVR*


V+* %onerence rooms,
Compilacin
Insta"aci-n $e $epen$encias para .e/ian 0
# apt-get install -y build-essential linux-headers-`uname -r` libxml2-dev
libncurses5-dev libsqlite3-dev sqlite3 libnewt-dev libssl-dev
%ompi"aci-n $e .12.I
# cd /usr/src
# tar -xzvf dahdi-linux-cmplete-current!tar!gz
# cd dahdi-linux-cmplete-2!"!#$2!"!#
# ma%e
Compilacin
3"timas "#neas $e make
ma%e&2'( )eaving directry `/usr/src/dahdi-linux-cmplete-2!"!#$2!"!#/tls/xpp*
ma%e&+'( )eaving directry `/usr/src/dahdi-linux-cmplete-2!"!#$2!"!#/tls*
Insta"aci-n
# ma%e install
,ltimas l-neas de ma%e install
###################################################
###
### ./0.1 tls installed successfully!
### 1f yu have nt dne s befre2 install init scripts with(
###
### ma%e cnfig
###
###################################################
ma%e&+'( )eaving directry `/usr/src/dahdi-linux-cmplete-2!"!#$2!"!#/tls*
# ma%e cnfig
Compilacin
Li/pri
# cd /usr/src
# tar -xzvf libpri-+!3-current!tar!gz
# cd libpri-+!3!+3
# ma%e
3"timas "#neas $e make
/sbin/ldcnfig -n !
ln -sf libpri!s!+!3 libpri!s
gcc -g -4all -4errr -4strict-prttypes -4missing-prttypes -f516 -72 -.89::;<9/;<
-.8=;>8?7>96: -@. -@< testprilib! -@A !testprilib!!d -@5 -c - testprilib! testprilib!c
gcc - testprilib testprilib! libpri!a -lpthread -g -4all -4errr -4strict-prttypes -4missing-prttypes -f516
-72
Insta"aci-n
# ma%e install
Compilacin
1sterisk
# cd /usr/src
# tar -xzvf asteris%-++-current!tar!gz
# cd asteris%-++!3!#
# !/cnfigure
3"timas "#neas $e conigure
$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type : linux-gnu
configure: Host CPU : i686
configure: build-cpu:vendor:os: i686 : pc : linux-gnu :
configure: host-cpu:vendor:os: i686 : pc : linux-gnu :
Compilacin
# ma%e menucnfig
Compilacin
Ingresar a" men4 5%ore 6oun$ Packages7
6e"eccionar 5%OR896OUN.69869G6+7 (8nter,
Guar$ar ! sa"ir
Compilacin
# ma%e
3"timas "#neas $e make
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ make install +
+-------------------------------------------+
Insta"aci-n
# ma%e install
# ma%e cnfig
# ma%e samples
Prueba de los productos
Iniciar .12.I
# /etc/init!d/dahdi start
)ading ./0.1 hardware mdules(
wct3xxp( dne wcte+2xp( dne wct+xxp( dne wcte++xp( dne wctdm23xxp( dne wcfx( dne
wctdm( dne wcb3xxp( dne wctc3xxp( dne xpp8usb( dne
Iniciar 1sterisk en mo$o conso"a
# asteris% -gcvv
/steris% 9eady!
B6)1C
.etener 1sterisk
B6)1C cre stp nw
B6)1C cre stp gracefully
B6)1C cre stp when cnvenient
Reinicio $e 1sterisk
B6)1C cre restart nw
B6)1C cre restart gracefully
B6)1C cre restart when cnvenient
Iniciar Asterisk
Inicio $e 1sterisk como $emonio
# /etc/init!d/asteris% start
?tarting /steris% 5DE( asteris%!
Ingresar a" %LI $e 1sterisk
# asteris% -r
/steris% +#!3!#2 6pyright F6G +HHH - 2#+2 .igium2 1nc! and thers!
6reated by @ar% ?pencer Imar%sterJdigium!cmC
/steris% cmes with /D?7)><:)K ;7 4/99/;<KL type *cre shw warranty* fr details!
<his is free sftware2 with cmpnents licensed under the =;> =eneral 5ublic
)icense versin 2 and ther licensesL yu are welcme t redistribute it under
certain cnditins! <ype *cre shw license* fr details!
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
M
6nnected t /steris% +#!3!# currently running n asteris% Fpid M H533G
asteris%B6)1C
6a"ir $e" %LI sin $etener 1sterisk
asteris%B6)1C exit
Herramientas de DAHDI
.12.I %onig
# dahdi8cfg -vv
.12.I test
# dahdi8test
7pened pseud dahdi interface2 measuring accuracy!!!
HH!N22O HH!35+O HH!"+PO HH!P3#O HH!N"+O HH!5H+O HH!522O HH!5#NO
HH!N"HO HH!H23O HH!5"PO HH!"+5O HH!NN#O HH!N++O HH!H3NO HH!HHNO
HH!"3"O HH!NNNO HH!25PO HH!NP"O HH!NP"O HH!PHNO HH!NHHO HH!H52O
HH!H+HO HH!HN5O HH!N55O HH!H#3O HH!3"2O HH!N2NO HH!P52O HH!NHPO
HH!H##O HH!"25O HH!5"PO HH!P5PO HH!P32O HH!N2HO HH!H+PO HH!NN3O
HH!H3#O HH!H3"O HH!HN2O HH!PPHO HH!H22O HH!HNPO HH!N3#O HH!HHHO
--- 9esults after 3N passes ---
Dest( HH!HHH -- 4rst( HH!25P -- /verage( HH!"NN2"22 .ifference( HH!N"3P5+
.12.I 6pee$
# dahdi8speed
6unt( 5HN+3P

You might also like