Archive for the ‘freepbx’ Category

Manual detallado para instalar asterisk 1.4 y freepbx

April 19, 2008

http://phylevn.mexrom.com/index.php/blog/show/Receta_casera_para_Asterisk_14_y_FreePBX_231.html

Muy bueno este manual.

Instalar asterisk y freepbx de una sola vez

March 30, 2008

La referencia de este excelente articulo es:

http://www.ecualug.org/?q=2007/jan/14/comos/instalar_asterisk_y_freepbx_2_2_0_en_debian

freePBX 2.2.0 es la ultima versión de este potente gestor de administración de Asterisk, ya antes se había indicado como instalar la version 1.1.x de freePBX y Asterisk. Estas instrucciones pueden ser adaptada para su utilización con otras distribuciones diferentes a Debian.

Primero debemos instalar algunas dependencias, usamos aptitude:

aptitude update
aptitude install vim libasound2 libgsm1 libltdl3 libpq3 libspeex1 \
libsqlite0 libtonezone1 odbcinst1 unixodbc openssl libssl0.9.7 build-essential\
libssl-dev libreadline4 libreadline4-dev libeditline0 libeditline-dev \
libedit-dev libedit2 libncurses5 libncurses5-dev zlib1g-dev bison \
libnet-telnet-perl mime-construct libipc-signal-perl libmime-types-perl \
libproc-waitstat-perl subversion libipc-signal-perl libproc-waitstat-perl \
apache2 mysql-server php5 php5-cli php5-mysql php5-pear libapache2-mod-php5 \
php5-curl libmysqlclient14-dev libmysqlclient14 php5-gd make gcc g++ fxload \
php5-cgi php-pear php-db

Instalar kernel-headers para la versión de kernel que estemos utilizando:
aptitude install kernel-headers-`uname -r`

Agregar el repositorio para instalar asterisk 1.2.14:

echo "deb http://pkg-voip.buildserver.net/debian etch main" >> /etc/apt/sources.list
aptitude update

Instalar Asterisk en caso de que aún no este instalado:

aptitude install asterisk asterisk-mysql asterisk-mp3

Instalar asterisk-perl:

cd /usr/src
wget http://asterisk.gnuinter.net/files/asterisk-perl-0.09.tar.gz
tar zxf asterisk-perl-0.09.tar.gz
cd asterisk-perl-0.09
perl Makefile.PL
make install

Si tenemos una version anterior bastará con ejecutar el instalador de FreePBX 2.2.0 para su actualización:

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.2.0-withmodules.tar.gz
tar zxvf freepbx-2.2.0-withmodules.tar.gz
cd freepbx-2.2.0
./install_amp

Si no tenemos ninguna versión de FreePBX entonces es necesario crear la base de datos y sus tablas respectivas:

mysqladmin create asteriskcdrdb
mysql asteriskcdrdb < /usr/src/freepbx-2.2.0/SQL/cdr_mysql_table.sql mysqladmin create asterisk mysql asterisk < /usr/src/freepbx-2.2.0/SQL/newinstall.sql

echo "GRANT ALL ON asterisk.* to asteriskuser@localhost identified by 'amp109'" | mysql
echo "GRANT ALL ON asteriskcdrdb.* to asteriskuser@localhost identified by 'amp109'" | mysql

Creamos el directorio donde irá nuestra instalación de freepbx y los sonidos:

mkdir -p /var/www/freepbx
mkdir -p /var/www/cgi-bin
mkdir -p /var/lib/asterisk/sounds/custom

Ejecutamos el instalador de FreePBX:

/usr/src/freepbx-2.2.0/install_amp
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking for /etc/amportal.conf../etc/amportal.conf does not exist, copying default
Creating new /etc/amportal.conf
Enter your USERNAME to connect to the 'asterisk' database:
[asteriskuser] asteriskuser
Enter your PASSWORD to connect to the 'asterisk' database:
[amp109] amp109
Enter the hostname of the 'asterisk' database:
[localhost] localhost
Enter a USERNAME to connect to the Asterisk Manager interface:
[admin] admin
Enter a PASSWORD to connect to the Asterisk Manager interface:
[amp111] amp111
Enter the path to use for your AMP web root:
[/var/www/html]
/var/www/freepbx
Enter the IP ADDRESS or hostname used to access the AMP web-admin:
[xx.xx.xx.xx] 123.123.123.101
Enter a PASSWORD to perform call transfers with the Flash Operator Panel:
[passw0rd] passw0rd
Use simple Extensions [extensions] admin or separate Devices and Users [deviceanduser]?
[extensions] extensions
Enter directory in which to store AMP executable scripts:
[/var/lib/asterisk/bin]
/var/lib/asterisk/bin
Created /var/lib/asterisk/bin
Enter directory in which to store super-user scripts:
[/usr/sbin]
/usr/sbin
/etc/amportal.conf writtenAssuming new install, --install-moh added to command line
OK
Reading /etc/amportal.conf..OK
Checking for /etc/asterisk/asterisk.conf..OK
Reading /etc/asterisk/asterisk.conf..OK
Using asterisk as PBX Engine
Checking for Asterisk 1.2..OK
Checking for selinux..OK
Connecting to database..OK
Checking current version of AMP..2.2.0beta3
OK
Configuring install for your environment..OK
Setting permissions on files..OK
Checking for upgrades..OK
Generating AMP configs..
Generating Configurations.conf..
Generating AMP configs..OK
Restarting Flash Operator Panel..OK
Please update your modules and reload Asterisk by visiting http://123.123.123.101/freepbx/admin

*************************************************************************
* Note: It's possible that if you click the red 'Update Now' bar BEFORE *
* updating your modules, your machine will start dropping calls. Ensure *
* that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
* as this is observed, your machine will be fully functional whilst the *
* upgrade is in progress. *
*************************************************************************

Finalmente ejecutamos:

amportal chown

Y eso es todo basta con apuntar el navegador hacia http://123.123.123.101/freepbx/admin y empezar a configurar Asterisk con la interfaz de FreePBX.

Linux debian+asterisk+freepbx

February 7, 2008

Despues de instalado entrar en: etc/amportal.conf y poner la direccion ip del asterisk. Luego desde navegador web poner:

http://ip/html

Clave: admin, admin

Download FreePBX

February 7, 2008

http://freepbx.org/download-freepbx

Aqui se consigue tanto el programa solo para montar sobre asterisk sobre linux o una iso completa con todo de una vez.


Follow

Get every new post delivered to your Inbox.