[Asterisk-ES] Problemas recepción llamadas Asterisk 1.6.2 <-> voztele

69 views
Skip to first unread message

snaker

unread,
Apr 20, 2010, 1:27:11 PM4/20/10
to aster...@googlegroups.com
Buenas

Estoy haciendo unas pruebas con asterisk 1.6.2 y no me funciona una
configuración básica que en asterisk 1.4.21 no daba problema alguno.
Llevo ya un buen rato dándole vueltas y no consigo hacer que funcione
así que si alguno nota algo raro estaré encantado de escuchar sus
comentarios.

El caso es que la llamada del proveedor entra en el asterisk pero este
le manda un unauthorized cuando debería dejarla pasar creo yo ya que
tengo puesta la directiva insecure=port,invite

Paso a poner logs y configuraciones (las partes relevantes):

sip.conf

register => 340000XXXXX:XX...@voztele.com/from-voztelecom

[voztelecom1]
username=340000XXXXX
type=peer
secret=XXXX
host=voztele.com
fromuser=340000XXXXX
context=from-voztelecom
canreinvite = no
fromuser=340000XXXXX
fromdomain=voztele.com

[from-voztelecom]
type=friend
host=voztele.com
context=from-voztelecom
insecure = invite,port

---------------

sip debug en el CLI

flecha*CLI>
<--- SIP read from UDP:193.22.119.20:5060 --->
INVITE sip:from-vo...@192.168.200.101:5060 SIP/2.0
Record-Route: <sip:193.22.119.20;lr=on;ftag=6CEEE008-10D7>
Via: SIP/2.0/UDP 193.22.119.20:5060;branch=z9hG4bKce11.60f4d9e7.0
Via: SIP/2.0/UDP 193.22.119.34:5060;branch=z9hG4bK39AE3AA1D
From: <sip:667X...@193.22.119.34>;tag=6CEEE008-10D7
To: <sip:XXXX...@193.22.119.20:5060>
Call-ID: EAB5CD07-4BD711DF...@193.22.119.34
Min-SE: 1800
CSeq: 101 INVITE
Max-Forwards: 32
Remote-Party-ID: <sip:667X...@193.22.119.34>;party=calling;screen=yes;privacy=off
Contact: <sip:667X...@193.22.119.34:5060>
Expires: 180
Content-Type: application/sdp
Content-Length: 551

v=0
o=CiscoSystemsSIP-GW-UserAgent 13 8115 IN IP4 193.22.119.34
s=SIP Call
c=IN IP4 193.22.119.34
t=0 0
m=audio 18806 RTP/AVP 18 4 8 0 100 101
c=IN IP4 193.22.119.34
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:100 X-NSE/8000
a=fmtp:100 192-194,200-202
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=X-sqn:0
a=X-cap: 1 audio RTP/AVP 100
a=X-cpar: a=rtpmap:100 X-NSE/8000
a=X-cpar: a=fmtp:100 192-194,200-202
a=X-cap: 2 image udptl t38

<------------->
--- (15 headers 22 lines) ---
Sending to 193.22.119.20 : 5060 (no NAT)
Using INVITE request as basis request - EAB5CD07-4BD711DF...@193.22.119.34
Found peer 'voztelecom1' for '667XXXXXX' from 193.22.119.20:5060
flecha*CLI>
<--- Reliably Transmitting (no NAT) to 193.22.119.20:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 193.22.119.20:5060;branch=z9hG4bKce11.60f4d9e7.0;received=193.22.119.20
Via: SIP/2.0/UDP 193.22.119.34:5060;branch=z9hG4bK39AE3AA1D
From: <sip:667X...@193.22.119.34>;tag=6CEEE008-10D7
To: <sip:XXXX...@193.22.119.20:5060>;tag=as7a849cd9
Call-ID: EAB5CD07-4BD711DF...@193.22.119.34
CSeq: 101 INVITE
Server: Asterisk PBX 1.6.2.5+svn251220-1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="2f8a9f99"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'EAB5CD07-4BD711DF...@193.22.119.34' in 32000 ms (Method: INVITE)
flecha*CLI>
<--- SIP read from UDP:193.22.119.20:5060 --->
ACK sip:from-vo...@192.168.200.101:5060 SIP/2.0
Via: SIP/2.0/UDP 193.22.119.20:5060;branch=z9hG4bKce11.60f4d9e7.0
From: <sip:667X...@193.22.119.34>;tag=6CEEE008-10D7
Call-ID: EAB5CD07-4BD711DF...@193.22.119.34
To: <sip:XXXX...@193.22.119.20:5060>;tag=as7a849cd9
CSeq: 101 ACK
User-Agent: OpenSER (1.2.1-notls (i386/linux))
Content-Length: 0


<------------->
--- (8 headers 0 lines) ---
flecha*CLI> sip set debug off



--
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

Subscription settings: http://groups.google.com/group/asterisk-es/subscribe?hl=es

Germán Aracil Boned

unread,
Apr 20, 2010, 1:48:46 PM4/20/10
to aster...@googlegroups.com
Mejor pregunta a tu operador ;)

Que aquí hay muchos operadores y puede saltar la de san quintín !

snaker escribió:
-
-------------------------------------
Germán Aracil Boned

Algún día reconocerán las masas,
que el software libre,
es un libro lleno de conocimientos,
escrito por el mundo, para el mundo.
Solo entonces desaparecerá la tiranía privativa,
haciéndonos tecnológicamente democráticos y libres.

www.zoonsuite.com
963146030 - General
963146031 - Asistencia de incidencias
963146032 - FAX
-------------------------------------
-

Iñaki Baz Castillo

unread,
Apr 20, 2010, 6:42:13 PM4/20/10
to aster...@googlegroups.com
El día 20 de abril de 2010 19:27, snaker <sna...@snaker.ath.cx> escribió:
> [from-voztelecom]
> type=friend
> host=voztele.com
> context=from-voztelecom
> insecure = invite,port

Estás poniendo "type=friend" lo que significa que Asterisk sólo
detectará el INVITE como proveniente de "from-voztelecom" si el From
username del INVITE es "from-voztelecom" (cosa que *obviamente* no va
a ser nunca ni tiene que serlo).

Pon "type=peer" para que lo detecte por la IP origen y funcionará.


--
Iñaki Baz Castillo
<i...@aliax.net>

gserrano

unread,
Apr 21, 2010, 4:47:21 AM4/21/10
to aster...@googlegroups.com
>-----Mensaje original-----
>De: aster...@googlegroups.com [mailto:aster...@googlegroups.com] En
nombre de Iñaki Baz Castillo
>Enviado el: miércoles, 21 de abril de 2010 0:42
>Para: aster...@googlegroups.com
>Asunto: Re: [Asterisk-ES] Problemas recepción llamadas Asterisk 1.6.2 <->
voztele
>
>El día 20 de abril de 2010 19:27, snaker <sna...@snaker.ath.cx> escribió:
>> [from-voztelecom]
>> type=friend
>> host=voztele.com
>> context=from-voztelecom
>> insecure = invite,port
>
>Estás poniendo "type=friend" lo que significa que Asterisk sólo
>detectará el INVITE como proveniente de "from-voztelecom" si el From
>username del INVITE es "from-voztelecom" (cosa que *obviamente* no va
>a ser nunca ni tiene que serlo).
>
>Pon "type=peer" para que lo detecte por la IP origen y funcionará.

Hola
Yo creo que el problema es :

register => 340000XXXXX:XX...@voztele.com/from-voztelecom

¿Para que pones la extensión: from-voztelecom ?
Déja:
register => 340000XXXXX:XX...@voztele.com
Si no pones la extensión esta la llamada entra por la extensión 's' al
contexto que le hayas puesto: from-voztelecom

[from-voztelecom]
type=friend
host=voztele.com
context=from-voztelecom
insecure = invite,port

Yo lo tengo de esta forma con el type=friend y me funciona perfectamente.
Saludos

My 2 cents

snaker

unread,
Apr 21, 2010, 8:42:57 AM4/21/10
to aster...@googlegroups.com
El mié, 21-04-2010 a las 10:47 +0200, gserrano escribió:
>
> Hola
> Yo creo que el problema es :
>
> register => 340000XXXXX:XX...@voztele.com/from-voztelecom
>
> ¿Para que pones la extensión: from-voztelecom ?
> Déja:
> register => 340000XXXXX:XX...@voztele.com
> Si no pones la extensión esta la llamada entra por la extensión 's' al
> contexto que le hayas puesto: from-voztelecom

Ya, lo copie asi despues de las 100 pruebas inutiles que hice pero
tambien lo probe bien ;)

> [from-voztelecom]
> type=friend
> host=voztele.com
> context=from-voztelecom
> insecure = invite,port
>
> Yo lo tengo de esta forma con el type=friend y me funciona perfectamente.
> Saludos


Al final era algo de la versión de asterisk que cogí, porque compilé y
todo funciono bien.

Muchas gracias a todos.
Reply all
Reply to author
Forward
0 new messages