SIP y NAT

266 views
Skip to first unread message

borjav...@gmail.com

unread,
Feb 7, 2012, 8:42:27 AM2/7/12
to asterisk-es
Hola a tod@s!!

Es mi primer post en el grupo y soy un auténtico amateur en esto asi
que perdonad si hay algo que deba ser perdonado xD

Os cuento:

estoy intentando montar un sistema en el que por un lado haya un
Asterisk detrás de NAT en LAN1. En esta misma LAN tendremos varios
clientes SIP. Al mismo tiempo queremos poder establecer comunicaciones
con el exterior, por ejemplo, con un cliente que esté detrás de NAT
también (en casa por ejemplo).

El caso es que he probado de todo ya que la info que hay por ahí es
mucha pero a mi poco me ha funcionado: he cambiado mil veces los
parámetros de sip.conf (externaddr, localnet, nat, etc...) y nada. En
el lado cliente he utilizado X-lite y he probado sin ICE y con ICE. El
servidor en el que me registré se llama numb (http://
numb.viagenie.ca/) y parece no hacer nada. He intentado detectar dónde
se encuentra el problema con Wireshark y demás pero me está siendo muy
complicado.

Supongo que la configuración del sistema que quiero montar no es poco
común no?

Alguien me podría echar una mano por favor? Le estaría enormemente
agradecido.

Un saludo a tod@s y gracias por adelantado!

Saúl Ibarra Corretgé

unread,
Feb 8, 2012, 7:05:24 AM2/8/12
to aster...@googlegroups.com
Buenas,

2012/2/7 borjav...@gmail.com <borjav...@gmail.com>:


> Hola a tod@s!!
>
> Es mi primer post en el grupo y soy un auténtico amateur en esto asi
> que perdonad si hay algo que deba ser perdonado xD
>
> Os cuento:
>
> estoy intentando montar un sistema en el que por un lado haya un
> Asterisk detrás de NAT en LAN1. En esta misma LAN tendremos varios
> clientes SIP. Al mismo tiempo queremos poder establecer comunicaciones
> con el exterior, por ejemplo, con un cliente que esté detrás de NAT
> también (en casa por ejemplo).
>
> El caso es que he probado de todo ya que la info que hay por ahí es
> mucha pero a mi poco me ha funcionado: he cambiado mil veces los
> parámetros de sip.conf (externaddr, localnet, nat, etc...) y nada. En
> el lado cliente he utilizado X-lite y he probado sin ICE y con ICE. El
> servidor en el que me registré se llama numb (http://
> numb.viagenie.ca/) y parece no hacer nada. He intentado detectar dónde
> se encuentra el problema con Wireshark y demás pero me está siendo muy
> complicado.
>

Si usas Asterisk ICE nunca te va a funcionar porque el mensaje SIP
saliente que genera Asterisk no tiene información sobre ICE. Vamos,
que Asterisk se lo "traga".

> Supongo que la configuración del sistema que quiero montar no es poco
> común no?
>

No, es muy común.

Cómo has configurado las opciones que arriba mencionas en el sip.conf?


Saludos,

--
/Saúl
http://saghul.net | http://sipdoc.net

alexis...@gmail.com

unread,
Feb 8, 2012, 7:22:21 AM2/8/12
to Lista asterisk-es
Buenas!, moviste tus parametros en sip_nat.conf?, fijaste la ip wan?, abriste los puertos 10000 al 20000 si es sip 5060 en tu router?

Saludos!
Enviado desde mi BlackBerry de Personal
--
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

Saúl Ibarra Corretgé

unread,
Feb 8, 2012, 8:12:06 AM2/8/12
to aster...@googlegroups.com
2012/2/8 <alexis...@gmail.com>:

> Buenas!, moviste tus parametros en sip_nat.conf?, fijaste la ip wan?, abriste los puertos 10000 al 20000 si es sip 5060 en tu router?
>

sip_nat.conf?!

Y eso de abrir los puertos del 10000 al 20000... cuantas llamadas
simultaneas pretendes tener? Cada llamada involucra 4 puertos (2xRTP +
2xRTCP) así que asumo que pretendes tener 2500 llamadas concurrentes.
Buena suerte.

alexis...@gmail.com

unread,
Feb 8, 2012, 8:53:29 AM2/8/12
to Lista asterisk-es
Ups! Eso era elastix, sorry jiji.
Enviado desde mi BlackBerry de Personal

-----Original Message-----

borjav...@gmail.com

unread,
Feb 8, 2012, 10:32:15 AM2/8/12
to asterisk-es


On 8 feb, 13:05, Saúl Ibarra Corretgé <sag...@gmail.com> wrote:
> Buenas,
>
> 2012/2/7 borjavinue...@gmail.com <borjavinue...@gmail.com>:
>
>
>
>
>
>
>
>
>
> > Hola a tod@s!!
>
> > Es mi primer post en el grupo y soy un auténtico amateur en esto asi
> > que perdonad si hay algo que deba ser perdonado xD
>
> > Os cuento:
>
> > estoy intentando montar un sistema en el que por un lado haya un
> > Asterisk detrás de NAT en LAN1. En esta misma LAN tendremos varios
> > clientes SIP. Al mismo tiempo queremos poder establecer comunicaciones
> > con el exterior, por ejemplo, con un cliente que esté detrás de NAT
> > también (en casa por ejemplo).
>
> > El caso es que he probado de todo ya que la info que hay por ahí es
> > mucha pero a mi poco me ha funcionado: he cambiado mil veces los
> > parámetros de sip.conf (externaddr, localnet, nat, etc...) y nada. En
> > el lado cliente he utilizado X-lite y he probado sin ICE y con ICE. El
> > servidor en el que me registré se llama numb (http://
> > numb.viagenie.ca/) y parece no hacer nada. He intentado detectar dónde
> > se encuentra el problema con Wireshark y demás pero me está siendo muy
> > complicado.
>
> Si usas Asterisk ICE nunca te va a funcionar porque el mensaje SIP
> saliente que genera Asterisk no tiene información sobre ICE. Vamos,
> que Asterisk se lo "traga".

Lo primero muchas gracias por el interés Saúl.

Creo que no entiendo demasiado bien por qué si uso ICE con X-lite no
funciona. ¿Qué quieres decir con que Asterisk se "traga" el mensaje
SIP?


>
> > Supongo que la configuración del sistema que quiero montar no es poco
> > común no?
>
> No, es muy común.
>
> Cómo has configurado las opciones que arriba mencionas en el sip.conf?

Aquí lo dejo:


[general]
context=unauthenitcated
allowguest=no
srvlookup=yes
udpbindaddr=0.0.0.0
tcpenable=no
qualify=yes
nat=yes
externaddr=83.X.X.163
localnet=192.168.1.0/255.255.255.0

[homephone](!)
context=local
type=friend
host=dynamic
secret=micontraseña
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw

[pc1](homephone)
[pc2](homephone)
[pc3](homephone)

En la plantilla [homephone](!) he probado con nat=yes también.

A ver si veo algo de luz de una vez...estoy desesperado :(

Muchas gracias!!
>
> Saludos,
>
> --
> /Saúlhttp://saghul.net|http://sipdoc.net


Lo primero

Edgardo Alvarez

unread,
Feb 8, 2012, 9:58:08 AM2/8/12
to aster...@googlegroups.com
Puedes hacer que tu router use los puertos 5060 y lo redireccione a el servidor asterisk
igual con los otros puertos mencionados por los demas

saludos desde colombia
--
Edgardo Alvarez

juanmol

unread,
Feb 8, 2012, 12:27:11 PM2/8/12
to asterisk-es
... no es externip? http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf
(...) externip = IP_Address or a hostname : Address that we're going
to put in SIP messages if we're behind a NAT. If a hostname is used as
the value, then the IP address associated with the hostname is looked
up only once during the reading of the sip.conf. If you want support
for a hostname associated with a dynamic IP address, use Asterisk sip
externhost.

externhost = hostname.tld : (New in Asterisk 1.2.x)
(/...)

On Feb 8, 4:32 pm, "borjavinue...@gmail.com" <borjavinue...@gmail.com>
wrote:

Saúl Ibarra Corretgé

unread,
Feb 8, 2012, 12:37:43 PM2/8/12
to aster...@googlegroups.com
Aupa,

> Lo primero muchas gracias por el interés Saúl.
>
> Creo que no entiendo demasiado bien por qué si uso ICE con X-lite no
> funciona. ¿Qué quieres decir con que Asterisk se "traga" el mensaje
> SIP?
>

Asterisk es un B2BUA, es decir, el mensaje que tu le envías no es el
que él luego envía al destinatario final:

Alice -- (SIP con ICE) --> Asterisk -- (SIP generado por Asterisk y
sin ICE) --> Bob

De momento no hay manera de hacer que ICE funcione con Asterisk. No
obstante, ICE es para el media, es decir, para el RTP, no para la
parte SIP como tal.

Tienes el 5060 abierto en el router, verdad? Sabes si tu router tiene
algún ALG? Suelen joder bastante...

En cualquier caso, lo mejor es que hagas una captura con ngrep para
ver si llega el trafico al servidor Asterisk:

ngrep -d any -W byline -t -P '' port 5060

Saúl Ibarra Corretgé

unread,
Feb 8, 2012, 12:41:30 PM2/8/12
to aster...@googlegroups.com
En 1.8 es externaddr.

2012/2/8 juanmol <jua...@gmail.com>:

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

--

borjav...@gmail.com

unread,
Feb 9, 2012, 4:03:36 AM2/9/12
to asterisk-es, Saúl Ibarra Corretgé

> Tienes el 5060 abierto en el router, verdad? Sabes si tu router tiene
> algún ALG? Suelen joder bastante...

El 5060 si, está abierto y redirigido al Asterisk. En cuanto al ALG he
mirado por la red a ver si veía algo y no parece que tenga nada. Mi
router es un Observa Telecom-AW4062, por si aporta algo.

>
> En cualquier caso, lo mejor es que hagas una captura con ngrep para
> ver si llega el trafico al servidor Asterisk:
>
> ngrep -d any -W byline -t -P '' port 5060
>
> Saludos,
>
> --
> /Saúlhttp://saghul.net|http://sipdoc.net


Bueno, tras ponerme fuera del servidor, es decir, llamar desde fuera
de la LAN donde está Asterisk llamando a un softphone dentro de la
misma LAN del Asterisk la cosa funciona pero sólo en un sentido. Sin
embargo, si llamo desde dentro de la LAN de Asterisk al cliente que
está fuera HAY AUDIO EN AMBAS DIRECCIONES! Al menos esto reduce un
poco el problema y espero sea más fácil de solucionar.

Mientras lo miro e intento comprender por qué el flujo rtp no funciona
como debiera en uno de los casos os dejo por aquí algunas cositas a
ver si podéis echarme una mano. Por un lado el sip.conf que he
utilizado y por otro las capturas con ngrep para ambos casos: llamando
desde fuera a "dentro" y viceversa.

Gracias Saúl y compañía por echarme una mano :)
.................................................................................
·················································································

sip.conf:

[general]
register => actSRV:actualize123%@212.0.118.86
context=unauthenticated
allowguest=no
srvlookup=yes
udpbindaddr=0.0.0.0
tcpenable=no
qualify=yes
nat=yes
externaddr=83.43.19.89
localnet=192.168.1.0/255.255.255.0

[actSRV]
type=peer
host=212.0.118.86
username=homeSRV
secret=actualize123%
context=local
disallow=all
allow=alaw
allow=ulaw
allow=gsm
;nat=yes
;qualify=yes


[homePhone](!)
nat=yes
canreinvite=no
context=local
type=friend
host=dynamic
secret=actualize123@
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw

[pcPiluca](homePhone)

[pcBorja](homePhone)

[pcActualize](homePhone)

......................................................................................
······················································································




Captura con ngrep en Asterisk usando ## ngrep -d any -W byline -t -P
'' port 5060 ##:

·················································································

Caso 1 (one way audio):

U 2012/02/09 09:31:06.948854 213.27.235.146:60428 -> 192.168.1.49:5060
INVITE sip:1...@83.43.19.89 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-d8754z-
e65303e0585a1d0b-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcPi...@213.27.235.146:60428>^@
To: "102"<sip:1...@83.43.19.89>^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 1 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 385^@
^@
v=0^@
o=- 12973249801479180 1 IN IP4 213.27.235.146^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 213.27.235.146^@
t=0 0^@
a=ice-ufrag:b84434^@
a=ice-pwd:b1298b7dcc90e64afbece1daad9bdde2^@
m=audio 46762 RTP/AVP 0 8 3 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.209 59574 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.209 59575 typ host^@

#
U 2012/02/09 09:31:06.949568 192.168.1.49:5060 -> 213.27.235.146:60428
SIP/2.0 401 Unauthorized^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-d8754z-
e65303e0585a1d0b-1---d8754z-;received=213.27.235.146;rport=60428^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
To: "102"<sip:1...@83.43.19.89>;tag=as66b9fa6f^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 1 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="5b11ed53"^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.007711 213.27.235.146:60428 -> 192.168.1.49:5060
ACK sip:1...@83.43.19.89 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-d8754z-
e65303e0585a1d0b-1---d8754z-;rport^@
Max-Forwards: 70^@
To: "102"<sip:1...@83.43.19.89>;tag=as66b9fa6f^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 1 ACK^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.047211 213.27.235.146:60428 -> 192.168.1.49:5060
INVITE sip:1...@83.43.19.89 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-7d553dcfafc7a9d3-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcPi...@213.27.235.146:60428>^@
To: "102"<sip:1...@83.43.19.89>^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Authorization: Digest
username="pcPiluca",realm="asterisk",nonce="5b11ed53",uri="sip:
1...@83.43.19.89",response="1014c15f3f23d7dc6c49e5839ca8250c",algorithm=
$
Content-Length: 385^@
^@
v=0^@a=ice-pwd:b1298b7dcc90e64afbece1daad9bdde2^@
m=audio 46764 RTP/AVP 0 8 3 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.209 59574 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.209 59575 typ host^@

#
U 2012/02/09 09:31:07.047985 192.168.1.49:5060 -> 213.27.235.146:60428
SIP/2.0 100 Trying^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-7d553dcfafc7a9d3-1---
d8754z-;received=213.27.235.146;rport=60428^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
To: "102"<sip:1...@83.43.19.89>^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Contact: <sip:1...@83.43.19.89:5060>^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.048679 192.168.1.49:5060 -> 213.27.235.146:60428
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-7d553dcfafc7a9d3-1---
d8754z-;received=213.27.235.146;rport=60428^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Contact: <sip:1...@83.43.19.89:5060>^@
Content-Type: application/sdp^@
Content-Length: 271^@
^@
v=0^@
o=root 294934352 294934352 IN IP4 83.43.19.89^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 83.43.19.89^@
t=0 0^@
m=audio 19296 RTP/AVP 8 0 101^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:31:07.148185 192.168.1.49:5060 -> 213.27.235.146:60428
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-7d553dcfafc7a9d3-1---
d8754z-;received=213.27.235.146;rport=60428^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Contact: <sip:1...@83.43.19.89:5060>^@
Content-Type: application/sdp^@
Content-Length: 271^@
^@
v=0^@
o=root 294934352 294934352 IN IP4 83.43.19.89^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 83.43.19.89^@
t=0 0^@
m=audio 19296 RTP/AVP 8 0 101^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:31:07.313266 213.27.235.146:60428 -> 192.168.1.49:5060
ACK sip:1...@83.43.19.89:5060 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-d8754z-
b614470e0efcb310-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcPi...@213.27.235.146:60428>^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 ACK^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Authorization: Digest
username="pcPiluca",realm="asterisk",nonce="5b11ed53",uri="sip:
1...@83.43.19.89",response="1014c15f3f23d7dc6c49e5839ca8250c",algorithm=
$
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.318065 213.27.235.146:60428 -> 192.168.1.49:5060
ACK sip:1...@83.43.19.89:5060 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-d8754z-
b614470e0efcb310-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcPi...@213.27.235.146:60428>^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 2 ACK^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Authorization: Digest
username="pcPiluca",realm="asterisk",nonce="5b11ed53",uri="sip:
1...@83.43.19.89",response="1014c15f3f23d7dc6c49e5839ca8250c",algorithm=
$
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.548869 192.168.1.49:5060 -> 192.168.1.34:7826
INVITE sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435 SIP/
2.0^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK6cf4a093;rport^@
Max-Forwards: 70^@
From: "pcPiluca" <sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
To: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
Contact: <sip:pcPi...@192.168.1.49:5060>^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 102 INVITE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:31:07 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Type: application/sdp^@
Content-Length: 275^@
^@
v=0^@
o=root 1517766623 1517766623 IN IP4 192.168.1.49^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 192.168.1.49^@
t=0 0^@
m=audio 10354 RTP/AVP 8 0 101^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:31:07.631609 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 100 Trying^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK6cf4a093;rport=5060^@
To: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
From: "pcPiluca" <sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 102 INVITE^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:07.833966 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 180 Ringing^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK6cf4a093;rport=5060^@
Contact: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
From: "pcPiluca"<sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 102 INVITE^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:11.111311 192.168.1.34:7826 -> 192.168.1.49:5060
^@
^@
Z^@^@^@^@^@^@^@^@^@^@^@^@^@
#
U 2012/02/09 09:31:12.340868 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK6cf4a093;rport=5060^@
Contact: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
From: "pcPiluca"<sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 102 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 376^@
^@
v=0^@
o=- 1328776211560864 1 IN IP4 192.168.1.34^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 192.168.1.34^@
t=0 0^@
a=ice-ufrag:cefc05^@
a=ice-pwd:42655d4eba73a73b7ff9b813823ed0f3^@
m=audio 51686 RTP/AVP 8 0 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.34 51686 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.34 51687 typ host^@

#
U 2012/02/09 09:31:12.341309 192.168.1.49:5060 -> 192.168.1.34:7826
ACK sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK484d556a;rport^@
Max-Forwards: 70^@
From: "pcPiluca" <sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
Contact: <sip:pcPi...@192.168.1.49:5060>^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 102 ACK^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.576150 213.27.235.146:60428 -> 192.168.1.49:5060
BYE sip:1...@83.43.19.89:5060 SIP/2.0^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-65cffed8ca28d332-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcPi...@213.27.235.146:60428>^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 3 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Authorization: Digest
username="pcPiluca",realm="asterisk",nonce="5b11ed53",uri="sip:
1...@83.43.19.89:5060",response="49679dbcd030162cc0c2f5b076923fda",algor
$
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.576636 192.168.1.49:5060 -> 213.27.235.146:60428
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 213.27.235.146:60428;branch=z9hG4bK-
d8754z-65cffed8ca28d332-1---
d8754z-;received=213.27.235.146;rport=60428^@
From: "pcPiluca"<sip:pcPi...@83.43.19.89>;tag=33c8554c^@
To: "102"<sip:1...@83.43.19.89>;tag=as70200fc2^@
Call-ID: NmE1ZGU1ZmQ2MDEyNWI2YTE3NzhhZGFiZGYwNTEyOWE.^@
CSeq: 3 BYE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.576934 192.168.1.49:5060 -> 192.168.1.34:7826
BYE sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK3f1aa4e7;rport^@
Max-Forwards: 70^@
From: "pcPiluca" <sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 103 BYE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
X-Asterisk-HangupCause: Normal Clearing^@
X-Asterisk-HangupCauseCode: 16^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.676220 192.168.1.49:5060 -> 192.168.1.34:7826
BYE sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK3f1aa4e7;rport^@
Max-Forwards: 70^@
From: "pcPiluca" <sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 103 BYE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
X-Asterisk-HangupCause: Normal Clearing^@
X-Asterisk-HangupCauseCode: 16^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.832911 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK3f1aa4e7;rport=5060^@
Contact: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
From: "pcPiluca"<sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 103 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:26.833625 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK3f1aa4e7;rport=5060^@
Contact: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=18aee574^@
From: "pcPiluca"<sip:pcPi...@192.168.1.49>;tag=as3f6bf549^@
Call-ID: 04e405b30a0235db...@192.168.1.49:5060^@
CSeq: 103 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:32.081763 192.168.1.49:5060 -> 192.168.1.34:7826
OPTIONS sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435 SIP/
2.0^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK79f8b583;rport^@
Max-Forwards: 70^@
From: "asterisk" <sip:aste...@192.168.1.49>;tag=as45f66673^@
To: <sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>^@
Contact: <sip:aste...@192.168.1.49:5060>^@
Call-ID: 624315e5748bafc6...@192.168.1.49:5060^@
CSeq: 102 OPTIONS^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:31:32 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:32.084767 192.168.1.34:7826 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.49:5060;branch=z9hG4bK79f8b583;rport=5060^@
Contact: <sip:192.168.1.34:7826>^@
To:
<sip:pcB...@192.168.1.34:7826;rinstance=7c658ae4fabc1435>;tag=15e61c7e^@
From: "asterisk"<sip:aste...@192.168.1.49>;tag=as45f66673^@
Call-ID: 624315e5748bafc6...@192.168.1.49:5060^@
CSeq: 102 OPTIONS^@
Accept: application/sdp^@
Accept-Language: en^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:32.932551 192.168.1.49:5060 -> 212.0.118.86:5060
OPTIONS sip:212.0.118.86 SIP/2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK16b64fff;rport^@
Max-Forwards: 70^@
From: "asterisk" <sip:aste...@83.43.19.89>;tag=as6d05cd3e^@
To: <sip:212.0.118.86>^@
Contact: <sip:aste...@83.43.19.89:5060>^@
Call-ID: 7c9cd0b3026d1932...@83.43.19.89:5060^@
CSeq: 102 OPTIONS^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:31:32 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:32.991313 212.0.118.86:5060 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP
83.43.19.89:5060;branch=z9hG4bK16b64fff;received=192.168.1.1;rport=47936^@
From: "asterisk" <sip:aste...@83.43.19.89>;tag=as6d05cd3e^@
To: <sip:212.0.118.86>;tag=as00e48355^@
Call-ID: 7c9cd0b3026d1932...@83.43.19.89:5060^@
CSeq: 102 OPTIONS^@
Server: FPBX-2.8.1(1.6.2.11)^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO^@
Supported: replaces, timer^@
Contact: <sip:192.168.1.96>^@
Accept: application/sdp^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:32.993541 192.168.1.49:5060 -> 213.27.235.146:60428
OPTIONS sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4
SIP/2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK67f2a1ac;rport^@
Max-Forwards: 70^@
From: "asterisk" <sip:aste...@83.43.19.89>;tag=as59e75c1f^@
To: <sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
Contact: <sip:aste...@83.43.19.89:5060>^@
Call-ID: 27c820a739138820...@83.43.19.89:5060^@
CSeq: 102 OPTIONS^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:31:32 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:31:33.057205 213.27.235.146:60428 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK67f2a1ac;rport=5060^@
Contact: <sip:213.27.235.146:60428>^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8e8509ce^@
From: "asterisk"<sip:aste...@83.43.19.89>;tag=as59e75c1f^@
Call-ID: 27c820a739138820...@83.43.19.89:5060^@
CSeq: 102 OPTIONS^@
Accept: application/sdp^@
Accept-Language: en^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 0^@
^@

exit
27 received, 0 dropped

o=- 12973249801479180 1 IN IP4 213.27.235.146^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 213.27.235.146^@
t=0 0^@
a=ice-ufrag:b84434^@

·················································································

Caso 2 (audio en ambos sentidos):

#
U 2012/02/09 09:32:11.111012 192.168.1.34:7826 -> 192.168.1.49:5060
^@
^@
Z^@^@^@^@^@^@^@^@^@^@g^@P
#
U 2012/02/09 09:32:11.420434 192.168.1.34:7826 -> 192.168.1.49:5060
INVITE sip:1...@192.168.1.49 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-618e574fa767da10-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcB...@192.168.1.34:7826>^@
To: <sip:1...@192.168.1.49>^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 1 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Content-Length: 376^@
^@
v=0^@
o=- 1328776270692164 1 IN IP4 192.168.1.34^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 192.168.1.34^@
t=0 0^@
a=ice-ufrag:a1d720^@
a=ice-pwd:7d8676c301f0e3a1840fc680af43ec80^@
m=audio 59514 RTP/AVP 0 8 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.34 59514 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.34 59515 typ host^@

#
U 2012/02/09 09:32:11.421004 192.168.1.49:5060 -> 192.168.1.34:7826
SIP/2.0 401 Unauthorized^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-618e574fa767da10-1---d8754z-;received=192.168.1.34;rport=7826^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
To: <sip:1...@192.168.1.49>;tag=as10eb2b47^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 1 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="62cac404"^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:11.423846 192.168.1.34:7826 -> 192.168.1.49:5060
ACK sip:1...@192.168.1.49 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-618e574fa767da10-1---d8754z-;rport^@
Max-Forwards: 70^@
To: <sip:1...@192.168.1.49>;tag=as10eb2b47^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 1 ACK^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:11.425284 192.168.1.34:7826 -> 192.168.1.49:5060
INVITE sip:1...@192.168.1.49 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-85e1f61e9837ea67-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcB...@192.168.1.34:7826>^@
To: <sip:1...@192.168.1.49>^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 2 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Authorization: Digest
username="pcBorja",realm="asterisk",nonce="62cac404",uri="sip:
1...@192.168.1.49",response="4fa9b353426b9064024dc25f05856082",algorithm=
$
Content-Length: 376^@
^@
v=0^@
o=- 1328776270692164 1 IN IP4 192.168.1.34^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 192.168.1.34^@
t=0 0^@
a=ice-ufrag:a1d720^@
a=ice-pwd:7d8676c301f0e3a1840fc680af43ec80^@
m=audio 59514 RTP/AVP 0 8 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.34 59514 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.34 59515 typ host^@

#
U 2012/02/09 09:32:11.426080 192.168.1.49:5060 -> 192.168.1.34:7826
SIP/2.0 100 Trying^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-85e1f61e9837ea67-1---d8754z-;received=192.168.1.34;rport=7826^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
To: <sip:1...@192.168.1.49>^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 2 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Contact: <sip:1...@192.168.1.49:5060>^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:11.426778 192.168.1.49:5060 -> 192.168.1.34:7826
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-
d8754z-85e1f61e9837ea67-1---d8754z-;received=192.168.1.34;rport=7826^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
To: <sip:1...@192.168.1.49>;tag=as6940d710^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 2 INVITE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Contact: <sip:1...@192.168.1.49:5060>^@
Content-Type: application/sdp^@
Content-Length: 275^@
^@
v=0^@
o=root 1165800845 1165800845 IN IP4 192.168.1.49^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 192.168.1.49^@
t=0 0^@
m=audio 12186 RTP/AVP 8 0 101^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:32:11.458238 192.168.1.34:7826 -> 192.168.1.49:5060
ACK sip:1...@192.168.1.49:5060 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-d8754z-
ebe53b604279602e-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcB...@192.168.1.34:7826>^@
To: <sip:1...@192.168.1.49>;tag=as6940d710^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 2 ACK^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Authorization: Digest
username="pcBorja",realm="asterisk",nonce="62cac404",uri="sip:
1...@192.168.1.49",response="4fa9b353426b9064024dc25f05856082",algorithm=
$
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:11.471808 192.168.1.49:5060 -> 213.27.235.146:60428
INVITE sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4
SIP/2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK6b0b28a4;rport^@
Max-Forwards: 70^@
From: "pcBorja" <sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
To: <sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
Contact: <sip:pcB...@83.43.19.89:5060>^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 102 INVITE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:32:11 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Type: application/sdp^@
Content-Length: 271^@
^@
v=0^@
o=root 159101402 159101402 IN IP4 83.43.19.89^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 83.43.19.89^@
t=0 0^@
m=audio 16286 RTP/AVP 0 8 101^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:32:11.571392 192.168.1.49:5060 -> 213.27.235.146:60428
INVITE sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4
SIP/2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK6b0b28a4;rport^@
Max-Forwards: 70^@
From: "pcBorja" <sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
To: <sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
Contact: <sip:pcB...@83.43.19.89:5060>^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 102 INVITE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Date: Thu, 09 Feb 2012 08:32:11 GMT^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Type: application/sdp^@
Content-Length: 271^@
^@
v=0^@
o=root 159101402 159101402 IN IP4 83.43.19.89^@
s=Asterisk PBX SVN-branch-1.8-r349672^@
c=IN IP4 83.43.19.89^@
t=0 0^@
m=audio 16286 RTP/AVP 0 8 101^@
a=rtpmap:0 PCMU/8000^@
a=rtpmap:8 PCMA/8000^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-16^@
a=ptime:20^@
a=sendrecv^@

#
U 2012/02/09 09:32:11.668294 213.27.235.146:60428 -> 192.168.1.49:5060
SIP/2.0 180 Ringing^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK6b0b28a4;rport=5060^@
Contact:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
From: "pcBorja"<sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 102 INVITE^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:13.767221 213.27.235.146:60428 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK6b0b28a4;rport=5060^@
Contact:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
From: "pcBorja"<sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 102 INVITE^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO^@
Content-Type: application/sdp^@
Supported: replaces^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 383^@
^@
v=0^@
o=- 12973249868507903 1 IN IP4 213.27.235.146^@
s=CounterPath X-Lite 4.1^@
c=IN IP4 213.27.235.146^@
t=0 0^@
a=ice-ufrag:65520f^@
a=ice-pwd:868c0b4b4aafa471dcd0c82470469537^@
m=audio 46768 RTP/AVP 0 8 101^@
a=rtpmap:101 telephone-event/8000^@
a=fmtp:101 0-15^@
a=sendrecv^@
a=candidate:1 1 UDP 659136 192.168.1.209 49668 typ host^@
a=candidate:1 2 UDP 659134 192.168.1.209 49669 typ host^@

#
U 2012/02/09 09:32:13.767636 192.168.1.49:5060 -> 213.27.235.146:60428
ACK sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4 SIP/
2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK5f9c8fca;rport^@
Max-Forwards: 70^@
From: "pcBorja" <sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
Contact: <sip:pcB...@83.43.19.89:5060>^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 102 ACK^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:27.883576 192.168.1.34:7826 -> 192.168.1.49:5060
BYE sip:1...@192.168.1.49:5060 SIP/2.0^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-d8754z-
d2907435c90d7d05-1---d8754z-;rport^@
Max-Forwards: 70^@
Contact: <sip:pcB...@192.168.1.34:7826>^@
To: <sip:1...@192.168.1.49>;tag=as6940d710^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 3 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63215^@
Authorization: Digest
username="pcBorja",realm="asterisk",nonce="62cac404",uri="sip:
1...@192.168.1.49:5060",response="76e90f9ffb55c0825c27b0c21f507bce",algor
$
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:27.884068 192.168.1.49:5060 -> 192.168.1.34:7826
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 192.168.1.34:7826;branch=z9hG4bK-d8754z-
d2907435c90d7d05-1---d8754z-;received=192.168.1.34;rport=7826^@
From: <sip:pcB...@192.168.1.49>;tag=a9c15470^@
To: <sip:1...@192.168.1.49>;tag=as6940d710^@
Call-ID: MTc3ZWY1MjhhNmI1OWU4MDk4MjM4OWU2YjQ4Y2NkYmM.^@
CSeq: 3 BYE^@
Server: Asterisk PBX SVN-branch-1.8-r349672^@
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH^@
Supported: replaces, timer^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:27.884383 192.168.1.49:5060 -> 213.27.235.146:60428
BYE sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4 SIP/
2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK7eb3ab06;rport^@
Max-Forwards: 70^@
From: "pcBorja" <sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 103 BYE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
X-Asterisk-HangupCause: Normal Clearing^@
X-Asterisk-HangupCauseCode: 16^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:27.983898 192.168.1.49:5060 -> 213.27.235.146:60428
BYE sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4 SIP/
2.0^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK7eb3ab06;rport^@
Max-Forwards: 70^@
From: "pcBorja" <sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 103 BYE^@
User-Agent: Asterisk PBX SVN-branch-1.8-r349672^@
X-Asterisk-HangupCause: Normal Clearing^@
X-Asterisk-HangupCauseCode: 16^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:28.030237 213.27.235.146:60428 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK7eb3ab06;rport=5060^@
Contact:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
From: "pcBorja"<sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 103 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 0^@
^@

#
U 2012/02/09 09:32:28.045929 213.27.235.146:60428 -> 192.168.1.49:5060
SIP/2.0 200 OK^@
Via: SIP/2.0/UDP 83.43.19.89:5060;branch=z9hG4bK7eb3ab06;rport=5060^@
Contact:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>^@
To:
<sip:pcPi...@213.27.235.146:60428;rinstance=8519b0d31617a5e4>;tag=8406e58e^@
From: "pcBorja"<sip:pcB...@83.43.19.89>;tag=as673ae8f1^@
Call-ID: 484263bf23dfb748...@83.43.19.89:5060^@
CSeq: 103 BYE^@
User-Agent: X-Lite 4 release 4.1 stamp 63214^@
Content-Length: 0^@
^@

exit
19 received, 0 dropped

...........................................................................................




Saúl Ibarra Corretgé

unread,
Feb 9, 2012, 5:35:13 AM2/9/12
to asterisk-es
Aupa,

>
> Bueno, tras ponerme fuera del servidor, es decir, llamar desde fuera
> de la LAN donde está Asterisk llamando a un softphone dentro de la
> misma LAN del Asterisk la cosa funciona pero sólo en un sentido. Sin
> embargo, si llamo desde dentro de la LAN de Asterisk al cliente que
> está fuera HAY AUDIO EN AMBAS DIRECCIONES! Al menos esto reduce un
> poco el problema y espero sea más fácil de solucionar.
>
> Mientras lo miro e intento comprender por qué el flujo rtp no funciona
> como debiera en uno de los casos os dejo por aquí algunas cositas a
> ver si podéis echarme una mano. Por un lado el sip.conf que he
> utilizado y por otro las capturas con ngrep para ambos casos: llamando
> desde fuera a "dentro" y viceversa.
>

No veo ningún problema obvio en la traza que has mandado. Ves el RTP
salir? Mira con rtp set debug en el CLI de Asterisk.

borjav...@gmail.com

unread,
Feb 13, 2012, 5:55:21 AM2/13/12
to asterisk-es
Buenas!

Bueno, finalmente funcionó! REsulta que en el firewall del router
(Fortigate 60B) había una opción en una de las reglas que tenñía que
ver con NAT que al parecer era la causante de todos los problemas. No
tengo demasiado claro qué es lo que hacía, pero la liaba parda xD

Muchas gracias a tod@s especialmente a a ti Saúl.

Ahora toca trastear y hacer cosas chulas :)

Saludos!
Reply all
Reply to author
Forward
0 new messages