VoIP debug commands

June 3, 2007 at 1:09 am | Posted in VoIP | 1 Comment

We should timestamp the debug outputs with miliseconds, so that we can easily map the events shown on different Cisco devices.

CE1(config)#service timestamps debug datetime ?
  localtime      Use local time zone for timestamps
  msec           Include milliseconds in timestamp
  show-timezone  Add time zone information to timestamp
  year           Include year in timestamp
  <cr>

CE1(config)#service timestamps debug datetime msec

CE1#debug vtsp dsp
This CLI command is now ‘debug voip dsm dsp’
CE1#debug voip ?
  aaa           VoIP AAA
  ais           AIS (Application Information System)
  application   Application Framework library debugging
  avlist        avlist debugs
  call          Voice call debugging
  ccapi         Call Control API
  dcapi         Device Control API
  dialpeer      dialpeer debugging
  dsm           DSP Stream Manager Debugs
  dsmp          Distributed Streams Media Processor
  dspapi        Generic DSP API
  eddri         eddri debug
  enum          ENUM information
  event-log     Event logging
  hpi           HPI (54x) DSP messages
  profile       debug voip profile
  rawmsg        Raw Message
  register      voice-register debug information
  rtcp          Enable VOIP RTCP debugging trace
  rtp           Enable VOIP RTP debugging trace
  source-group  Source-group debugging
  srtcp         Enable VOIP SRTCP debugging trace
  srtp          Enable VOIP IOS SRTP debugging trace
  statistics    Voice Statistics
  translation   Debug translation rules
  tsp           Telephony Service information
  uri           Debug Voice URI
  vtsp          Voice Telephony Call Control information

CE1#debug voip dsm ?
  all      Enable All DSM debugging
  dsp      Enable dsp message trace
  error    Enable DSM error debugging
  session  Session Debugging
  stats    Stats Debugging
  tone     Tone Debugging

CE1#debug voip dsm dsp
DSP Stream Manager dsp debugging is on

Debug call legs, signalling information

CE1#debug voip ccapi ?
  all           Enable all debugs
  default       Enable default debugs
  detail        detail debug
  error         major call and software errors debug
  function      function debug
  individual    individual CCAPI debug
  inout         CCAPI Function in (enter) and out (exit)
  protoheaders  CCAPI protocol headers/bodies passing info
  service       service debug
  <cr>

CE1#debug voip ccapi inout
voip ccapi inout debugging is on
show dial-peer voice summary
CE1#sh dial-peer voice summary
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT
100    pots  up   up             200                0                      up   2/0
101    pots  up   up             201                0                      up   2/1
86868- voip  up   up             86868648           1  syst ipv4:202.86.50.100 
648  
Check what dial-peer a number will be matched to.

show dialplan number xxxxx

CE1#show dialplan number 201
Macro Exp.: 201

VoiceEncapPeer101
        peer type = voice, information type = voice,
        description = `’,
        tag = 101, destination-pattern = `201′,
        answer-address = `’, preference=0,
        CLID Restriction = None
        CLID Network Number = `’
        CLID Second Number sent
        CLID Override RDNIS = disabled,
        source carrier-id = `’, target carrier-id = `’,
        source trunk-group-label = `’,  target trunk-group-label = `’,
        numbering Type = `unknown’
        group = 101, Admin state is up, Operation state is up,
        Outbound state is up,
        incoming called-number = `’, connections/maximum = 0/unlimited,
        DTMF Relay = disabled,
        URI classes:
            Destination =
        huntstop = disabled,
        in bound application associated: ‘DEFAULT’
        out bound application associated: ”
        dnis-map =
        permission :both
        incoming COR list:maximum capability
        outgoing COR list:minimum requirement
        Translation profile (Incoming):
        Translation profile (Outgoing):
        incoming call blocking:
        translation-profile = `’
        disconnect-cause = `no-service’
        advertise 0x40 capacity_update_timer 25 addrFamily 0 oldAddrFamily 0
        type = pots, prefix = `’,
        forward-digits default
        session-target = `’, voice-port = `2/1′,
        direct-inward-dial = disabled,
        digit_strip = enabled,
        register E.164 number with H323 GK and/or SIP Registrar = TRUE
        fax rate = system,   payload size =  20 bytes
        supported-language = ”

        Time elapsed since last clearing of voice call statistics never
        Connect Time = 4733, Charged Units = 0,
        Successful Calls = 2, Failed Calls = 1, Incomplete Calls = 0
        Accepted Calls = 9, Refused Calls = 0,
        Last Disconnect Cause is “10  “,
        Last Disconnect Text is “normal call clearing (16)”,
        Last Setup Time = 15828582.
Matched: 201   Digits: 3
Target:
H.323

H.225 call setup, TCP port 1720, similar to A.931
H.245 capability exchange (Codec, Media, Channel etc), TCP pot 11000+
Media (UDP), RTP port 16384-32767 (Odd+Even ports per session)
debug ras

CE1#debug ras
H.323 RAS Messages debugging is on

show interaction with gatekeeper

Advertisements

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. […] VoIP debug commands | Cisco Notepad – Jun 03, 2007 · We should timestamp the debug outputs with miliseconds, so that we can easily map the events shown on different Cisco devices. CE1(config)#service …… […]


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: