• Goltratec Blog

  • Configurar tarjeta FXO WILDCARD X100P con Asterisk FREEPBX

28th April 2007

Configurar tarjeta FXO WILDCARD X100P con Asterisk FREEPBX

Breve Explicación:
La tarjetas x101p y x100p, son tarjetas compatibles con el sistema Asterisk, las cuales te permiten implementar de manera muy economica, un sistema de PBX tradiconal para su hogar u oficina que incluye caracteristicas como:

Multiples troncales y extensiones
Identificador de Llamadas
Buzon de Mensajes
Conferencia multiple
Sistemas de respuesta interactiva (IVR)
Grabacion digital de llamadas
Limite de tiempo para llamadas
Estadisticas de llamadas

Los dispositivos FXO permiten manejar una línea telefónica externa, los dispositivos FXO solo “reciben” tono de marcado. Una tarjeta FXO analógica es un modem. Por definición. Modula y demodula datos por banda analógica. Con asterisk las extensiones no estan limitadas al uso de dispositivos FXO.

Instalación:
Instalamos nuestra tarjeta en un bus PCI libre, iniciamos la PC y al cargar la aplicación KUDUZU reconocerá el chip de nuestra tarjeta que por lo general será Motorola, Intel o Ambient. Seleccionamos CONFIGURE, y dejamos que siga cargando el sistema.

Para instalar este hardware solo basta con definir los parametros de inicialización de la tarjeta, tener cargado el módulo de la tarjeta (wcfxo) y configurar el archivo /etc/asterisk/zapata.conf para que Asterisk utilice este dispositivo:

Hacemos un genzaptelconf para que Trixbox lo reconozca.

[root@danetperu.com ~]# genzaptelconf

Esto creará una entrada en nuestro zaptel.conf y quedará algo así:

[root@danetperu.com ~]# cat /etc/zaptel.conf
fxsks=1
loadzone = us
defaultzone=us

Hacemos un Ztcfg para chequear que nuestra señalización sea FXS KS

[root@danetperu.com ~]# ztcfg -vvv
Zaptel Configuration
======================
Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)

1 channels configured.

Ahora Editaremos nuestro Zapata.conf y veremos que quede como en el siguiente ejemplo:

[root@danetperu.com ~]# nano /etc/asterisk/zapata.conf
[trunkgroups]

[channels]

language=es
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=1.0
txgain=1.0
group=0
callgroup=1
pickupgroup=1
immediate=no
busydetect=yes ; Muy Importante para esta tarjeta
busycount=6 ; Muy Importante para esta tarjeta

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

——————
Verificamos que esté bien configurado y sin alarmas, para eso debemos conectar nuestra linea análoga en el puerto LINE de nuestra tarjeta y debemos tener lo siguiente:

[root@danetperu.com ~]# zttool
———— Zapata Telephony Interfaces ——–
Alarms Span
OK Wildcard X100P Board
UNCONFIGURED ZTDUMMY/1 1

******* select ******* OK ********

Para ver que tipo de tarjeta tenemos en nuestro sistema tipeamos lo siguiente:

[root@danetperu.com ~]# dmesg
(….)
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.5 Echo Canceller: KB1
Registered Tormenta2 PCI
ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 9 (level, low) -> IRQ 9
PCI: Setting latency timer of device 0000:00:0e.0 to 64
wcfxo: DAA mode is ‘FCC’
Found a Wildcard FXO: Wildcard X100P

Registered tone zone 0 (United States / North America)

Ahora solo tenemos que entrar en el Freepbx y verificar:

Ajustes -> Troncales -> Zap/g0
Maximo de Canales Simultaneos = 1

posted in Linux | 0 Comments

13th April 2007

Eclipse con plugin para SqlServer

Para poder usar eclipse para conectar a sql server y usarlo como editor tsql necesitamos:

Descargar e instalar eclipse (con instalar el sdk a pelo sobra).

Descargar el plugin http://sourceforge.net/projects/dbedit/

Para hacerlo funcionar:

Installing the DBEdit Eclipse Plug-in For Use With MS SQL 2000… Posted: 07/15/2005

I installed the Eclipse DBEdit Plug-in today in order to try to save some development time. The plug-in looks pretty cool, but took some time to install. I first tried to see if I could use the Macromedia JDBC drivers that were on my box, since I already have CFMX 7 installed. Turns out you get an “Restricted Access” message when trying to use the Macromedia drivers when you’re not using a Macromedia product. This lead me to installing the Microsoft SQL Server JDBC drivers.

Here’s what I had to do to get DBEdit installed. I think many good open source projects go unused because often there’s a complete lack of instructions for getting the project installed and getting it operational. So if you’re using SQL Server 2000 and Eclipse and want to get DBEdit running, you’ve come to the right place!

  1. You’ll need to download Microsoft’s SQL Server 2000 Driver for JDBC.
  2. You’ll want to download is the mssqlserver.tar file. You’re only worried about the specific class files that Java needs, so no need to download the entire installer.
  3. Create a folder to install the JDBC drivers to. I installed them into my “Microsoft SQL Server” folder into a directory called “jdbc”.
  4. You’ll need to extract 3 files which are actually inside the msjdbc.tar file which are inside the mssqlserver.tar file. The files can be found in the “lib” folder of the msjdbc.tar file. The files are:
    • msbase.jar
    • mssqlserver.jar
    • msutil.jar
    NOTE: If using WinRAR, you should be able to open up “mssqlserver.tar” and then open up the “msjdbc.tar” and browse to the “./lib” folder without extracting all the .tar files.
  5. Extract those files into the JDBC folder you created in step 3.
  6. Download the Eclipse DBEdit plug-in.
  7. Unzip the contents of the into your Eclipse folder.
  8. Start Eclipse.
  9. Go to “Window > Open Perspective > Other”.
  10. Select the “DBEdit” perspective and click “Ok”.
  11. You’ll know need to create a Connection.
  12. Go to the “Classpath” tab and click the “Add Archive” button. You’ll need to add each of the files you extracted to your JDBC folder one at a time.
  13. Click back on the “Common” tab.
  14. You should see a select of “JDBC Drivers” if you select the drop down. The driver you want to use is the “com.microsoft.jdbc.sqlserver.SQLServerDriver” driver.
  15. Next enter the “Server URL”. You’ll want to enter:
    jdbc:microsoft:sqlserver://127.0.0.1:1433

    NOTE: If you want to specify database other than the default database for the user you’re logging into, you can specify the database to log into by default, by adding the databaseName argument to the URL string. (Where XXX is the name of the database.)jdbc:microsoft:sqlserver://127.0.0.1:1433;databaseName=XXXX
  16. Now enter the log in creditials for the database.
  17. You’ll probably want to change the name of the Database Bookmark to something more useful. You can change this by editing the “Name” field above the tabs.
  18. Finally, click “Connect” or “Reconnect” button, which ever is there.

If all goes well, you should see your database info.

posted in Programacion | 0 Comments

5th April 2007

proFTPD Ubuntu

Ver documento adjunto

Instalar PROFtpd Ubuntu

posted in Linux | 0 Comments

3rd April 2007

Instalar Apache,PHP,MySql en Ubuntu 6.10

Instalar Apache

apt-get install apache2 php5 libapache2-mod-php5

Archivo de configuracion de Apache:

/etc/apache2/apache2.conf

Directorio Web:

/var/www

Crear test.php para checkear el correcto funcionamiento de apache:

nano /var/www/test.php

Instalar MySQL

apt-get install mysql-server mysql-client php5-mysql

Cambiar la contraseña del root:

mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(’new-password’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;

Instalar phpmyadmin

Añadir en el archivo /etc/apt/sources.list las siguientes lineas:

deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

apt-get update
apt-get install phpmyadmin

Archivo de configuracion:

/etc/phpmyadmin

Añadir la linea (Include /etc/phpmyadmin/apache.conf) en el archivo /etc/apache2/apache2.conf

/etc/init.d/apache2 restart

posted in Linux | 0 Comments

2nd April 2007

VMware Server en Ubuntu Server 6.10

Instalación típica de Ubuntu server, sin LAMP ni servidor DNS

Una vez instalado, habilitamos la cuenta de root

sudo passwd root
su

Habilitamos repositorios y actualizamos

vi /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get install libx11-6 libx11-dev libxtst6 xlibs-dev xinetd wget
apt-get install linux-headers-`uname -r` build-essential

Configuramos la interfaz de red para que use IP estática

vi /etc/network/interfaces

y ponemos

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

/etc/init.d/networking restart

Instalamos el VMware Server

cd /tmp
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.1-29996.tar.gz
(segundo cafe… a menos que hayas sido listo y lo tengas en cd)
tar xvfz VMware-server-1.0.1-29996.tar.gz
cd vmware-server-distrib
./vmware-install.pl
(dejar todo por defecto… como mucho cambiar el directorio de las maquinas virtuales, aunque no es necesario)

Cuando pida la licencia se puede pillar aqui -> http://register.vmware.com/content/registration.html

Cliente para conectar:
Windows:
http://download3.vmware.com/software/vmserver/VMware-server-win32-client-1.0.1-29996.zip
Linux:
http://download3.vmware.com/software/vmserver/VMware-server-linux-client-1.0.1-29996.zip

Para poder administrarlo via web (opcional)

rm -f /bin/sh
ln -s /bin/bash /bin/sh
cd /tmp
wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.1-29996.tar.gz
tar xvfz VMware-mui-1.0.1-29996.tar.gz
cd vmware-mui-distrib
./vmware-install.pl

desde cualquier sitio http://xxx.xxx.xxx.xxx:8222

posted in Linux | 0 Comments