sábado, 31 de marzo de 2012

Instalar Asterisk desde repositorio.

Situarse en: /etc/yum.repos.d
Hay que crear los siguientes archivos centos-asterisk.repo y centos-digium.repo
Con un >centos-asterisk.repo y >centos-digium.repo bastaría.
Editar el archivo centos-digium.repo e insertar el siguiente texto:
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium

[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium


Editar el archivo centos-digium.repo e insertar el siguiente texto:

[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

Ahora tenemos que instalar los paquetes desde el yum:

[root@localhost yum.repos.d]# yum install asterisk16 asterisk16-configs asterisk16-voicemail dahdi-linux

Ahora ya sólo queda ejecutar el Asterisk y disfrutarlo !


Complete!
You have new mail in /var/spool/mail/root
[root@localhost yum.repos.d]# asterisk
You have new mail in /var/spool/mail/root
[root@localhost yum.repos.d]# asterisk -rvvv
Asterisk 1.6.2.20, Copyright (C) 1999 - 2010 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.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.6.2.20 currently running on localhost (pid = 5957)
Verbosity was 0 and is now 3
localhost*CLI>