LinuxParty

NUESTRO SITIO necesita la publicidad para costear hosting y el dominio. Por favor considera deshabilitar tu AdBlock en nuestro sitio. También puedes hacernos una donación entrando en linuxparty.es, en la columna de la derecha.

Ratio: 4 / 5

Inicio activadoInicio activadoInicio activadoInicio activadoInicio desactivado
 

Asterisk es un software Open Source PBX (Private Branch Exchange), desarrollado por Mark Specer de Digium. Permite realizar llamadas de equipos conectados a través de redes RTPC (Red telefónica pública conmutada) y voz sobre IP (VoIP). Asterisk funciona en Linux, BSDy MacOSX. Incorpora funciones como correo de voz, conferencias, IVR, colas etc..

En este artículo, tendremos una instalación básica y funcionando de Asterisk 11 en los siguientes sistemas operativos probados, (tal vez en posteriores también fucione) RHEL 6.4/6.3/6.2/6.1/6.0, CentOS 6.4/6.3/6.2/6.1/6.0, Fedora 18,17,16, Ubuntu 12.10/12.04/11.10, Linux Mint 14/13 y sistemas operativos de Linux Debian .

1. Preparación para la instalación

En primer lugar, asegúrese que su sistema esta actualizado, si no intente actualizar el sistema y luego instalar paquetes de dependencias usando el comando "yum" o el comando "apt-get", antes de instalar Asterisk en su sistema.

En RHEL/CentOS/Fedora

# yum -y update
# yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel

Desactivar SELinux cambiando la linea "enforcing" a "disabled" en el archivo /etc/selinux/config.

SELINUX=disabled

Una vez que usted desactivado SELinux, deberá reiniciar el sistema.

reboot

En Ubuntu / Linux Mint / Debian

# su root
# apt-get update && apt-get upgrade -y && reboot
# apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev  libxml2-dev linux-headers-$(uname -r) libsqlite3-dev

2. Descargar DAHDI, LibPRI y Tarballs de Asterisk

Descargar los archivos fuente, los siguientes comandos descargarán la versión actual de DAHDI 2.6, LibPRI 1.4 y Asterisk 11.

# cd /usr/src/
# wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

A continuación, extraiga los archivos de fuente tarballs usando el comando "tar" como se muestra a continuación.

# tar zxvf dahdi-linux-complete-current.tar.gz
# tar zxvf libpri-1.4-current.tar.gz
# tar zxvf asterisk-11-current.tar.gz

3. Configurar, compilar e instalar

Vaya al directorio de cada archivo descargado y descomprimido y ejecute los siguientes comandos para instalar DAHDI, LibPRI y Asterisk. Instalar DAHDI.

# cd /usr/src/dahdi-linux-complete-2.6.2+2.6.2/
# make && make install && make config

Instalar LibPRI

# cd /usr/src/libpri-1.4.14/
# make && make install

Instalación de Asterisk

A continuación, ejecute que el script "configure" variará dependiendo de si su sistema es 32 bits o 64 bits. En el centro, cuando se ejecuta el comando "menuselect", seleccione las opciones deseadas y luego haga click "Guardar y salir" y continúe la instalación.

Ejecute este comando si está instalando Asterisk en un SO de 32 bits.

# cd /usr/src/asterisk-11.3.0/
# ./configure && make menuselect && make && make install && make samples && make config

Ejecute este comando si está instalando Asterisk en un so de 64 bits.

# cd /usr/src/asterisk-11.3.0/
# ./configure --libdir=/usr/lib64 && make menuselect && make && make install && make samples && make config

Los siguientes son algunos archivos de configuración de Asterisk y sus ubicaciones.

   /etc/asterisk/ – archivos de configuración.
   /var/lib/asterisk/ – contiene imágenes, firmware, llaves, archivos de ejemplo.
   /usr/lib/asterisk/modules/ – contiene todos los módulos cargables.

4. Puesta en marcha de los servicios de Asterisk y DAHDI

Habilitar los servicios DAHDI y Asterisk al momento del arranque del sistema.

# chkconfig dahdi on
# chkconfig asterisk on

Iniciar el DAHDI y Asterisk.

# service dahdi start
# service asterisk start

5. Conectar a Asterisk CLI

Ejecute el siguiente comando para conectar a la CLI de Asterisk.

# asterisk -rvvvvv

Asterisk 11.3.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.>
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.
=========================================================================
Connected to Asterisk 11.3.0 currently running on tecmint (pid = 1820)
tecmint*CLI>

6. Comandos de la consola de asterisk

Es similar a IOS. Desde la terminal de Asterisk en cualquier momento puede utilizar 'tabulador' o escribir '?' para obtener ayuda de un comando o completa.

tecmint*CLI>
!              acl            ael            agent          agi            aoc            
calendar       cc
cdr            cel            channel        cli            confbridge     config         
console        core
data           database       devstate       dialplan       dnsmgr         dundi          
event          fax
features       file           group          hangup         help           http           
iax2           indication
local          logger         manager        mgcp           minivm         mixmonitor     
module         moh
no             originate      parkedcalls    phoneprov      presencestate  pri            
queue          realtime
reload         rtcp           rtp            say            sip            skinny         
stun           timing
udptl          ulimit         unistim        voicemail

7. Útiles comandos de la CLI de Asterisk

    restart gracefully – reiniciar Asterisk con gracia.
    restart now – reiniciar inmediatamente.
    restart when convenien – reiniciar Asterisk cuando no tenga llamadas
    reload – cargar configuración.
    stop gracefull – cierre de Asterisk con gracia.
    stop now – apagado inmediatamente.
    stop when convenien – Parar Asterisk cuando no tenga llamadas

8. Parámetros de línea de comandos:

Los siguientes son los parámetros de línea de comandos disponibles de asterisco.

-h : Help. Run '/sbin/asterisk -h' to get a list of the available command line parameters.
-C : Starts Asterisk with a different configuration file than the default /etc/asterisk/asterisk.conf.
-f : Foreground. Starts Asterisk but does not fork as a background daemon.
-c : Enables console mode. Starts Asterisk in the foreground (implies -f), with a console command line interface (CLI) that can be used to issue commands and view the state of the system.
-r : Remote console. Starts a CLI console which connects to an instance of Asterisk already running on this machine as a background daemon.
-R : Remote console. Starts a CLI console which connects to an instance of Asterisk already running on this machine as a background daemon and attempts to reconnect if disconnected.
-t : Record soundfiles in /var/tmp and move them where they belong after they are done.
-T : Display the time in "Mmm dd hh:mm:ss" format for each line of output to the CLI.
-n : Disable console colorization (for use with -c or -r)
-i: Prompt for cryptographic initialization passcodes at startup.
-p : Run as pseudo-realtime thread. Run with a real-time priority. (Whatever that means.)
-q : Quiet mode (supress output)
-v : Increase verbosity (multiple v's = more verbose)
-V : Display version number and exit.
-d : Enable extra debugging across all modules.
-g : Makes Asterisk dump core in the case of a segmentation violation.
-G  : Run as a group other than the caller.
-U  : Run as a user other than the caller
-x  : Execute command  (only valid with -r)

9. Enlace de referencia

http://www.Asterisk.org/

 

Pin It

Comentarios  

+1 # Matias PIno 03-09-2013 06:08
Genial! gracias por el tuto, me funciono perfect en mi fedora 19 de 64 xD
ahora descarge un softphone para testear que talca.

saludos :D
Responder | Responder con una citación | Citar
+1 # silviu 07-08-2014 07:03
donde estan descargadas:(( :zzz
Responder | Responder con una citación | Citar
+2 # silviu 07-08-2014 07:49
silviu asterisk-11.11. 0 # make menuselect
make: -F.: Command not found
/bin/sh: 0: Illegal option -
/bin/sh: 0: Illegal option -
/bin/sh: 0: Illegal option -
/bin/sh: 0: Illegal option -
/bin/sh: 0: Illegal option -
****
**** The configure script must be executed before running 'make'.
**** Please run "./configure".
****
make: *** No rule to make target `makeopts', needed by `menuselect/mak eopts'. Stop.



dame un correo o deja un msg...gracias
Responder | Responder con una citación | Citar
0 # max 25-09-2014 21:57
tenngo este error

[root@server dahdi-linux-com plete-2.10.0.1+ 2.10.0.1]# make
make -C linux all
make[1]: se ingresa al directorio `/usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux'
make -C drivers/dahdi/f irmware firmware-loaders
make[2]: se ingresa al directorio `/usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux/drivers/dahdi/f irmware'
make[2]: se sale del directorio `/usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux/drivers/dahdi/f irmware'
You do not appear to have the sources for the 3.16.2-201.fc20 .i686+PAE kernel installed.
make[1]: *** [modules] Error 1
make[1]: se sale del directorio `/usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux'
make: *** [all] Error 2


que puedo hacer?
Responder | Responder con una citación | Citar

Escribir un comentario


Código de seguridad
Refescar



Redes:



 

Suscribete / Newsletter

Suscribete a nuestras Newsletter y periódicamente recibirás un resumen de las noticias publicadas.

Donar a LinuxParty

Probablemente te niegues, pero.. ¿Podrías ayudarnos con una donación?


Tutorial de Linux

Filtro por Categorías