toip voip protocolos h323-sip
TRANSCRIPT
Cisco Confidential © 2011 Cisco and/or its affiliates. All rights reserved. 1
Telefonía IP / Voz IP Protocolos de señalización
H.323 / SIP
Said Portillo CSE TAC - Voz
Abril de 2014
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
• H.323 Debugs en Gateway de voz Trazas de CUCM
• SIP Debugs en Gateway de voz Trazas de CUCM
• Flujo de llamada
• Tips de diagnóstico
• Preguntas y Respuestas
Cisco Confidential 3 © 2011 Cisco and/or its affiliates. All rights reserved.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
• Conceptos
• H.225
• H.245
• Slow Start
• Fast Start
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
• Es estándar de ITU-T que define protocolos de comunicación en una red de paquetes.
• Implementa: Datos, Video y Voz
• Enfocados a voz, define los aspectos de establecimiento, transmisión e intercambio de facilidades de una llamada:
Señalización basada en Q.931 H.225 H.245
• Dispositivos H323: Terminal, Gateway y Gatekeeper
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
• Señalización de control del establecimiento de una llamada.
• Utiliza el siguiente puerto y protocolo: 1720 / TCP
• Entre los mensajes de H.225 tenemos: Setup y Setup acknowledge Call Proceeding Progress Alerting Connect User Information Release Complete Status Inquiry y Status Information Notify
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
• Componente encargado de intercambio de facilidades (capabilities), del establecimiento y desconexión de los streams de media.
• Puntos importantes: 1. Master/Slave Determination 2. Terminal capabilities exchange 3. Logical channel signaling 4. DTMF relay
• Utiliza los siguientes puertos y protocolo: Efímero / TCP / DSCP CS3/AF31
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
• CUCM Default: Slow Start
• Gateway Default: Fast Start
• Negociación de Media: TCS/TCSAck MSD/MSDAck OLC/OLCAck
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
• OLC en la parte de Señalización de H.225
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
• Debugs importantes para soportar H.323, son los siguientes: debug h225 asn1 debug h245 asn1 debug h225 q931
• Debugs adicionales: debug h225 event debug h245 event
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
• Trazas de Cisco CallManager En modo detallado Sin filtros
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
• CUCM Envía el Setup de H.225 hacia el Gateway:
Traza SDI: 10/12/2012 18:17:55.711 CCM|Out Message -- H225SetupMsg -- Protocol= H225Protocol|
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::Significant><MASK::0040> 10/12/2012 18:17:55.711 CCM|Ie - H225BearerCapabilityIe IEData= 04 03 80 90 A2 |
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.711 CCM|Ie - Q931DisplayIe IEData= 28 0E 50 61 62 6C 6F 20 47 6F 6E 7A 61 6C
65 7A |<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.711 CCM|Ie - H225CallingPartyIe IEData= 6C 0A 41 81 35 33 30 38 37 30 30 30 |
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.711 CCM|Ie - Q931CalledPartyIe IEData= 70 0A C1 39 35 33 30 38 31 33 31 33 |
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> . . 10/12/2012 18:17:55.711 CCM|MMan_Id= 0. (iep= 0 dsl= 0 sapi= 0 ces= 0 IpAddr=10aa8c0
IpPort=1720)|<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.711 CCM|IsdnMsgData2= 08 02 00 03 05 04 03 80 90 A2 28 0E 50 61 62 6C 6F 20
47 6F 6E 7A 61 6C 65 7A 6C 0A 41 81 35 33 30 38 37 30 30 ....
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Debug h225 asn1: 002150: Oct 12 17:17:55.711: H225.0 INCOMING PDU ::=… h323-message-body setup : sourceAddress { h323-ID : {“Pablo Gonzalez..."} } destinationAddress { dialedDigits : "953081313" } sourceCallSignalAddress ipAddress : { ip 'C0A80A46'H > 192.168.10.70 CUCM port 1720 } callIdentifier { guid '0029AFCF43C1810703000301C0A80A5A'H }
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
Debug h225 asn1: 002198: Oct 12 17:17:55.723: H225.0 OUTGOING PDU ::= h323-message-body callProceeding : h245Address ipAddress : { ip 'C0A80A01'H > 192.168.10.1 H.323 port 60695 } callIdentifier { guid '0029AFCF43C1810703000301C0A80A5A'H }
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
• CUCM recibe el Call Proceeding junto con la dirección para la sesión de H.245 por parte del Gateway:
10/12/2012 18:17:55.728 CCM|In Message -- H225CallProceedingMsg -- Protocol=
H225Protocol|<CLID::StandAloneCluster><NID::192.168.10.70><LVL::Significant><MASK::0040>
10/12/2012 18:17:55.728 CCM|Ie - H225UserUserIe -- IEData= 7E 00 39 05 21 C0 06 00 08 91 4A 00 04 28 00 B5 00 00 12 40 01 3C 05 01 00 00 C0 A8 0A 01 ED 17 11 0C 11 00 00 29 AF CF 43 C1 81 07 03 00 03 01 C0 A8 0A 5A 01 00 01 00 10 80 01 00 |<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040>
.
. 10/12/2012 18:17:55.728 CCM|MMan_Id= 0. (iep= 0 dsl= 0 sapi= 0 ces= 0 IpAddr=10aa8c0
IpPort=1720)|<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.728 CCM|IsdnMsgData1= 08 02 80 03 02 7E 00 39 05 21 C0 06 00 08 91 4A 00 04
28 00 B5 00 00 12 …
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
Debug h225 asn1: 002226: Oct 12 17:17:55.747: H225.0 OUTGOING PDU ::= h323-message-body alerting : h245Address ipAddress : { ip 'C0A80A01'H > 192.168.10.1 H.323 port 60695 } callIdentifier { guid '0029AFCF43C1810703000301C0A80A5A'H }
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
• CUCM recibe el Call Alerting por parte del Gateway:
10/12/2012 18:17:55.755 CCM|In Message -- H225AlertMsg -- Protocol= H225Protocol|
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::Significant><MASK::0040> 10/12/2012 18:17:55.755 CCM|Ie - Q931ProgressIndIe -- IEData= 1E 02 80 88 |
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.755 CCM|Ie - Q931DisplayIe -- IEData= 28 00 |<CLID::StandAloneCluster><NID::
192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.755 CCM|Ie - Q931SignalIe -- IEData= 34 01 01 |<CLID::StandAloneCluster><NID::
192.168.10.70><LVL::State Transition><MASK::0040> . . 10/12/2012 18:17:55.755 CCM|MMan_Id= 0. (iep= 0 dsl= 0 sapi= 0 ces= 0 IpAddr=10aa8c0
IpPort=1720)|<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:55.755 CCM|IsdnMsgData1= 08 02 80 03 01 1E 02 80 88 28 00 34 01 01 7E 00 98 05
23 C0 06 00 08 91 4A 00 04 28 00 B5 00 00 12 40 01...
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
• Se procesa la sesión H.245:
10/12/2012 18:17:55.759 CCM|ProcessH245Interface(0) created with ip = 10aa8c0 and port = 60695 10/12/2012 18:17:55.759 CCM|H245Interface(4)::start_Transition, (H245Client session) ip =
(192.168.10.1), port = 60695, TA provided by Callee
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
• Se negocia las facilidades de MSD, TCS, y los OLC: 10/12/2012 18:17:55.776 CCM|H245ASN - TtPid=(1,100,16,4) -Incoming -value
MultimediaSystemControlMessage ::= request: terminalCapabilitySet capabilityTableEntryNumber 1, capability receiveAudioCapability : g711Ulaw64k : 40 capabilityTableEntryNumber 2, capability receiveAndTransmitUserInputCapability : dtmf : NULL capabilityTableEntryNumber 6, capability receiveAudioCapability : g729AnnexA : 2 10/12/2012 18:17:55.779 CCM|H245ASN - TtPid=(1,100,16,4) -Incoming -value
MultimediaSystemControlMessage ::= request : masterSlaveDetermination : 10/12/2012 18:17:55.782 CCM|H245ASN - TtPid=(1,100,16,4) -Outgoing -value
MultimediaSystemControlMessage ::= request : terminalCapabilitySet : capabilityTableEntryNumber 1, capability receiveAudioCapability : g711Ulaw64k : 40 capabilityTableEntryNumber 2, capability receiveAndTransmitUserInputCapability : dtmf : NULL capabilityTableEntryNumber 3, capability receiveAndTransmitUserInputCapability : basicString :
NULL capabilityTableEntryNumber 44, capability receiveAndTransmitUserInputCapability : hookflash : NULL 10/12/2012 18:17:55.782 CCM|H245ASN - TtPid=(1,100,16,4) -Outgoing -value
MultimediaSystemControlMessage ::= response : terminalCapabilitySetAck : 10/12/2012 18:17:55.788 CCM|H245ASN - TtPid=(1,100,16,4) -Incoming -value
MultimediaSystemControlMessage ::= response : terminalCapabilitySetAck : 10/12/2012 18:17:55.788 CCM|H245ASN - TtPid=(1,100,16,4) -Outgoing -value
MultimediaSystemControlMessage ::= response : masterSlaveDeterminationAck :
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
10/12/2012 18:17:55.790 CCM|H245ASN - TtPid=(1,100,16,4) -Outgoing -value
MultimediaSystemControlMessage ::= request : openLogicalChannel : dataType audioData : g711Ulaw64k : 20, mediaControlChannel unicastAddress : iPAddress : network 'C0A80A46'H,
10/12/2012 18:17:55.791 CCM|H245ASN - TtPid=(1,100,16,4) -Incoming -value
MultimediaSystemControlMessage ::= request : openLogicalChannel : dataType audioData : g711Ulaw64k : 20, mediaControlChannel unicastAddress : iPAddress : network 'C0A80A01'H,
10/12/2012 18:17:55.795 CCM|H245ASN - TtPid=(1,100,16,4) -Incoming -value
MultimediaSystemControlMessage ::= response : openLogicalChannelAck : mediaChannel unicastAddress : iPAddress : network 'C0A80A01'H, mediaControlChannel unicastAddress : iPAddress : network 'C0A80A01'H,
10/12/2012 18:17:55.848 CCM|H245ASN - TtPid=(1,100,16,4) -Outgoing -value
MultimediaSystemControlMessage ::= response : openLogicalChannelAck : mediaChannel unicastAddress : iPAddress : network 'C0A80A5A'H, mediaControlChannel unicastAddress : iPAddress : network 'C0A80A5A'H,
C0A80A46 > 192.168.10.70 CUCM C0A80A01 > 192.168.10.1 H.323 C0A80A5A > 192.168.10.90 IP Phone en CUCM
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
Debug h245 asn1: 002246: Oct 12 17:17:55.763: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= request : terminalCapabilitySet : 002250: Oct 12 17:17:55.771: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= request : masterSlaveDetermination : 002257: Oct 12 17:17:55.779: H245 MSC INCOMING PDU ::= value MultimediaSystemControlMessage ::= request : terminalCapabilitySet : 002263: Oct 12 17:17:55.783: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= response : terminalCapabilitySetAck : 002270: Oct 12 17:17:55.787: H245 MSC INCOMING PDU ::= value MultimediaSystemControlMessage ::= response : terminalCapabilitySetAck : 002279: Oct 12 17:17:55.787: H245 MSC INCOMING PDU ::= value MultimediaSystemControlMessage ::= response : masterSlaveDeterminationAck : 002285: Oct 12 17:17:55.787: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= response : masterSlaveDeterminationAck :
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
002289: Oct 12 17:17:55.787: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= request : openLogicalChannel : { dataType audioData : g711Ulaw64k : 20 multiplexParameters h2250LogicalChannelParameters : { sessionID 1 mediaControlChannel unicastAddress : iPAddress : { network 'C0A80A01'H > 192.168.10.1 H.323 tsapIdentifier 18005 } 002296: Oct 12 17:17:55.787: H245 MSC INCOMING PDU ::= value MultimediaSystemControlMessage ::= request : openLogicalChannel : { dataType audioData : g711Ulaw64k : 20 multiplexParameters h2250LogicalChannelParameters : { sessionID 1 mediaControlChannel unicastAddress : iPAddress : { network 'C0A80A46'H > 192.168.10.70 CUCM tsapIdentifier 4001 }
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
002308: Oct 12 17:17:55.791: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= response : openLogicalChannelAck : mediaChannel unicastAddress : iPAddress : { network 'C0A80A01'H > 192.168.10.1 H.323 tsapIdentifier 18004 } mediaControlChannel unicastAddress : iPAddress : { network 'C0A80A01'H tsapIdentifier 18005 } 002321: Oct 12 17:17:55.847: H245 MSC INCOMING PDU ::= value MultimediaSystemControlMessage ::= response : openLogicalChannelAck : mediaChannel unicastAddress : iPAddress : { network 'C0A80A5A'H > 192.168.10.90 IP Phone en CUCM tsapIdentifier 25642 } mediaControlChannel unicastAddress : iPAddress : { network 'C0A80A5A'H > 192.168.10.90 IP Phone en CUCM tsapIdentifier 25643 }
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
• Finalmente se recibe el Connect de H.225 del Gateway y se
establece la llamada: 10/12/2012 18:17:57.891 CCM|In Message -- H225ConnectMsg -- Protocol= H225Protocol|
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::Significant><MASK::0040> 10/12/2012 18:17:57.891 CCM|Ie - H225BearerCapabilityIe -- IEData= 04 03 80 90 A2 |
<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:57.891 CCM|Ie - Q931DisplayIe -- IEData= 28 00 |<CLID::StandAloneCluster><NID::
192.168.10.70><LVL::State Transition><MASK::0040> 10/12/2012 18:17:57.891 CCM|MMan_Id= 0. (iep= 0 dsl= 0 sapi= 0 ces= 0 IpAddr=10aa8c0
IpPort=1720)|<CLID::StandAloneCluster><NID::192.168.10.70><LVL::State Transition><MASK::0040>10/12/2012 18:17:57.891 CCM|IsdnMsgData1= 08 02 80 03 07 04 03 80 90 A2 28 00 7E 00…
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
Debug h225 asn1: 002338: Oct 12 17:17:57.883: H225.0 OUTGOING PDU ::= h323-message-body connect : h245Address ipAddress : { ip 'C0A80A01'H > 192.168.10.1 H.323 port 60695 } callIdentifier { guid '0029AFCF43C1810703000301C0A80A5A'H }
Cisco Confidential 28 © 2011 Cisco and/or its affiliates. All rights reserved.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
• Conceptos
• Mensajes
• SDP
• Delay Offer
• Early Offer
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
• Session Initiation Protocol (SIP) es un protocolo desarrollado por IETF, para la iniciación, modificación y finalización de sesiones interactivas de video, voz, mensajería instantánea entre otros
• Basado en HTTP y SMTP, protocolos utilizados en Internet, esta base, para que la telefonía sea un servicio más en Internet
• Trabaja en el puerto 5060 y puede ser TCP o UDP
• Dispositivos SIP: Terminal, Gateway
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
• INVITE
• TRYING
• RINGING
• 200 OK
• ACK
• CANCEL
• NOTIFY
• REGISTER
• UPDATE
• REFER
• 1xx
• 2xx
• 4xx
• 5xx
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
• Session Description Protocol (SDP), es un protocolo para describir los parámetros de inicialización de los flujos multimedia.
• SDP está pensado para describir sesiones de comunicación multimedia cubriendo aspectos como anuncio de sesión, invitación a sesión y negociación de parámetros.
• Comenzó como componente del SAP (Session Announcement Protocol), pero encontró otros usos en conjunto con RTP (Real-time Transport Protocol), SIP y como formato independiente para describir sesiones multicast.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
• No se envía SDP (Session Description Protocol) en el INVITE
• En envia SDP en el INVITE
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
• Debugs importantes para soportar SIP, son los siguientes: debug ccsip messages debug ccsip events
• Debugs adicionales: debug ccsip error debug ccsip media debug ccsip info
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
• Trazas de Cisco CallManager En modo detallado Sin filtros
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
• CUCM Envía el INVITE hacia el Gateway:
Traza SDI:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
• CME Recibe el INVITE del CUCM:
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
• CME Responde Trying
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
• CME Envía Ringing
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
• CME Envía 200 OK con SDP
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
• CUCM Recibe 200 OK con SDP
Traza SDI:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
• CUCM Envía ACK con SDP
Traza SDI:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
• CME Recibe ACK con SDP
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45
• CME Envía Bye para terminar la llamada
Debug ccsip messages:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
• CUCM Recibe Bye y envía el ACK para finalizar
Traza SDI:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47
• CME Recibe el ACK al Bye
Debug ccsip messages:
Cisco Confidential 48 © 2011 Cisco and/or its affiliates. All rights reserved.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 49
Cisco Confidential 50 © 2011 Cisco and/or its affiliates. All rights reserved.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 51
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 52
• Utilizar ‘debug voip ccapi inout’
• Utilizar NTP en todas las cajas
• Colocar tiempo local
• Agregar líneas de secuencia
• Enviar la salida a buffer o a un syslog
• Recompilar datos de la llamada Número que llama Número llamado Dispositivos que intervienen en la llamada, como gateways, firewalls, Call Processors, etc.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53
• Configuración típica
service timestamps debug datetime local msec service timestamps log datetime local msec service sequence no logging console no logging monitor no logging rate-limit no logging queue-limit logging buffer 3000000 debug
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 54
• CUCM Serviceability > Trace > Configuration:
• Seleccionar el/los servidor(es) que manejan: Registro de los dispositivos (IP Phones, Route List, MTPs, Transcoders, etc) Proceso H.225D
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 55
• “Debug Trace Level” a nivel de detalle para SDI:
• Filtros deberán quedar configurados de la siguiente manera:
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 56
Cisco Confidential 57 © 2011 Cisco and/or its affiliates. All rights reserved.
Thank you.