Instalacion de Asterisk 1.6.0.X en Ubuntu 8.04 Desktop

Actualizado 11 Septiembre 2009

Hoy decidí instalar la ultima versión de Asterisk (1.6.0.1) en mi portátil. He descargado Ubuntu 8.04 Desktop, la he instalado, actualizado y listo para empezar. Una vez que estamos en nuestro desktop Linux abrimos una ventana del terminal y averiguamos si en la carpeta /usr/src tenemos los headers del kernel Linux. Si no lo tenemos hay que descargarlos. En mi caso ya estaban presentes

Empecemos con la instalación de dependencias , programas que podemos integrar en asterisk y algunas utilidades.

sudo apt-get install bison  festival festival-dev libssl-dev zlib1g-dev libnewt-dev make libtool

sudo apt-get install libvorbis-dev automake mysql-server mysql-client mysql-admin libmysqlclient15-dev

sudo apt-get install php5 php5-cli php5-common php5-dev curl libgnutls26 libgnutls-dev libtiff4-dev

sudo apt-get install libasound2-dev libportaudio-dev libportaudio2 jackd

sudo apt-get install unixodbc unixodbc-bin unixodbc-dev speex libspeex-dev

sudo apt-get install libbluetooth-dev

sudo apt-get install g++

Ya que mi conexión de Internet no es de las más rápidas me tardé más de una hora solo para descargar y instalar estos paquetes. Luego vamos a compilar algunas fuentes

cd /usr/src

sudo wget http://ufpr.dl.sourceforge.net/sourceforge/mad/libmad-0.15.1b.tar.gz
sudo tar -xf libmad-0.15.1b.tar.gz
cd libmad-0.15.1b/
sudo ./configure --prefix=/usr
sudo make
sudo make install
sudo ldconfig -v

Libmad se necesita si queremos usar SOX para manipular archivo mp3. Seguimos con lame

cd /usr/src

sudo wget http://ufpr.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
sudo tar -xf lame-398-2.tar.gz
cd lame-398-2
sudo ./configure --prefix=/usr
sudo make
sudo make install
sudo ldconfig -v

cd /usr/src

Ahora SOX

sudo wget http://ufpr.dl.sourceforge.net/sourceforge/sox/sox-14.1.0.tar.gz
sudo tar -xf sox-14.1.0.tar.gz
cd sox-14.1.0/
sudo ./configure --prefix=/usr
sudo make
sudo make install

cd /usr/src

Ahora spandsp para que asterisk pueda recibir y enviar fax. No descarguen la versión 0.0.6pre1 o la versión 0.0.6pre2 porque al momento de compilar asterisk me salía un error propio en la aplicación fax. Con la versión 0.0.5pre4 todo ha funcionado perfectamente.

sudo wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.5.tgz
sudo tar -xf spandsp-0.0.5.tgz 
cd spandsp-0.0.5/
sudo ./configure --prefix=/usr
sudo make
sudo make install
sudo ldconfig -v

cd /usr/src

Ahora iksemel para el soporte de GoogleTalk en Asterisk

sudo wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
sudo tar -xf iksemel-1.4.tar.gz
cd iksemel-1.4/

sudo ./configure --prefix=/usr

sudo make
sudo make check
sudo make install
sudo ldconfig -v

cd /usr/src

Ahora iniciamos con asterisk. Primero instalamos Dahdi (antes llamado Zaptel)

sudo wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.2....
sudo tar -xf dahdi-linux-2.2.0.2.tar.gz
cd dahdi-linux-2.2.0.2
sudo make
sudo make install

cd /usr/src

Las utilidades de Dahdi

sudo wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-2.2....
sudo tar -xf dahdi-tools-2.2.0.tar.gz
cd dahdi-tools-2.2.0/
sudo ./configure
sudo make
sudo make install
sudo make config

cd /usr/src

Asterisk. En make menuselect averiguamos que todos los componentes estén seleccionados. Yo he instalado también las voces (sonidos) en francés y español (solo en el formato GSM)

sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.0-curr...
sudo tar -xf asterisk-1.6.0-current.tar.gz
cd asterisk-1.6.0.15/
sudo ./configure
sudo make menuselect
sudo make
sudo make install
sudo make samples
sudo make config

cd /usr/src

Ahora Asterisk addons. Mi portátil venia con Bluetooth y de hecho en menuselect he visto que el module chan_mobile estaba seleccionado. Chevere!!!!

sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6...
sudo tar -xf asterisk-addons-1.6.0-current.tar.gz
cd asterisk-addons-1.6.0.3
sudo ./configure
sudo make menuselect
sudo make
sudo make install
sudo make samples

Para empezar vamos a configurar dos cosas. La base de datos y el modulo chan_mobile. Antes de arrancar asterisk creamos la base de datos para registrar las llamadas. La contraseña para el usuario root es la que escogimos cuando instalamos mysql-server-

mysqladmin create cdrdb -u root -p

mysql -u root -p

mysql> use cdrdb
Database changed

mysql> CREATE TABLE cdr (
    calldate datetime NOT NULL default '0000-00-00 00:00:00',
    clid varchar(80) NOT NULL default '',
    src varchar(80) NOT NULL default '',
    dst varchar(80) NOT NULL default '',
    dcontext varchar(80) NOT NULL default '',
    channel varchar(80) NOT NULL default '',
    dstchannel varchar(80) NOT NULL default '',
    lastapp varchar(80) NOT NULL default '',
    lastdata varchar(80) NOT NULL default '',
    duration int(11) NOT NULL default '0',
    billsec int(11) NOT NULL default '0',
    disposition varchar(45) NOT NULL default '',
    amaflags int(11) NOT NULL default '0',
    accountcode varchar(20) NOT NULL default '',
    uniqueid varchar(32) NOT NULL default '',
    userfield varchar(255) NOT NULL default ''
    );
Query OK, 0 rows affected (0.08 sec)

mysql> GRANT ALL PRIVILEGES ON cdrdb.* TO 'root'@'localhost' IDENTIFIED BY 'secret';
Query OK, 0 rows affected (0.08 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

Ahora modificamos el archivo de configuración de asterisk para configurar la base de datos

cd /etc/asterisk

sudo nano cdr_mysql.conf

añadimos o modificamos las siguientes líneas

[global]
hostname=localhost        
dbname=cdrdb       
table=cdr
password=secret
user=root          
port=3306
sock=/var/run/mysqld/mysqld.sock

Para conocer la dirección física del adaptador Bluetooth  tenemos que utilizar el siguiente comando:

hcitool dev

Devices:
    hci0    00:10:C6:85:E2:61

Luego vamos a poner esta dirección en el archivo de configuración de asterisk

cd /etc/asterisk

sudo nano mobile.conf

[adapter]
id=blue
address=00:10:C6:85:E2:61

Activamos el Bluetooth del celular y lo configuramos para que sea visible a los demás dispositivos.

En el desktop de Ubuntu seleccionamos con el boton derecho del raton el icono del Bluetooth y escogemos: configurar un dispositivo nuevo, y seguimos los pasos para asociar el celular a nuestro computador.

Luego arrancamos Asterisk y entramos en la consola

sudo /etc/init.d/asterisk start

sudo asterisk -rvvvvvvvvvvvvvvvvv

Si no logran conectarse a la consola es posible que haya en error tal que no deja arrancar asterisk. En mi caso he tenido que deshabilitar el modulo chan_h323.

para ver los dispostivos bluetooth disponibles usamos el comando

CLI> mobile search
Address           Name                           Usable Type    Port
00:21:AA:00:32:5B And6300i                       Yes    Phone   13

Anotamos los datos y salimos de la consola

CLI> quit

Volvemos al archivo de configuración del chan_mobile

sudo nano /mobile.conf

y añadimos las siguientes líneas

[And6300i]
address=00:21:AA:00:32:5B      
port=13                        
context=incoming-mobile        
adapter=blue                   
group=1                        
;nocallsetup=yes

guardamos el archivo y reiniciamos Asterisk

sudo /etc/init.d/asterisk stop
sudo  /etc/init.d/asterisk start

sudo asterisk -rvvvvvvvvvvvvvvvvvvv

en nuestra consola deberiamos ver el celular conectado a la centralita

CLI> mobile show devices
ID              Address           Group Adapter         Connected State SMS
And6300i        00:21:AA:00:32:5B 1     blue            Yes       Free  No

Listo.... para hoy es todo.

Un saludo

Vota el Articulo: 

Sin votos (todavía)
Evalúa la calidad del articulo

30 comentarios

Unable to connect to remote asterisk

Hola
he seguido todos tus pasos, Y obviando algúna omisión en el código, todo ha ido bien. Pero...
cuando intento arrancar asterisk , me devuelve Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

Tienes idea de que es lo que puede haber ocurrido??

gracias

does /var/run/asterisk.ctl exist?

Perdona si te contesto solamente ahora.

De hecho tengo que corregir la guía. Hay un conflicto de puertos para el protocolo h323 versión open y propietaria. Lo que tienes que hacer es modificar el archivo h323.conf en /etc/asterisk

Bajo la etiqueta [general] tienes que cambiar port =1720 en port = 1730

Guardar los cambios y luego volver a arrancar asterisk

Espero que asi te funcione.

Ciao

PROBLEMA AL INSTALAR DEPENDENCIAS

Hola amigo mira estab siguiendo tu manual y tube unos problemas que son los siguientes:

1.- al instalar:
sudo apt-get install php5 php5-cli php5-common php5-dev curl libgnutls13 libgnutls-dev libtiff4-dev

me salio error con la dependencia libgnutls13

NO LO PUDE INSTALAR
El resto si Normal eliminando esa dependencia de la siguiente manera
sudo apt-get install php5 php5-cli php5-common php5-dev curl libgnutls-dev libtiff4-de

2.- YA NO AY dahdi-linux-2.0.0.tar.gz
dahdi-tools-2.0.0.tar.gz

LO QUE AY ES: dahdi-linux-2.1.0.4.tar.gz
dahdi-tools-2.1.0.4.tar.gz

3.- Cuando instalaba el dahdi-linux-2.1.0.4.tar.gz me salio el siguiente error:

------------------------------------------------------------------------------------------------------------------------
root@Ubuntu:/usr/src/dahdi-linux-2.1.0.4# make
echo "You do not appear to have the sources for the 2.6.27-7-server kernel installed."
You do not appear to have the sources for the 2.6.27-7-server kernel installed.
exit 1
make: *** [modules] Error 1
------------------------------------------------------------------------------------------------------------------------

Inmediatamente instale:

sudo apt-get install linux-headers-2.6.27-7-generic linux-image-2.6.27-7-generic linux-source-2.6.27

y aun asi me sale ese error y estoy atorado en este punto tu crees que me puedas ayudar por favor

Tengo Ubuntu 8.10 Server

Atentamente,

Victor Candela
Msn: candelasistemas@hotmail.com

Re: problemas a instalar dependencias

Hola,

A ver si puedo ayudarte.

Para la libreria lignutls13 el error se debe a la actualización del paquete. Intenta con:

sudo apt-get install libgnutls26

esta librería es necesaria para configurar asterisk como cliente GoogleTalk

Para la fuentes del kernel, ubuntu las instala junto a otros paquetes necesarios para la compilación de las fuentes de asterisk con el siguiente comando:

sudo apt-get build-essentials.

Una vez terminado con la instalación averigua la versión del kernel que esté funcionando:

sudo uname -a

aparecerá la versión del kernel

mira si ese numero corresponde a lo que encuentras en /usr/src/kernels

si es así la instalación de dahdi debería funcionar, sino cuéntame que miramos como solucionarlo.

Si el problema se resuelve, por favor deja un mesaje aqui para que pueda servir de guia a otros usuarios.

Un saludo

Sigue el mismo Error

Hola amigo, mira siguo con el problema de dahdi, volvi a instalar Ubuntu 8.10 Server y despues de instalar lo primero que hize fue lo siguiente:

apt-get update

luego

apt-get upgrade

luego
uname -a
para ver la version del kernel y actualizar la cabezera con el siguiente comando

sudo apt-get install linux-headers-2.6.27-7-generic linux-image-2.6.27-7-generic linux-source-2.6.27

y comenze a instalar segun tu Manual y me salio un error al instalar la dependencia:

sudo apt-get install linux-kernel-devel

root@Ubuntu:/usr/src/dahdi-linux-2.1.0.4# sudo apt-get install linux-kernel-devel
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
E: No se pudo encontrar el paquete linux-kernel-devel
root@Ubuntu:/usr/src/dahdi-linux-2.1.0.4#

Luego de ellos segui instalando y cuando llego al punto de instalar dahdi, sigo con el mismo error:

root@Ubuntu:/usr/src/dahdi-linux-2.1.0.4# sudo make
echo "You do not appear to have the sources for the 2.6.27-7-server kernel installed."
You do not appear to have the sources for the 2.6.27-7-server kernel installed.
exit 1
make: *** [modules] Error 1
root@Ubuntu:/usr/src/dahdi-linux-2.1.0.4#

Amigo ayudame por favor no se que pasa, o es que tengo q usar, Debian, quizas otra version de Ubuntu, quizas un Ubuntu Desktop 8.04 en ves del 8.10 que tengo quizas sea por la version del kernel.

Ahora una Pregunta muy IMPORTANTE como lo que quiero es solo usar trunks SIP y no voy a usar ningun tipo de tarjeta, me es necesario instalar DAHDI por que si no lo es entonces lo omito.

Atentamente,

Victor Candela
Msn: candelasistemas@hotmail.com

Re: kernel

Instala:

apt-get install build-essentials

te instala unos cuantos paquetes de compilación entre los cuales las fuentes del kernel.

o si no intenta

una vez que has hecho esto, controla que en la carpeta /usr/src hya una carpeta kernels

si la hay deberías poder instalar dahdi.

dahdi se necesitas para las tarjetas y para algunas aplicaciones de asterisk. Si no lo instalas no podras usar las conferencias y conectar dos asterisk entre ellos con el protocolo IAX.

Yo lo he usado en un VPS por mucho tiempo sin dahdi y las llamadas con trunks SIP funcionaban muy bien.
He usado la distribución centos 5.2

En cuanto pueda actualizaré este articulo

Un saludo

Chao

comandos SIP en CLI

buenas noches

queria saber si tenia alguna solución a mi problema. He tratado de ejecutar desde la consola de asterisk:
ubuntu*CLI>sip
y no encuentra ningun comando SIP. ya revise el chan_sip.so y está actrivado en el menuselect. Alguna idea de que pueda ser?
Muchas gracias

Re: Comandos SIp en CLI

has intentado con:

help sip

si no te aparece nada significa que hay algún problema con el modulo chan_sip

Revisa los registros del programa en /var/log/asterisk

y mira si sale algún error.

Cuéntame

Comandos SIP.

amigo resulta que yo tampoco tengo comandos sip...el modulo chan_sip no aparece en usr/lib/asterisk/modules...

que puedo hacer ?? solo aparecen los sgtes modulos

app_addons_sql_mysql.so
app_saycountpl.so
cdr_addons_mysql.so
chan_ooh323.so
format_mp3.so
res_config_mysql.so

ayuda por favor urgente ! no se como solucionarlo
de antemano gracias.

Re: Comandos SIP

En tu caso parece que no hayas terminajo la compilación y instalación de Asterisk. Lo que tu tienes instalado es solamente el asterisk-addons. Revisa bien si seguiste toda la guía o si se te olvidó algún pasaje.
Chao

asterisk gui

hola, he instalado asterisk 1.6 en linux mint y he podido llamar de un cliente a otro. solo instale asterisk 1.6... bueno el problema es:

no consigo entrar al GUI por web. que dependencias hay que instalar? mysql? php?? se conecta pero me dice que no hay web. he seguido los pasos del tuto.

Re: Asterisk GUI

Postea la configuración del manager.conf y la direccion web que pones para entrar en la pagina de la GUI.

No necesitas ni mysql ni php
Chao

manager.conf tal

manager.conf tal cual:

displaysystemname = yes
enabled=yes
webenabled= yes
port=5038
httptimeout= 60
bindaddr=0.0.0.0
[admin]
admin=password
read=system,call,log,verbose,command,agent,config
write=system,call,log,verbose,command,agent,config
EOF

URL: ( he probado otras) esta es la ke me da cuando hago
make checkconfig ( todo OK en el resultado).

http://localhost:8080/asterisk/static/config/index.html

MSG del navegador:

Not found
Nothing to see here, Move along
----
asterisk server

Aveces da otro de pagina no encontrada.

gracias.

Asterisk Gui

me da ok al hacer make checkconfig
He puesto la url.
Este es el msg que sale al entrar

Not Found

The request URL was not found on this server
----------------------------------------------------------------------
Asterisk Server

Re: Asterisk GUI

La verdad la guía de la GUI la escribí para CentOS. No se si puede ser problemas de permisos o algo por el estilo.

Cuando llego a este punto la única solución es que pueda entrar vía SSH a tu computador y revisar la configuración.

Tu http.conf como lo tienes configurado?
Chao

es curioso pk si entro a la

es curioso pk si entro a la carpeta var/lib/asterisk/static-http/index.html

y ejecuto el html se me abre pero creo que no es la manera correcta ademas he probado de identificarme y no va.

la verdad es que quiero poder gestionar el servidor desde el propio servidor no necesito conectarme desde ningun cliente. pero no se si es correcto entrar a la carpeta y ejecutar el index.html. ( pk estar esta )

bueno probare de empezar de 0 desde otra distro.

gracias

funciona?

disculpame q te moleste. queria saber si en verdad esta guia funciona y si hay q hacer modificaciones con asterisk instalado en centos.
muchas gracias

Error al darle sudo make al dadhi

Hola, aprecio la ayuda que esta pagina me ha brindado. Estuve tratando de instalar pero me sale un error al hacerle el sudo make luego de desargar el dadhi-linux.2.3.0. el error que me sale es el siguiente.

root@roger-desktop:/usr/src/dahdi-linux-2.3.0# sudo make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: se ingresa al directorio `/usr/src/dahdi-linux-2.3.0/drivers/dahdi/firmware'
make[1]: se sale del directorio `/usr/src/dahdi-linux-2.3.0/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.28-17-generic kernel installed.
make: *** [modules] Error 1

Podrias ayudarme con esta parte , ya que entiendo que es importante por que es necesario para hacer conferencias.

Muchas gracias desde ya por la ayuda.

Saludos,

Roger

Error en asterisk-addons

Hola

Durante la instalación no he tenido ningún problema hasta que he llegado al asterisk-addons.

Previamente he instalado:

dahdi-linux-2.6.0-rc1

dahdi-tools-2.6.0-rc1  

libpri-1.4.12

asterisk-1.8.7.1 (en menuselect no he cambiado nado y lo he guardado por defecto).

asterisk-addons-1.6.0.1(en menuselect no he cambiado nado y lo he guardado por defecto).

     #./configure

      #make

root@debian:/usr/src/asterisk-addons-1.6.0.1# make
CC="gcc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: se ingresa al directorio `/usr/src/asterisk-addons-1.6.0.1/menuselect'
make[1]: `makeopts' está actualizado.
make[1]: se sale del directorio `/usr/src/asterisk-addons-1.6.0.1/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts 
Generating embedded module rules ...
make[1]: se ingresa al directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se sale del directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se ingresa al directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se sale del directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se ingresa al directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se sale del directorio `/usr/src/asterisk-addons-1.6.0.1'
make[1]: se ingresa al directorio `/usr/src/asterisk-addons-1.6.0.1/channels'
   [CC] chan_ooh323.c -> chan_ooh323.o
In file included from chan_ooh323.c:18:
chan_ooh323.h:53:26: error: asterisk/rtp.h: No existe el fichero o el directorio
chan_ooh323.c:56: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:56: warning: its scope is only this definition or declaration, which is probably not what you want
chan_ooh323.c:57: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:59: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:71: warning: initialization from incompatible pointer type
chan_ooh323.c:83: error: ‘ast_rtp_bridge’ undeclared here (not in a function)
chan_ooh323.c:86: error: variable ‘ooh323_rtp’ has initializer but incomplete type
chan_ooh323.c:87: error: unknown field ‘type’ specified in initializer
chan_ooh323.c:87: warning: excess elements in struct initializer
chan_ooh323.c:87: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:88: error: unknown field ‘get_rtp_info’ specified in initializer
chan_ooh323.c:88: warning: excess elements in struct initializer
chan_ooh323.c:88: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:89: error: unknown field ‘get_vrtp_info’ specified in initializer
chan_ooh323.c:89: warning: excess elements in struct initializer
chan_ooh323.c:89: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:90: error: unknown field ‘set_rtp_peer’ specified in initializer
chan_ooh323.c:91: warning: excess elements in struct initializer
chan_ooh323.c:91: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c: In function ‘ooh323_new’:
chan_ooh323.c:258: warning: passing argument 8 of ‘__ast_channel_alloc’ makes pointer from integer without a cast
/usr/include/asterisk/channel.h:1112: note: expected ‘const char *’ but argument is of type ‘int’
chan_ooh323.c:258: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1112: note: expected ‘int’ but argument is of type ‘char *’
chan_ooh323.c:288: error: ‘DSP_FEATURE_DTMF_DETECT’ undeclared (first use in this function)
chan_ooh323.c:288: error: (Each undeclared identifier is reported only once
chan_ooh323.c:288: error: for each function it appears in.)
chan_ooh323.c:306: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:310: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_alloc’:
chan_ooh323.c:410: warning: assignment makes pointer from integer without a cast
chan_ooh323.c: In function ‘ooh323_call’:
chan_ooh323.c:799: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:801: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:804: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:806: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:809: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:811: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_write’:
chan_ooh323.c:977: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c: In function ‘ooh323_onReceivedDigit’:
chan_ooh323.c:1233: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_ooh323.c:1237: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_ooh323.c: In function ‘build_user’:
chan_ooh323.c:1676: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:1684: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: In function ‘build_peer’:
chan_ooh323.c:1801: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:1809: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: In function ‘reload_config’:
chan_ooh323.c:2080: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:2087: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:723: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: At top level:
chan_ooh323.c:3032: error: return type is an incomplete type
chan_ooh323.c:3031: error: conflicting types for ‘ooh323_get_rtp_peer’
chan_ooh323.c:56: note: previous declaration of ‘ooh323_get_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_rtp_peer’:
chan_ooh323.c:3034: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:3034: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:3034: error: storage size of ‘res’ isn’t known
chan_ooh323.c:3037: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:3037: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:3042: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:3044: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:3046: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:3050: error: return type is an incomplete type
chan_ooh323.c:3049: error: conflicting types for ‘ooh323_get_vrtp_peer’
chan_ooh323.c:57: note: previous declaration of ‘ooh323_get_vrtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_vrtp_peer’:
chan_ooh323.c:3052: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:3052: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:3052: error: storage size of ‘res’ isn’t known
chan_ooh323.c:3055: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:3055: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:3060: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:3062: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:3064: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:3108: error: conflicting types for ‘ooh323_set_rtp_peer’
chan_ooh323.c:58: note: previous declaration of ‘ooh323_set_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_rtp_read’:
chan_ooh323.c:3279: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3282: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3285: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3288: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3302: error: invalid operands to binary != (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c:3305: error: incompatible types when assigning to type ‘format_t’ from type ‘union ast_frame_subclass’
make[1]: *** [chan_ooh323.o] Error 1
make[1]: se sale del directorio `/usr/src/asterisk-addons-1.6.0.1/channels'
make: *** [channels] Error 2
root@debian:/usr/src/asterisk-addons-1.6.0.1#

    

Re: Error en asterisk-addons

Hola,

desde la versión 1.8 el asterisk-addons está incluido en el paquete principal de Asterisk

Cuando le das make menuselect, fíjate que el primer menú es justo el asterisk-addons

Saludos

Suscribirse a Comentarios de "Instalacion de Asterisk 1.6.0.X en Ubuntu 8.04 Desktop" Suscribirse a VozToVoice - Todos los comentarios