Activacion de codec opus

1,176 views
Skip to first unread message

Javier Camilo Forero Rodríguez

unread,
Oct 21, 2015, 11:58:06 PM10/21/15
to aster...@googlegroups.com
Buenos dias
Quiero activar el codec opus en elastix, buscando y despues de algunos ensayos, creo que pude instalar el codec, despues de una larga travesia, ya que no es tan sencilla la instalacion, sin embargo cuando ejecuto un core show codecs obtengo el siguiente resultado, segun observo vp8 y opus ya se encuentran en mi elastix, me corrigen si me equivoco por favor

100025 audio slin48 (16 bit Signed Linear PCM (48kHz))
100026 audio slin96 (16 bit Signed Linear PCM (96kHz))
100027 audio slin192 (16 bit Signed Linear PCM (192kHz))
100030 audio opus (Opus Codec)
200006 video vp8 (VP8 Video)
100018 audio silk8 (SILK Custom Format 8khz)
100018 audio silk12 (SILK Custom Format 12khz)
100018 audio silk16 (SILK Custom Format 16khz)
100018 audio silk24 (SILK Custom Format 24khz)
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
localhost*CLI>

Ahora, instale en mi computador un par de softphones, blink y jitsi, tengo activado en los encoders opus y vp8, pero cuando intento hacer la llamada con opus, obtengo el siguiente mensaje

localhost*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
[2015-10-21 02:49:13] WARNING[2824][C-00000003]: chan_sip.c:11105 process_sdp_a_audio: Got Opus useinbandfec=1
[2015-10-21 02:49:13] NOTICE[2824][C-00000003]: chan_sip.c:10482 process_sdp: No compatible codecs, not accepting this offer!
localhost*CLI>

Como si no encontrara el codec, debo hacer algo mas en el elastix para activar opus?

Agradezco las amables opiniones
Javier Forero

--
Javier Camilo Forero Rodriguez
Information Technologies Senior
Mobile   3133007356
Mobile   3182855399
Skype    javier_n26
Msn      javie...@hotmail.com
Linux user number #494014

Rodrigo Ramírez Norambuena

unread,
Oct 24, 2015, 11:59:29 AM10/24/15
to aster...@googlegroups.com
On Wed, 21 Oct 2015 22:58:01 -0500
Javier Camilo Forero Rodríguez <javie...@gmail.com> wrote:

> localhost*CLI>
> == Using SIP RTP TOS bits 184
> == Using SIP RTP CoS mark 5
> [2015-10-21 02:49:13] WARNING[2824][C-00000003]: chan_sip.c:11105
> process_sdp_a_audio: Got Opus useinbandfec=1
> [2015-10-21 02:49:13] NOTICE[2824][C-00000003]: chan_sip.c:10482
> process_sdp: No compatible codecs, not accepting this offer!
> localhost*CLI>
>
> Como si no encontrara el codec, debo hacer algo mas en el elastix para
> activar opus?

No indicas lo que hiciste para agregar el codec. Sobre Elastix entiendo
que acá se hablan temas de solo Asterisk ;)

Lo que si es interesante saber
* Los pasos que hiciste
* Lo que dice el 'core show translation'
* Versión de Asterisk
* La configuración que tienes

Creo que con algo de esa información alguien de aquí podría darte una
mano, si no es buscar a ciegas.

PD: Agrega un verbose mas alto a la CLI.

Saludos,
--
Rodrigo Ramírez Norambuena
www.rodrigoramirez.com

Javier Camilo Forero Rodríguez

unread,
Oct 24, 2015, 4:42:40 PM10/24/15
to aster...@googlegroups.com
Hola Rodri

el procedimiento q seguí fue el siguiente

amportal stop
# install epel repo
yum install iksemel-devel srtp-devel libsrtp-devel spandsp-devel git
yum -y update
yum -y groupinstall core && yum install -y tmux patch screen gcc gcc-c++ lynx bison mysql-devel sqlite-devel sqlite libsqlite3x-devel php php-mysql php-pear php-mbstring tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel php-process crontabs cronie cronie-anacron wget odbc-devel unixODBC unixODBC-devel mysql-connector-odbc libtool libtool-ltdl libtool-ltdl-devel libcurl-devel libogg-devel libvorbis-devel speex-devel freetds-devel net-snmp-devel corosynclib-devel popt-devel lua-devel portaudio-devel libresample-devel neon-devel libical-devel openldap-devel gmime22-devel sqlite2-devel libedit-devel libuuid-devel openssl-devel doxygen kernel-headers-`uname -r` kernel-devel-`uname -r` glibc-headers
cp -R /etc/asterisk /etc/asterisk-backup
yum remove asterisk11*
# yum install libsrtp-devel
cd /usr/src
wget --continue http://srtp.sourceforge.net/srtp-1.4.2.tgz
tar zxvf srtp-1.4.2.tgz
cd srtp
./configure CFLAGS=-fPIC
make
make install
# download SpanDSP (need to support faxing)
cd /usr/src
wget --continue http://soft-switch.org/downloads/spandsp/spandsp-0.0.6pre21.tgz
tar -zxf spandsp-0.0.6pre21.tgz
cd spandsp-0.0.6
make clean
./configure
make all
make install
# download OPUS
cd /usr/src
git clone https://github.com/andrius/asterisk-opus.git
git clone git://git.opus-codec.org/opus.git
cd opus
./autogen.sh
# ./configure --prefix=/usr
./configure --enable-static --enable-shared
make
make install
ldconfig
# download asterisk PBX
cd /usr/src
wget --continue http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.13.0.tar.gz
tar -zxf asterisk-11.13.0.tar.gz
cd asterisk-11.13.0
contrib/scripts/get_mp3_source.sh
patch -p1 -u < ../asterisk-opus/asterisk-11.13.0-opus+vp8.patch
./bootstrap.sh
./configure --libdir=/usr/lib64 --with-crypto --with-ssl --with-srtp
# make menuselect
make all
make install
# make samples
make config
make progdocs
make install-logrotate
# install asterisk utilities
cp -R ./contrib/scripts/astcli /usr/local/bin/
mkdir -p /var/punchblock/record
chown -R asterisk:asterisk /var/punchblock
chown -R asterisk:asterisk /var/run/asterisk
chown -R asterisk:asterisk /etc/asterisk
chown -R asterisk:asterisk /var/{lib,log,spool}/asterisk
chown -R asterisk:asterisk /usr/lib/asterisk


La version de elastix es 11.13.0

El core show translation

Connected to Asterisk 11.17.1 currently running on localhost (pid = 2601)
localhost*CLI> core show translation
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

            gsm  ulaw  alaw  g726 adpcm  slin lpc10 speex speex16  ilbc g726aal2  g722 slin16 testlaw speex32 slin12 slin24 slin32 slin44 slin48 slin96 slin192  opus
      gsm     - 15000 15000 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
     ulaw 15000     -  9150 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
     alaw 15000  9150     - 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
     g726 15000 15000 15000     - 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
    adpcm 15000 15000 15000 15000     -  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
     slin  6000  6000  6000  6000  6000     -  6000  6000   14000  6000     6000  8250   8000    6000   14000   8000   8000   8000   8000   8000   8000    8000  8250
    lpc10 15000 15000 15000 15000 15000  9000     - 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
    speex 15000 15000 15000 15000 15000  9000 15000     -   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
  speex16 23500 23500 23500 23500 23500 17500 23500 23500       - 23500    23500 15000   9000   23500   23000  17500  17000  17000  17000  17000  17000   17000 17250
     ilbc 15000 15000 15000 15000 15000  9000 15000 15000   23000     -    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
 g726aal2 15000 15000 15000 15000 15000  9000 15000 15000   23000 15000        - 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000 17250
     g722 15600 15600 15600 15600 15600  9600 15600 15600   15000 15600    15600     -   9000   15600   23000  17500  17000  17000  17000  17000  17000   17000 17250
   slin16 14500 14500 14500 14500 14500  8500 14500 14500    6000 14500    14500  6000      -   14500   14000   8500   8000   8000   8000   8000   8000    8000  8250
  testlaw 15000 15000 15000 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000       -   23000  17000  17000  17000  17000  17000  17000   17000 17250
  speex32 23500 23500 23500 23500 23500 17500 23500 23500   23500 23500    23500 23500  17500   23500       -  17500  17500   9000  17000  17000  17000   17000 23000
   slin12 14500 14500 14500 14500 14500  8500 14500 14500   14000 14500    14500 14000   8000   14500   14000      -   8000   8000   8000   8000   8000    8000  8250
   slin24 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14000   8500      -   8000   8000   8000   8000    8000  8250
   slin32 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500    6000   8500   8500      -   8000   8000   8000    8000 14000
   slin44 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500      -   8000   8000    8000 14000
   slin48 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500      -   8000    8000  6000
   slin96 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500      -    8000 14500
  slin192 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500   8500       - 14500
     opus 15600 15600 15600 15600 15600  9600 15600 15600   15600 15600    15600 15600   9600   15600   23500   9600   9600  17500  17500   9000  17000   17000     -
localhost*CLI>



Algo mas que sugieras, con mucho gusto y gracias por tu respuesta




--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)
Normas de la lista Asterisk-ES: http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
---
Has recibido este mensaje porque estás suscrito al grupo "asterisk-es" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a asterisk-es...@googlegroups.com.
Para publicar una entrada en este grupo, envía un correo electrónico a aster...@googlegroups.com.
Visita este grupo en http://groups.google.com/group/asterisk-es.
Para obtener más opciones, visita https://groups.google.com/d/optout.

Ramses

unread,
Oct 24, 2015, 4:54:44 PM10/24/15
to aster...@googlegroups.com
>git.opus-codec.org/opus.git cd opus ./autogen.sh # ./configure
Uuuhhhmmmm, interesante...

Instalas Asterisk 11.13 y te conectas a Asterisk 11.17.1...

¿Y te funciona con otros codecs?


Saludos,

Ramses

Fernando Villares

unread,
Oct 24, 2015, 4:57:48 PM10/24/15
to aster...@googlegroups.com

Tipico chiquero q queda al instalar a lo loco librerias y paquetes sin tener idea de fondo. O de donde se guardan los .so  me suena de una a q compilo en un x64 y no cambio el src a usr lib64

Javier Camilo Forero Rodríguez

unread,
Oct 24, 2015, 7:35:40 PM10/24/15
to aster...@googlegroups.com
Excelente punto Fernando y Ramses, procedere a formatear, ya que es probable que con el upgrade la version de asterisk se me actualizó, vuelvo a empezar y les cuento

Gracias por sus observaciones

Saludos

Para publicar en este grupo, envía un correo electrónico a aster...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.

Ricardo

unread,
Oct 25, 2015, 7:31:34 AM10/25/15
to aster...@googlegroups.com

Hola, codec Opus en Elastix 2.5 ya viene instalado, creo que hace falta instalar de nuevo.

Saludos

Fernando Villares

unread,
Oct 25, 2015, 10:19:30 AM10/25/15
to aster...@googlegroups.com

En elsastix ya viene precompilado un .so con el vp8 y opus no se activa o desactiva...sibesta en el usr lib asterisk modules correcto ya esta....aca me la juego hasta china q hay un desmadre entre compilacion y arquitectura de 64 bits...

Elio Rojano

unread,
Oct 27, 2015, 4:08:12 AM10/27/15
to aster...@googlegroups.com
Opus viene de serie en Asterisk 12 y Asterisk 13 en modo "passthrough".

Reply all
Reply to author
Forward
0 new messages