Beruflich Dokumente
Kultur Dokumente
Module Objectives
► Troubleshoot AudioCodes’ products using the relevant tools from the variety
of available utilities.
► Collecting data
Understanding the Problem
► There is no need to use the Complete ini file; all information can be
obtained from the regular ini file
In this example
8 messages were lost
Enabling Syslog
[Syslog]
SyslogServerIP = 192.168.2.35
EnableSyslog = 1
SyslogServerPort = 514
Enable SIP Traces
GwDebugLevel = 5
Enable MGCP / MEGACO Traces
MGCPDebugMode = 3
Online Syslog - Web
Location of
Syslog file
ACSyslog (cont.)
Create separate
Syslog files
Syslog Call Example
► Capture Interfaces
► Select the network interface that is currently being used by the PC
Capture Options
Filter Bar
► Different colors can be assigned for each protocol for better visualization.
► The Coloring list is processed until a match is found, therefore place
general rules (like TCP and UDP) at the bottom of the list
Generating Call Flow
► Wireshark can be used to analyze the RTP data stream and extract the
audio from the data packets (only for G.711).
► From the Main menu select Statistics RTP Stream Analysis
Extracting the Audio
► Can be used to record the actual voice signal that arrives from the
TDM (before it enters the DSP)
► Use the filter ‘acdr’ (on Wireshark version 0.99.4) to view the DR
messages
DR General Notes
► To stop the DR, enter the command STOP in the command shell
Debug Recording
► PSTN messaging
► TDM audio
► IP audio
► DSP / Host related operations and messaging
► Control Protocol signalling, syslog messaging
► More!
Debug Recording Trace Points
Info
events
Megaco
MPC MGCP
TPNCP
…
DSP (HPI)
PSTN
TDM Net IP
PCM DSP
Q931 RTP
CAS RTCP
T38
Where are traces captured?
1. Close Wireshark
2. Open the ‘plugin’ directory for the version of Wireshark currently installed
on the hard drive
► C:\Progarm Files\Wireshark\plugins\0.99.4
3. Unzip or copy the AudioCodes supplied files to the directory above
4. Start Wireshark
► CLI
► Recording is done using targets & trace rules which are entered
at the command line on the gateway
► Each trace rule is associated with a target (server)
► Multiple targets and rules are supported
► A target is a pc/laptop running Wireshark with the
AudioCodes plugins
► To capture PSTN signaling, configuration in the ‘Trunk Trace’
page of the web interface is still required
► Access the CLI through telnet or the ‘/FAE’ page in the web
interface
► Change directory from the top level to the ‘DebugRecording’
level to access commands for configuring and executing Debug
Recording trace
Basic Commands
► Target
► AddIPTarget
► RemoveTarget
► ListTargets
► SetDefaultTarget
► General
► StartRecording
► StopRecording
► RemoveTraceRule
► ListTraceRules
Working with Targets
► RemoveTraceRule
► ListTraceRules
► AddIPControlTrace
► AddPstnSignalingTrace
► AddNextCallTrace
► AddTrunkBchannelTrace
► AddIPTrafficTrace
► AddChannelIdTrace
Adding and Removing Trace Rules
► AddIPControlTrace
► Add IP Control Trace Usage:
► AIPCT TracePoint ControlType [DebugTarget]
► TracePoint - <Net2Host|Host2Net>
► ControlType - <MEGACO|MGCP|TPNCP|SIP>. SIP is recorded
in both trace points
► DebugTarget - defaults to default debug target, see 'ListTargets‘
► Example:
► AIPCT n2h sip
AddIPControlTrace Trace Points
Info
events
Megaco
MPC MGCP
SIP
DSP (HPI)
PSTN
TDM Net IP
PCM DSP
Q931 RTP
CAS RTCP
T38
PSTN trace
► AddPstnSignalingTrace
► Add PSTN Signaling Trace Usage
► APST PacketType [DebugTarget]
► Packet Type - <CAS|ISDN|SS7>
► Example:
► APST ISDN
AddPstnSignalingTrace Trace Points
Info
events
Megaco
MPC MGCP
TPNCP
…
DSP (HPI)
PSTN
TDM Net IP
Q931 DSP
CAS RTP
NO AUDIO RTCP
T38
AddNextCallTrace for RTP + PCM traffic
► AddNextCallTrace
► Add Next Call Trace Usage:
► ANCT PacketType NumOfCalls [TraceType] [DebugTarget]
► Packet Type - <ALL|ALL-WITH-PCM>. record all media packet
types with or without PCM
► NumOfCalls - amount of next media calls to record
► TraceType - <New|Dynamic>.
► New (defualt) - only the next NumOfCalls new calls will be
recorded.
► Dynamic - active and new calls will be recorded dynamically
until filter is removed.
► DebugTarget - defaults to default debug target, see 'ListTargets’
AddNextCallTrace Trace Points
Info
events
Megaco
PACKET TYPE MPC MGCP
TPNCP
“ALL” …
DSP (HPI)
PSTN
TDM Net IP
PCM DSP RTP
Q931 RTCP
CAS T38
AddNextCallTrace Trace Points
Info
events
Megaco
PACKET TYPE MPC MGCP
TPNCP
“ALL-WITH-PCM” …
DSP (HPI)
PSTN
TDM Net IP
PCM
DSP
RTP
RTCP
T38
Notes on Next Call Trace
► Each time ‘Start’ and ‘Stop’ are toggled, the counter for the next ‘n’ number
of calls defined in the trace rule is reset
► The rule does not have to be re-entered after stopping and starting the
debug recording
ALL vs ALL-WITH-PCM
► AddIPTrafficTrace
► Transport type and\or source\destination
► AddTrunkBchannelTrace
► Record range of channels according to trunk\B Channels
► AddChannelIdTrace
► Record range of channels according to CID
Start recording:
=> START
START
recording started
Stop recording:
=> STOP
STOP
recording stopped
What exactly do I have to do?
Packets have an
AudioCodes Debug
Recording Header in
the UDP packet
► Follow the same procedures for extracting audio from Debug Recording
traces as for standard network traces using WireShark.
► PCM audio can be saved off and listened to in the appropriate G.711 format
without any modification
► IP audio may have to be converted (i.e. G.729) or otherwise manipulated to
be played back
Chapter 13 – Student Notes