Sei sulla pagina 1di 5

Instalando Asterisk 1.8 en Centos 6.xx 1- Instala Centos 6 desde donde sea posible. (Yo Instal la Centos 6.

2 i386 Live porque es mas facil para bootearlo desde USB). 2- Antes de comensar a instalar los paquetes necesarios Actualizaremos todo el sistema:
yum update -y - Cuando realizas cambios en los paquetes instalados en Linux no es necesario reiniciar, pero como el Kernel se actualiz con el yum update, debes subir con el kernel Nuevo, as que reiniciamos: init 6

Install wget to pull down Asterisk:


yum install wget

Download Asterisk 1.8 & DAHDI + Tools


wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.5.0.tar.gz && wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linuxcomplete-2.5.0+2.5.0.tar.gz

Asterisk & DAHDI Tools need extracting, to extract the tar.gz


tar -xvzf asterisk-1.8* && tar -xvzf dahdi-linux-complete-*

Install dependencies so we can compile Asterisk 1.8


yum install kernel-devel gcc make gcc-c++ libxml2-devel

This should look like:


Dependencies Resolved ========================================================== ====================== Package Arch Version Repository Size ========================================================== ====================== Installing: gcc gcc-c++ kernel-devel libxml2-devel make cloog-ppl cpp glibc-devel glibc-headers kernel-headers libgomp x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 4.4.4-13.el6 4.4.4-13.el6 2.6.32-71.29.1.el6 2.7.6-1.el6 1:3.81-19.el6 0.15.7-1.2.el6 4.4.4-13.el6 2.12-1.7.el6_0.5 2.12-1.7.el6_0.5 2.6.32-71.29.1.el6 4.4.4-13.el6 base base base base base base base updates updates updates 108 k 10 M 4.7 M 6.5 M 1.1 M 389 k 93 k 3.7 M 961 k 592 k 991 k updates

Installing for dependencies:

libstdc++-devel mpfr pkgconfig ppl zlib-devel

x86_64 x86_64

4.4.4-13.el6 base 1:0.23-9.1.el6

base base base base

1.5 M 157 k 70 k 1.3 M 43 k

x86_64 x86_64 x86_64

2.4.1-6.el6 0.10.2-11.el6 1.2.3-25.el6

Transaction Summary ========================================================== ====================== Install Upgrade 16 Package(s) 0 Package(s)

Total download size: 32 M Installed size: 90 M Is this ok [y/N]: y

You also need to install Perl & ncurses-devel


yum install perl ncurses-devel

Build DAHDi, this needs to be built first so you can build Asterisk with support for conference rooms and anything else that requires DAHDi. MAKE SURE YOU DO THIS FIRST.
cd dahdi-linux-complete* make all make install make config

For this tutorial I am only going to be using SIP trunks, I have no hardware installed. If you have are using cards / hardware you might want to check out /etc/dahdi/system.conf and /etc/asterisk/chan_dahdi.conf. Start DAHDi at Boot
chkconfig dahdi on service dahdi start

Build Asterisk
cd asterisk-* make clean ./configure

Configure your Asterisk Server options and install


make menuselect make make install

Install sample config files in /etc/asterisk and set Asterisk to start at boot.
make samples make config

chkconfig asterisk on

Start Asterisk to test it runs!


asterisk -vvvvc

To stop asterisk
core stop now If Asterisk does not run chances are you made a mistake, it happens. Check you have follow my guide exactly and start again if necessary. Once you have tested Asterisk is working start the service /etc/init.d/asterisk start

########## Instalando Digium Asterisk GUI


Actualizado 11 Septiembre 2009 Hoy veremos como instalar la interfaz grfica Asterisk GUI, versin 2.0, en la versin 1.6.0.X de asterisk. Como que arrancando la GUI sta modifica algunos archivos de configuracin de asterisk, antes que nada, sacamos una copia de nuestros archivos de configuracin de asterisk mkdir /tmp/asterisk cp /etc/asterisk/* /tmp/asterisk Para descargar todos los archivos debemos tener instalado el programa subversion. yum install subversion cd /usr/src Ahora bajamos el paquete completo svn co http://svn.asterisk.org/svn/asterisk-gui/branches/2.0 entramos en la carpeta cd 2.0/ compilamos y instalamos ./configure make make install Ahora tenemos que modificar dos archivos de configuracin de asterisk. Primero vamos a modificar el manager.conf nano /etc/asterisk/manager.conf [general] enabled = yes

webenabled = yes port = 5038 httptimeout = 60 bindaddr = direccin ip servidor asterisk [admin] secret = contrasea read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan write = system,call,agent,user,config,command,reporting,originate Guardamos los cambios y pasamos al archivo http.conf nano /etc/asterisk/http.conf [general] enabled = yes enablestatic = yes bindaddr=direccion IP servidor asterisk bindport=8088 Guardamos los cambios y reiniciamos asterisk /etc/init.d/asterisk reload Ahora tenemos que abrir los puertos 5038 TCP y 8080 TCP en nuestro cortafuegos nano /etc/sysconfig/iptables aadimos estas lneas # Asterisk Manager -A INPUT -p tcp --dport 5038 -j ACCEPT # Asterisk http -A INPUT -p tcp --dport 8088 -j ACCEPT Guardamos los cambios y reiniciamos el cortafuegos service iptables restart Ahora averiguamos que todo est bien configurado /usr/src/2.0: make checkconfig --- Checking Asterisk configuration to see if it will support the GUI --* Checking for http.conf: OK * Checking for manager.conf: OK * Checking if HTTP is enabled: OK * Checking if HTTP static support is enabled: OK * Checking if manager is enabled: OK * Checking if manager over HTTP is enabled: OK --- Everything looks good --* GUI should be available at http://www.example.com:8088/asterisk/static/config/cfgbasic.html Desde nuestro firefox visitamos la pagina de nuestro servidor asterisk (cambien example.com con la direccin IP de su servidor asterisk). http://www.example.com:8088/asterisk/static/config/cfgbasic.html Si esta no funciona prueben:

http://www.example.com:8088/static/config/cfgbasic.html Aqu van algunas imgenes de la interfaz grfica cd /var/lib/asterisk/static-http chmod 777 config

http://localhost:8088/static/config/index.html

Si al Loguearse le presenta:

The GUI does not have necessary privileges. Please check the manager permissions for the user !

Potrebbero piacerti anche