Problema troncal sip

449 views
Skip to first unread message

Guillermo Prado Obando

unread,
Oct 11, 2011, 3:33:36 PM10/11/11
to asterisk-es
Señores, tengo un problema con una contral SIP que estaba funcionando
sin problemas, luego de que se daño el equipo cisco del proveedor y lo
cambiaron, las llamadas se caen. Haciendo un sip debug desde mi
asterisk se ve lo siguiente:


INVITE sip:045645...@10.8.18.161 SIP/2.0
Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
Max-Forwards: 70
From: "17564040" <sip:1756...@192.168.150.2>;tag=as4b68c5fe
To: <sip:045645...@10.8.18.161>
Contact: <sip:1756...@192.168.150.2>
Call-ID: 0ecae20542377e01...@192.168.150.2
CSeq: 102 INVITE
User-Agent: Asterisk(1.6.2.19)
Date: Mon, 10 Oct 2011 22:49:14 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 263

v=0
o=root 1673974533 1673974533 IN IP4 192.168.150.2
s=Asterisk PBX 1.6.2.19
c=IN IP4 192.168.150.2
t=0 0
m=audio 13784 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


<--- SIP read from UDP:10.8.18.161:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
From: "17564040" <sip:1756...@192.168.150.2>;tag=as4b68c5fe
To: <sip:045645...@10.8.18.161>;tag=BFE4DFC-613
Date: Mon, 10 Oct 2011 22:46:41 GMT
Call-ID: 0ecae20542377e01...@192.168.150.2
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 INVITE
Allow-Events: telephone-event
Content-Length: 0


<--- SIP read from UDP:10.8.18.161:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
From: "17564040" <sip:1756...@192.168.150.2>;tag=as4b68c5fe
To: <sip:045645...@10.8.18.161>;tag=BFE4DFC-613
Date: Mon, 10 Oct 2011 22:46:41 GMT
Call-ID: 0ecae20542377e01...@192.168.150.2
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER,
SUBSCRIBE, NOTIFY, INFO, UPDATE, REGISTER
Allow-Events: telephone-event
Contact: <sip:045645...@10.8.18.161:5060>
Content-Disposition: session;handling=required
Content-Type: application/sdp
Content-Length: 241

v=0
o=CiscoSystemsSIP-GW-UserAgent 4499 1898 IN IP4 10.8.18.161
s=SIP Call
c=IN IP4 10.8.18.161
t=0 0
m=audio 16536 RTP/AVP 8 97
c=IN IP4 10.8.18.161
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-15
a=ptime:20
<------------->


<--- SIP read from UDP:10.8.18.161:5060 --->
SIP/2.0 500 Internal Server Error
Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
From: "17564040" <sip:1756...@192.168.150.2>;tag=as4b68c5fe
To: <sip:045645...@10.8.18.161>;tag=BFE4DFC-613
Date: Mon, 10 Oct 2011 22:46:41 GMT
Call-ID: 0ecae20542377e01...@192.168.150.2
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 INVITE
Allow-Events: telephone-event
Content-Length: 0
<------------->



El proveedor dice que el problema es de asterisk este es el log SIP
del equipo cisco:

Oct 11 16:07:32.185: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
BYE _sip:045645...@10.8.18.161:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK6108d620;rport
Max-Forwards: 70
From: "17564040" <_sip:1756...@192.168.150.2>;tag=as237dfb01
To: <_sip:045645...@10.8.18.161>;tag=FB70CC0-77C
Call-ID: 3bdcee3051b6dfef...@192.168.150.2
CSeq: 103 BYE
User-Agent: Asterisk(1.6.2.19)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0


les agradezco sus comentarios.



--
Atentamente,


Guillermo Prado Obando.
Bogotá D.C Colombia.



Saúl Ibarra Corretgé

unread,
Oct 11, 2011, 6:04:22 PM10/11/11
to aster...@googlegroups.com

Si su equipo Cisco responde 500 poco puedes hacer tu...

>
>
> El proveedor dice que el problema es de asterisk este es el log SIP
> del equipo cisco:
>
> Oct 11 16:07:32.185: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
> Received:
> BYE _sip:045645...@10.8.18.161:5060 SIP/2.0
> Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK6108d620;rport
> Max-Forwards: 70
> From: "17564040" <_sip:1756...@192.168.150.2>;tag=as237dfb01
> To: <_sip:045645...@10.8.18.161>;tag=FB70CC0-77C
> Call-ID: 3bdcee3051b6dfef...@192.168.150.2
> CSeq: 103 BYE
> User-Agent: Asterisk(1.6.2.19)
> X-Asterisk-HangupCause: Normal Clearing
> X-Asterisk-HangupCauseCode: 16
> Content-Length: 0
>
>

Tu ves que Asterisk mande ese BYE? :-O

Mejor haz una captura con ngrep...

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

Guillermo Prado Obando

unread,
Oct 11, 2011, 6:11:47 PM10/11/11
to aster...@googlegroups.com
Hola, gracias por la respuesta. En el debug sip no veo ningun BYE.

Haciendo pruebas me encontré con algo. Algunas llamadas salen bien. Esas llamadas corresponden a números que no hacen ring, es decir responden inmediatemente. Realicé algunas pruebas llamando a 2 pbx, que inmediatamente responden y la llamada se establece. Por otro lado si llamo a un teléfono normal, después de 2 o 3 rings la llamada se corta y sale el dichoso error 500 internal server error.



--
Atentamente,


Guillermo Prado Obando.
Bogotá D.C Colombia.




2011/10/11 Saúl Ibarra Corretgé <sag...@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



Samuel Cornu

unread,
Oct 11, 2011, 6:34:50 PM10/11/11
to aster...@googlegroups.com, aster...@googlegroups.com
Por esas casualidades no tendrás codecs de video habilitados en el trunk SIP, me paso con unas PBX basadas en asterisk que estuve probando, saque esos codecs y funciono correctamente.
Asterisk 1.6.2.13 + nextone + Cisco 5350 mx  + PGW. 
Si te sirve. 
Saludos

Enviado desde mi iPhone

Guillermo Prado Obando

unread,
Oct 11, 2011, 6:40:27 PM10/11/11
to aster...@googlegroups.com
Holap, no tengo codecs de video, si miras el debug sip solo están habilitados alaw y ulaw. gracias




--
Atentamente,


Guillermo Prado Obando.
Bogotá D.C Colombia.



Samuel Cornu

unread,
Oct 11, 2011, 6:43:41 PM10/11/11
to aster...@googlegroups.com, aster...@googlegroups.com
Si. Tenes razón. Mis disculpas. 
Saludos

Enviado desde mi iPhone

Jorge Eduardo Silva Jackson

unread,
Oct 13, 2011, 11:58:10 PM10/13/11
to aster...@googlegroups.com

Guillermo Prado Obando wrote:
> Hola, gracias por la respuesta. En el debug sip no veo ningun BYE.
>
> Haciendo pruebas me encontr� con algo. Algunas llamadas salen bien.
> Esas llamadas corresponden a n�meros que no hacen ring, es decir
> responden inmediatemente. Realic� algunas pruebas llamando a 2 pbx,
> que inmediatamente responden y la llamada se establece. Por otro lado
> si llamo a un tel�fono normal, despu�s de 2 o 3 rings la llamada se
> corta y sale el dichoso error 500 internal server error.
>

Por lo que veo, te viene el trying el provisional response (session
progress) pero nunca te viene ni el ringing ni el 200 OK.
Deber�as ver si el BYE que te dicen que reciben en el cisco, realmente
sale de tu asterisk, la mejor manera es TCPDUMP y analizar los
resultados con el WireShark.
Como haces el dial() en el dialplan ?
Capaz que el ring que escuchas es el generado por la opci�n r del dial y
en realidad te corta la llamada el asterisk porque no recibe el ringing
o el 200 OK en un Timeout establecido,entonces env�a el BYE (deber�a
enviar CANCEL en este escenario y no BYE)
Fijate estos detalles y contanos.

Saludos
EDU

>
> --
> Atentamente,
>
>
> Guillermo Prado Obando.

> Bogot� D.C Colombia.
>
>
>
>
> 2011/10/11 Sa�l Ibarra Corretg� <sag...@gmail.com
> <mailto:sag...@gmail.com>>


>
> On Tue, Oct 11, 2011 at 9:33 PM, Guillermo Prado Obando

> <gprado...@gmail.com <mailto:gprado...@gmail.com>> wrote:
> > Se�ores, tengo un problema con una contral SIP que estaba
> funcionando
> > sin problemas, luego de que se da�o el equipo cisco del


> proveedor y lo
> > cambiaron, las llamadas se caen. Haciendo un sip debug desde mi
> > asterisk se ve lo siguiente:
> >
> >
> > INVITE sip:045645...@10.8.18.161

> <mailto:sip%3A04564...@10.8.18.161> SIP/2.0


> > Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
> > Max-Forwards: 70
> > From: "17564040" <sip:1756...@192.168.150.2

> <mailto:sip%3A175...@192.168.150.2>>;tag=as4b68c5fe
> > To: <sip:045645...@10.8.18.161
> <mailto:sip%3A04564...@10.8.18.161>>
> > Contact: <sip:1756...@192.168.150.2
> <mailto:sip%3A175...@192.168.150.2>>
> > Call-ID: 0ecae20542377e01...@192.168.150.2
> <mailto:0ecae20542377e01...@192.168.150.2>


> > CSeq: 102 INVITE
> > User-Agent: Asterisk(1.6.2.19)
> > Date: Mon, 10 Oct 2011 22:49:14 GMT
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> > INFO
> > Supported: replaces, timer
> > Content-Type: application/sdp
> > Content-Length: 263
> >
> > v=0
> > o=root 1673974533 1673974533 IN IP4 192.168.150.2
> > s=Asterisk PBX 1.6.2.19
> > c=IN IP4 192.168.150.2
> > t=0 0
> > m=audio 13784 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
> >
> >
> > <--- SIP read from UDP:10.8.18.161:5060

> <http://10.8.18.161:5060> --->


> > SIP/2.0 100 Trying
> > Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
> > From: "17564040" <sip:1756...@192.168.150.2

> <mailto:sip%3A175...@192.168.150.2>>;tag=as4b68c5fe
> > To: <sip:045645...@10.8.18.161
> <mailto:sip%3A04564...@10.8.18.161>>;tag=BFE4DFC-613


> > Date: Mon, 10 Oct 2011 22:46:41 GMT
> > Call-ID: 0ecae20542377e01...@192.168.150.2

> <mailto:0ecae20542377e01...@192.168.150.2>


> > Server: Cisco-SIPGateway/IOS-12.x
> > CSeq: 102 INVITE
> > Allow-Events: telephone-event
> > Content-Length: 0
> >
> >
> > <--- SIP read from UDP:10.8.18.161:5060

> <http://10.8.18.161:5060> --->


> > SIP/2.0 183 Session Progress
> > Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
> > From: "17564040" <sip:1756...@192.168.150.2

> <mailto:sip%3A175...@192.168.150.2>>;tag=as4b68c5fe
> > To: <sip:045645...@10.8.18.161
> <mailto:sip%3A04564...@10.8.18.161>>;tag=BFE4DFC-613


> > Date: Mon, 10 Oct 2011 22:46:41 GMT
> > Call-ID: 0ecae20542377e01...@192.168.150.2

> <mailto:0ecae20542377e01...@192.168.150.2>


> > Server: Cisco-SIPGateway/IOS-12.x
> > CSeq: 102 INVITE
> > Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER,
> > SUBSCRIBE, NOTIFY, INFO, UPDATE, REGISTER
> > Allow-Events: telephone-event
> > Contact: <sip:045645...@10.8.18.161:5060

> <http://sip:045645...@10.8.18.161:5060>>


> > Content-Disposition: session;handling=required
> > Content-Type: application/sdp
> > Content-Length: 241
> >
> > v=0
> > o=CiscoSystemsSIP-GW-UserAgent 4499 1898 IN IP4 10.8.18.161
> > s=SIP Call
> > c=IN IP4 10.8.18.161
> > t=0 0
> > m=audio 16536 RTP/AVP 8 97
> > c=IN IP4 10.8.18.161
> > a=rtpmap:8 PCMA/8000
> > a=rtpmap:97 telephone-event/8000
> > a=fmtp:97 0-15
> > a=ptime:20
> > <------------->
> >
> >
> > <--- SIP read from UDP:10.8.18.161:5060

> <http://10.8.18.161:5060> --->


> > SIP/2.0 500 Internal Server Error
> > Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK385ac9c0;rport
> > From: "17564040" <sip:1756...@192.168.150.2

> <mailto:sip%3A175...@192.168.150.2>>;tag=as4b68c5fe
> > To: <sip:045645...@10.8.18.161
> <mailto:sip%3A04564...@10.8.18.161>>;tag=BFE4DFC-613


> > Date: Mon, 10 Oct 2011 22:46:41 GMT
> > Call-ID: 0ecae20542377e01...@192.168.150.2

> <mailto:0ecae20542377e01...@192.168.150.2>


> > Server: Cisco-SIPGateway/IOS-12.x
> > CSeq: 102 INVITE
> > Allow-Events: telephone-event
> > Content-Length: 0
> > <------------->
> >
>
> Si su equipo Cisco responde 500 poco puedes hacer tu...
>
> >
> >
> > El proveedor dice que el problema es de asterisk este es el log SIP
> > del equipo cisco:
> >
> > Oct 11 16:07:32.185: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
> > Received:
> > BYE _sip:045645...@10.8.18.161:5060

> <http://sip:045645...@10.8.18.161:5060> SIP/2.0


> > Via: SIP/2.0/UDP 192.168.150.2:5060;branch=z9hG4bK6108d620;rport
> > Max-Forwards: 70
> > From: "17564040" <_sip:1756...@192.168.150.2

> <mailto:sip%3A175...@192.168.150.2>>;tag=as237dfb01
> > To: <_sip:045645...@10.8.18.161
> <mailto:sip%3A04564...@10.8.18.161>>;tag=FB70CC0-77C
> > Call-ID: 3bdcee3051b6dfef...@192.168.150.2
> <mailto:3bdcee3051b6dfef...@192.168.150.2>


> > CSeq: 103 BYE
> > User-Agent: Asterisk(1.6.2.19)
> > X-Asterisk-HangupCause: Normal Clearing
> > X-Asterisk-HangupCauseCode: 16
> > Content-Length: 0
> >
> >
>
> Tu ves que Asterisk mande ese BYE? :-O
>
> Mejor haz una captura con ngrep...
>
> --

> /Sa�l


> http://saghul.net | http://sipdoc.net
>
> --
> 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
> <mailto:asterisk-es...@googlegroups.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

Reply all
Reply to author
Forward
0 new messages