Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

viernes, 31 de octubre de 2014

Instalando y configurando Asterisk 11 / Fail2ban en Ubuntu Server/Centos

 Ubuntu
sudo apt-get update
sudo apt-get install fail2ban
 
Centos 
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 
yum install fail2ban 

miércoles, 29 de octubre de 2014

Interconectando 2 centrales Asterisk via SIP


Aqui vamos  a Interconectar 2 centrales Asterisk via SIP. La primera central enviara llamadas se  llama cliente esta realizara llamadas  atravez de   una central llamda servidor.

sábado, 18 de octubre de 2014

Instalacion FreePBX 12 & Asterisk 13 en Ubuntu Sever 14.04 LTS

Initial System Setup

When installing the machine, at package selection make sure you pick - at least - OpenSSH Server, and 'LAMP Packages'.  This installs the base packages required.

Configure your root password.

viernes, 17 de octubre de 2014

Configurando Servidores Asterisk detras de NAT


The Asterisk Server is behind NAT
The Asterisk server could be on the LAN (or in a DMZ) with a NAT firewall between it and the Internet. When it communicates with external peers or devices, the network connections have to pass through the local NAT device.

The remote device that is connecting to Asterisk is behind NAT
Suppose that your Asterisk server is connected directly to the Internet. Provided your system is made reasonably secure (e.g. through firewall rules) there can be significant benefits in having it directly connected to the Internet. However, you are unlikely to be able to control the networking environment of the devices that connect to it. If remote users have IP phones that register with your Asterisk server, it is very likely that those phones will be behind a NAT device at the far end.

Como aplicar un parche de Seguridad en Asterisk


Nos movemos al directorio donde estan los archivos de instalacion  de Asterisk

cd/usr/src/asterisk*

Luego descargamos el parche

wget https://issues.asterisk.org/jira/secure/attachment/46449/asterisk-21108_add_status-v2.diff

Luego aplicamos el parche con el siguiente comando (nota debemos tener el comand patch instalado).


#patch -p1 < asterisk-21108_add_status-v2.diff

Final mente recopilamos Asterisk nuevamente

./configure
make install
/etc/initd.d/asterisk restart  o   tambien en centos service asterisk restart

jueves, 9 de octubre de 2014

Asterisk Realizando una llamada telefonica desde Bash scripting



Este es nuestro script call.sh

#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
echo " prueba de llamadas  $(date)"
$1
$2

B=`asterisk -x "originate SIP/$1 extension $2@internal" `


root@asterisk-dominicana:/home# ./call.sh  100 103


Donde 100  y  103 son las extensiones donde queremos llamar.

sábado, 4 de octubre de 2014

Crear Alerta Popup en nuestra pantalla al recibir una llamada entrante Asterisk/Freepbx/Elastix



Buscar en el archivo /etc/asterisk/extensions_additional.conf  y  cargar el siguiente codigo ejemplo.

exten => s,1,System(mysql --user=root --password='123456' asteriskcdrdb -e 'INSERT INTO `pop`(`ID`, `NUMBER`, `FECHA`) VALUES
(NULL,'${CALLERID(num)}',NOW())')

Nota este archivo puede ser sobre escrito por la  la GUI