Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
x86_64 x86_64
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
Install sample config files in /etc/asterisk and set Asterisk to start at boot.
make samples make config
chkconfig asterisk on
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
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 !