Solucao de Problemas No Session Initiation Protocol (SIP)
Solucao de Problemas No Session Initiation Protocol (SIP)
Solucao de Problemas No Session Initiation Protocol (SIP)
Cisco Confidential
Michelle Jardim
Poder perguntar questes sobre Soluo de Problemas
Foto do
Especialista
Michelle Jardim
CCIE Voice
34960
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
Cisco Confidential
Cisco Confidential
a)
Administrador de redes
b)
Tcnico de informtica
c)
Analista de Sistemas
d)
Cargos gerenciais
e)
Outro
f)
Atualmente no trabalho
Cisco Confidential
Cisco Confidential
Michelle Jardim
CCIE Voice 34960
Data: 06/12/2012
Cisco Confidential
Cisco Confidential
Cisco Confidential
Agents
Cisco Confidential
10
Mensagens SIP
Pedidos e Respostas (Requests and Responses)
Cabealhos (Headers)
Negociao de Mdia
Session Description Protocol - SDP
Modelo Oferta/Resposta (Offer/Answer)
Early Offer x Delayed Offer
Early Media
Cisco Confidential
11
Servers (UAS)
User Agent Servers enviam Respostas aos Pedidos
A maioria dos dispositivos SIP so ao mesmo tempo UAC e UAS
Cisco Confidential
12
um Pedido de INVITE
BYE - Termina uma sesso existente; pode ser enviada por
domnio
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
13
provisria a um Pedido.
SUBSCRIBE (RFC 3265) para informar que quer ser notificado se um evento
especfico ocorrer.
NOTIFY (RFC 3265) - para notificar um assinante que um evento especfico
ocorreu.
UPDATE (RFC 3311) - para atualizar parmetros antes de uma Resposta final
ao INVITE.
MESSAGE (RFC 3428) - Mensagens Instneas SIP
REFER (RFC 3515) - para remeter um User Agent para se comunicar com outro
User Agent
PUBLISH (RFC 3903) - para enviar informaes sobre status de um User Agent
a um Presence Server
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
14
Cisco Confidential
15
URI
SIP Version
SIP Method
Cisco Confidential
16
Cisco Confidential
17
Response
Code
Description
Example
1xx
100 Trying
180 Ringing
183 Session Progress
2xx
200 OK
202 Acceptable
3xx
4xx
401 Unauthorized
406 Not Acceptable
486 Busy Here
487 Request Terminated
488 Not Acceptable Here
5xx
6xx
Cisco Confidential
18
Unified CM
Phone 1
INVITE
200 OK
ACK
Session Established
BYE
200 OK
Cisco Confidential
19
Unified CM
Phone 1
SBC
(CUBE)
Phone
2
SBC
(CUBE)
CUBE
INVITE
INVITE
200 OK
200 OK
ACK
ACK
Session Established
BYE
BYE
200 OK
200 OK
Cisco Confidential
20
SP SBC
Unified CM
Phone 1
SBC (CUBE)
SIP SP
SBC
CUBE
INVITE
200 OK
ACK
INVITE
200 OK
INVITE
200 OK
ACK
ACK
Session Established
BYE
BYE
200 OK
BYE
200 OK
200 OK
Cisco Confidential
21
Cisco Confidential
22
Um User Agent envia uma Oferta de SDP contendo toda as opes que
pode negociar.
SDP contm M linhas para cada media stream sendo negociado (Ex:
Cisco Confidential
23
v=0
o=Cisco-SIPUA 26964 0 IN IP4 172.18.159.152
s=SIP Call
t=0 0
m=audio 29254 RTP/SAVP 0 8 18 102 9 116 124 101
c=IN IP4 172.18.159.152
a=crypto:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:102 L16/16000
a=rtpmap:9 G722/8000
a=rtpmap:116 iLBC/8000
a=fmtp:116 mode=20
a=rtpmap:124 ISAC/16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
m=video 25466 RTP/AVP 97
c=IN IP4 172.18.159.152
b=TIAS:1000000
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42801E
a=recvonly
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
24
v=0
o=CiscoSystemsCCM-SIP 2000 1 IN IP4 172.18.106.59
s=SIP Call
c=IN IP4 172.18.159.152
t=0 0
m=audio 30308 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 0 RTP/AVP 97
Cisco Confidential
25
Cisco Confidential
26
Unified CM
Phone 1
Session Established
BYE
200 OK
Cisco Confidential
27
Unified CM
Phone 1
Session Established
BYE
200 OK
Cisco Confidential
28
Cisco Confidential
29
Unified CM
Phone 1
ACK
Session Established
BYE
200 OK
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
30
Cisco Confidential
31
Cisco Confidential
32
Cisco Confidential
33
Cisco Confidential
34
Cisco Confidential
35
Cisco Confidential
36
Cisco Confidential
37
Cisco Confidential
38
Cisco Confidential
39
Cisco Confidential
40
Cisco Confidential
41
de destino
No depende de CDRs
Session trace apenas rastreia as sesses SIP, de forma detalhada
Cisco Confidential
42
Cisco Confidential
43
Cisco Confidential
44
Cisco Confidential
45
Cisco Confidential
46
http://translatorx.cisco.com/
Guia sobre como habilitar e coletar via RTMT os traces do servio de
CallManager:
http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186
a0080094e89.shtml
NOTA: O TAC no suporta a ferramenta TranslatorX
Cisco Confidential
47
Cisco Confidential
48
Cisco Confidential
49
Cisco Confidential
50
CDR
Cisco Confidential
51
CDR
Cisco Confidential
52
Filtros de Mensagens
Cisco Confidential
53
Cisco Confidential
54
Cisco Confidential
55
Disponvel em http://www.wireshark.org
Disponvel para Windows, Mac OS X e UNIX / Linux
Oferece anlise de chamadas VoIP, incluindo SIP
Cisco Confidential
56
Cisco Confidential
57
Cisco Confidential
58
Cisco Confidential
59
captura de pacotes
Como realizar uma coleta de pacote?
Cisco Confidential
60
utils network capture file [file name] size all count 100000
Example:
utils network capture file CUCMCapture size all count 100000
Se este comando aplicado vrias vezes com o mesmo nome de
se CTRL+C pressionado.
Executar o teste recriando o problema.
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
61
Cisco Confidential
62
Cisco Confidential
63
Utilizao:
traffic-export
traffic-export
traffic-export
traffic-export
Cisco Confidential
64
switch.
Configurao:
monitor session 1 source interface fastethernet 0/2
monitor session 1 destination interface fastethernet 0/3
Utilizao:
show monitor session 1
http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note0918
6a008015c612.shtml#topic5
Cisco Confidential
65
a)
b)
c)
d)
Nenhuma.
Cisco Confidential
66
Cisco Confidential
67
Descrio do Problema
Um usurio relata que toda vez que ele disca para (919) 555-
Cisco Confidential
68
Cisco Confidential
69
destino envia a
mensagem de Resposta
404 Not Found
Cisco Confidential
70
Cisco Confidential
71
Cisco Confidential
72
Descrio do Problema
Um usurio relata que toda vez que ele disca para (919) 555-
Cisco Confidential
73
Cisco Confidential
74
mostra a
sinalizao a
partir do
telefone, e
tambm para o
CUBE
O CUBE est
respondendo
com uma
mensagem de
Resposta 403
Forbidden
Cisco Confidential
75
permitidos:
voice service voip
no ip address trusted authenticate
allow-connections sip to sip
sip
voice service voip
ip address trusted list
ipv4 172.18.106.0 255.255.255.0
allow-connections sip to sip
sip
Cisco Confidential
76
Descrio do Problema
Um usurio relata que toda vez que liga para um nmero de
Cisco Confidential
77
Coletando os Traces
Como possvel recriar o problema, pode gerar uma chamada de
Cisco Confidential
78
Cisco Confidential
79
Cisco Confidential
80
Cisco Confidential
81
Cisco Confidential
82
chamador
Cisco Confidential
83
Cisco Confidential
84
Cisco Confidential
85
Cisco Confidential
86
Cisco Confidential
87
Cisco Confidential
88
Cisco Confidential
89
Cisco Confidential
90
Cisco Confidential
91
Cisco Confidential
92
IP Phone
Unified CM
SIP Gateway
(172.18.159.152)
(172.18.106.59)
(172.18.159.231)
INVITE
100 Trying
REFER
SUBSCRIBE
200 OK (REFER)
200 OK (SUBSCRIBE)
Cisco Confidential
93
Usurio disca o 1
03/29/2010 10:36:34.350 |//SIP/SIPTcp/wait_SdlReadRsp: Incoming SIP TCP message from 172.18.159.152 on
port 51682 index 2321 with 896 bytes:
NOTIFY sip:[email protected]:5061 SIP/2.0
Via: SIP/2.0/TLS 172.18.159.152:51682;branch=z9hG4bK1cd529ba
To: <sip:[email protected]>;tag=1976165806
From: <sip:[email protected]>;tag=00260bd9669e07177ee0d51d-14f56f89
Call-ID: [email protected]
Date: Mon, 29 Mar 2010 14:36:33 GMT
CSeq: 1001 NOTIFY
Event: kpml
Subscription-State: active; expires=7200
Max-Forwards: 70
Contact: <sip:[email protected]:51682;transport=TLS>
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
Content-Length: 209
Content-Type: application/kpml-response+xml
Content-Disposition: session;handling=required
<?xml version="1.0" encoding="UTF-8"?>
<kpml-response xmlns="urn:ietf:params:xml:ns:kpml-response" version="1.0" code="200" text="OK"
suppressed="false" forced_flush="false" digits="1" tag="Backspace OK"/>
Cisco Confidential
94
Cisco Confidential
95
Cisco Confidential
96
Cisco Confidential
97
Cisco Confidential
98
IP Phone
Unified CM
SIP Gateway
(172.18.159.152)
(172.18.106.59)
(172.18.159.231)
INVITE
100 Trying
REFER
SUBSCRIBE
200 OK (REFER)
200 OK (SUBSCRIBE)
NOTIFY
200 OK (NOTIFY)
REFER
200 OK (REFER)
Cisco Confidential
99
Usrio disca o 8
03/29/2010 10:36:34.944 |//SIP/SIPTcp/wait_SdlReadRsp: Incoming SIP TCP message from
172.18.159.152 on port 51682 index 2321 with 896 bytes:
NOTIFY sip:[email protected]:5061 SIP/2.0
Via: SIP/2.0/TLS 172.18.159.152:51682;branch=z9hG4bK647d03c1
To: <sip:[email protected]>;tag=1976165806
From: <sip:[email protected]>;tag=00260bd9669e07177ee0d51d-14f56f89
Call-ID: [email protected]
Date: Mon, 29 Mar 2010 14:36:34 GMT
CSeq: 1002 NOTIFY
Event: kpml
Subscription-State: active; expires=7195
Max-Forwards: 70
Contact: <sip:[email protected]:51682;transport=TLS>
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
Content-Length: 209
Content-Type: application/kpml-response+xml
Content-Disposition: session;handling=required
<?xml version="1.0" encoding="UTF-8"?>
<kpml-response xmlns="urn:ietf:params:xml:ns:kpml-response" version="1.0" code="200"
text="OK" suppressed="false" forced_flush="false" digits="8" tag="Backspace OK"/>
Cisco Confidential
100
Cisco Confidential
101
Cisco Confidential
102
IP Phone
Unified CM
SIP Gateway
(172.18.159.152)
(172.18.106.59)
(172.18.159.231)
INVITE
100 Trying
REFER
SUBSCRIBE
200 OK (REFER)
200 OK (SUBSCRIBE)
NOTIFY
200 OK (NOTIFY)
REFER
200 OK (REFER)
NOTIFY
200 OK (NOTIFY)
NOTIFY / 200 OK
Repeats 10 Times
Cisco Confidential
103
Digit Analysis
10:36:41.486 |Digit analysis: match(pi="2", fqcn="+19194769236", cn="89919236",plv="5",
pss="1stLine:RTP_AbbrDial:Cisco:US Local:US RTP Local:US Long Distance:US
International:VMPilotPartition", TodFilteredPss="1stLine:RTP_AbbrDial:Cisco:US Local:US RTP Local:US Long
Distance:US International:VMPilotPartition", dd="918772888362",dac="1)
10:36:41.486 |Digit analysis: analysis results
10:36:41.486 ||PretransformCallingPartyNumber=+19194769236
|CallingPartyNumber=+19194769236
|DialingPartition=GDP_GlobalE164_PSTN
|DialingPattern=\+1.[2-9]XX[2-9]XXXXXX
|FullyQualifiedCalledPartyNumber=+18772888362
|DialingPatternRegularExpression=(+1)([2-9][0-9][0-9][2-9][0-9][0-9][0-9][0-9][0-9][0-9])
|DialingWhere=
|PatternType=Enterprise
|PotentialMatches=NoPotentialMatchesExist
|DialingSdlProcessId=(0,0,0)
|PretransformDigitString=+18772888362
|PretransformTagsList=ACCESS-CODE:SUBSCRIBER
|PretransformPositionalMatchList=+1:8772888362
|CollectedDigits=+18772888362
|UnconsumedDigits=
|TagsList=ACCESS-CODE:SUBSCRIBER
|PositionalMatchList=+1:8772888362
|VoiceMailbox=
|VoiceMailCallingSearchSpace=1stLine:RTP_AbbrDial
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
104
Cisco Confidential
105
Cisco Confidential
106
Cisco Confidential
107
Cisco Confidential
108
Cisco Confidential
109
Unified CM
IP Phone
SIP Gateway
(172.18.106.59)
(172.18.159.152)
(172.18.159.231)
INVITE
100 Trying
REFER
SUBSCRIBE
200 OK (REFER)
200 OK (SUBSCRIBE)
NOTIFY
200 OK (NOTIFY)
REFER
200 OK (REFER)
NOTIFY
200 OK (NOTIFY)
NOTIFY / 200 OK
Repeats 10 Times
SUBSCRIBE
200 OK (SUBSCRIBE)
INVITE
Cisco Confidential
110
Cisco Confidential
111
Cisco Confidential
112
Cisco Confidential
113
IP Phone
Unified CM
SIP Gateway
(172.18.159.152)
(172.18.106.59)
(172.18.159.231)
INVITE
100 Trying
REFER
SUBSCRIBE
200 OK (REFER)
200 OK (SUBSCRIBE)
NOTIFY
200 OK (NOTIFY)
REFER
200 OK (REFER)
NOTIFY
200 OK (NOTIFY)
NOTIFY / 200 OK
Repeats 10 Times
SUBSCRIBE
200 OK (SUBSCRIBE)
INVITE
100 Trying
183 Session Progress
180 Ringing
Cisco Confidential
114
Cisco Confidential
115
Cisco Confidential
116
Cisco Confidential
117
Unified CM
IP Phone
SIP Gateway
(172.18.106.59)
(172.18.159.152)
(172.18.159.231)
NOTIFY
200 OK (NOTIFY)
CANCEL
200 OK (CANCEL)
CANCEL
487 Request Cancelled
200 OK (CANCEL)
487 Request Cancelled
ACK
ACK
Cisco Confidential
118
O que fazer para que o gateway abra canal de voz aps a mensagem
Protocol (SIP)
Fornece uma forma de reconhecer a mensagem 183 Session Progress
PRACK
Parmetro SEP Rel1XX Options * no CUCM:
Disabled
Send PRACK for all 1xx Messages
*Service Parameter in 7.x and earlier. SIP Profile parameter in 8.x and later
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential
119
b)
c)
d)
Cisco Confidential
120
Cisco Confidential
121
Cisco Confidential
122
Cisco Confidential
123
Cisco Confidential
124
Acesse
https://supportforums.cisco.com/thread/2184443
Cisco Confidential
125
em Ingls
Tema: Multicast on Cisco Wireless LAN Controllers
Tera-feira, 18 de Dezembro, s
11:30 a.m. IST (India UTC +5:30 horas)
4 a.m. Brasilia
6 p.m. Lisboa
Cisco Confidential
126
Em Ingls
Tema: Cisco GETVPN
Tera-feira, 15 de Janeiro, s
9:00 a.m. Pacific Time
3:00 p.m. Brasil
5:00 p.m. Lisboa
Junte-se ao especialista Cisco
Ashutosh Luktuke
Durante esse evento ao vivo voc ir aprender sobre
Cisco GETVPN
Cisco Confidential
127
Ocorrendo atualmente
Tema: Scaling Data Center Networks with Cisco FabricPath
Junte-se aos especialistas Cisco: Iqbal Syed and Hatim Badr
Tema: Best Practices for Configuring the Cisco Web Security Appliance
(WSA)
https://supportforums.cisco.com/community/netpro/expertcorner#view=ask-the-experts
Cisco Confidential
128
Em Breve
Tema: Data Center and Cloud Security
Junte-se ao especialista Cisco: Naman Latif
Cisco Confidential
129
https://supportforums.cisco.com/community/portuguese
Portugal: http://www.facebook.com/ciscoportugal
Brasil: http://www.facebook.com/CiscoDoBrasil
Portugal: https://twitter.com/CiscoPortugal
Brasil: http://twitter.com/CiscoDoBrasil
Portugal: http://www.youtube.com /user/ciscoportugal
Brasil: http://www.youtube.com/user/ciscoDoBrasilTV
Portugal: http://ciscoportugalblog.wordpress.com/
Cisco Confidential
130
Russo https://supportforums.cisco.com/community/russian
Cisco Confidential
131
Obrigado pela
sua presena
Por favor complete o formulrio de avaliao do evento e
ganhe prmios
Thank you.