Comando SIP no existe en Asterisk 11

4,003 views
Skip to first unread message

Pive

unread,
Dec 10, 2012, 9:26:14 AM12/10/12
to aster...@googlegroups.com
Hola todos.

Me he puesto a instalar Asterisk-11.0.2 y, en principio, todo va bien pero luego al conectarme al CLI no existe el comando SIP (sip show peers, por ejemplo) o IAX. He desinstalado y vuelto a instalar (make uninstall, make clean) y no hay manera. Por lo visto el chan_sip.so no llega a instalarse (con locate no lo encuentro).

¿Puede alguien darme una luz de qué puede estar pasando?

Muchas gracias.

Fernando Villares

unread,
Dec 10, 2012, 10:44:14 AM12/10/12
to aster...@googlegroups.com
lo estas compilando mal o no has creado los .conf con make samples al principio...sin mas datos de logs es imposible darte mas info




--
--
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com
 
 
 

Pive

unread,
Dec 10, 2012, 11:32:19 AM12/10/12
to aster...@googlegroups.com
Gracias Fernando.
 
Los .conf sí se han creado y el make samples es para hacer los .conf de ejemplo, cosa que no es necesaria y además, se hace al final, no al principio de la compilación.
 
Mi problema es que Asterisk compila bien (no da errores) y se ejecuta, puedo entrar al CLI y todo, pero no existen los comandos sip o iax por ejemplo.

Fernando Villares

unread,
Dec 10, 2012, 11:43:49 AM12/10/12
to aster...@googlegroups.com
nop claramente no te compila bien o no carga bien porque a mi si me lo muestra correctamente en una central recien compilada para ver si no era un bug de esta revision...


[root@voipinx asterisk-11.0.2]# asterisk -r
Asterisk 11.0.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <mark...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.0.2 currently running on voipinx (pid = 23335)
voipinx*CLI> sip show pe
peers  peer
voipinx*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time
xxx.xxx.xxx.xxx:5060                    N     xxxxxxx            105 Registered           Mon, 10 Dec 2012 13:42:42
1 SIP registrations.
voipinx*CLI>

Pive

unread,
Dec 10, 2012, 12:07:18 PM12/10/12
to aster...@googlegroups.com
La salida de mi ./configure es:

configure: Package configured for: 
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# 

Después, make:

 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# 

make install:

 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# 

ahora corro asterisk:

root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# 

me conecto al CLI:

root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# asterisk -rvvv
Asterisk 11.0.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <mark...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.0.2 currently running on jrodriguez-desktop (pid = 12861)
jrodriguez-desktop*CLI> 

y el sip show peers:

jrodriguez-desktop*CLI> sip show peers
No such command 'sip show peers' (type 'core show help sip show' for other possible commands)
jrodriguez-desktop*CLI> 

Al compilar no me da error por ninguna parte.


2012/12/10 Fernando Villares <fvil...@gmail.com>

Pive

unread,
Dec 10, 2012, 12:11:36 PM12/10/12
to aster...@googlegroups.com

Pive

unread,
Dec 10, 2012, 12:16:16 PM12/10/12
to aster...@googlegroups.com

La salida de mi ./configure es:

configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2#

make:

 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
make install:

 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+

ahora corro asterisk:

root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
root@jrodriguez-desktop:/usr/src/asterisk-11.0.2#

me conecto al CLI:

root@jrodriguez-desktop:/usr/src/asterisk-11.0.2# asterisk -rvvv


Asterisk 11.0.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <mark...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================

Connected to Asterisk 11.0.2 currently running on jrodriguez-desktop (pid = 12861)
jrodriguez-desktop*CLI>

y el sip show peers:

jrodriguez-desktop*CLI> sip show peers
No such command 'sip show peers' (type 'core show help sip show' for other possible commands)
jrodriguez-desktop*CLI>

Al compilar no me da error por ninguna parte.


2012/12/10 Fernando Villares <fvil...@gmail.com>

Fernando Villares

unread,
Dec 10, 2012, 12:51:30 PM12/10/12
to aster...@googlegroups.com
y de donde sacas q lo estas compilando bien si no has elegido los modulos con make menuselect???? 


2012/12/10 Pive <jose...@gmail.com>
--

Héctor A Arteaga R

unread,
Dec 10, 2012, 12:51:37 PM12/10/12
to aster...@googlegroups.com, Pive
Buen día

Creo que lo que Fernando te quiere decir es que si ya creaste minimo el sip.conf ya que no haces el make samples, debes de generar manualmente los archivos necesarios para que asterisk funcione, en este caso si no has generado sip.conf asterisk no cargar el chan_sip.so, porque piensa que sabe que no es necesario al no tener el archivo .conf

Saludos!!

Héctor A Arteaga R
México.
El 10/12/12 11:16, Pive escribió:
--

sergio....@gmail.com

unread,
Dec 10, 2012, 9:38:11 AM12/10/12
to aster...@googlegroups.com

Fijate si lo tenes seleccionado cuando haces "make menuselect".




El 10/12/12 11:26, Pive escribió:

mauricio arenales

unread,
Dec 10, 2012, 2:04:28 PM12/10/12
to aster...@googlegroups.com, Pive
Debes revisar en el archivo sip.conf, que no este incluido (Ej. #include sip_corporativo.conf), un archivo que no exista
 
Espero que te ayude

Att.

ANGEL MAURICIO ARENALES ORTIZ
Analista de Telecomunicaciones
Fundación Cardiovascular de Colombia
Tel: 57 7 6796470
Floridablanca - Santander - Colombia

Ama tu planeta,  párate en la tierra y no hagas más contaminación
Si no es  necesario no imprimas este correo



2012/12/10 Héctor A Arteaga R <hecto...@gmail.com>

Pive

unread,
Dec 12, 2012, 3:52:59 PM12/12/12
to aster...@googlegroups.com

Sí lo está Sergio.

El problema era que el directorio de Asterisk estaba vacío, así que ahí volqué los archivos que tenía hechos de la otra máquina y ya detectó entonces el sip.conf correctamente.

Publiqué la solución pero se ve que habrá habido algún error en mi Gmail y no habrá salido el correo.

Muchas gracias.

Nixon Gamboa Garcia

unread,
Nov 26, 2017, 4:05:43 PM11/26/17
to asterisk-es
entonces como lo solucionaste? estoy igual en asterisk 14.7.2 te agradezco

Jose Rodríguez S.

unread,
Nov 26, 2017, 4:12:51 PM11/26/17
to aster...@googlegroups.com, asterisk-es
Hola.

Tienes que cargar el módulo SIP. Aquí te dejo como:

Enviado desde Blue
Reply all
Reply to author
Forward
0 new messages