Background
While troubleshooting no audio problems with IP phones it may come in handy to enable an rtp debug directly on the ip phone. This other document explains how to login to an ip phone for debugging.
Enable the Debug
First access debugsh mode.
$ debugsh
With the keyword debug you can display the different debugs available at the ip phone.
0021555384FA> debug
The following subcommands are available under 'debug':
debug all
Enable/Disable all debugging
debug dhcp
Enable dhcp process debug settings
debug cdp
Enable cdp process debug settings
debug flashfs
Enable flashfs process debug settings
debug dsp
Enable dsp process debug settings
debug dns
Enable dns process debug settings
debug inetd
Enable inetd process debug settings
debug jvm ALL
NOTICE
debug jvm AppStatus
NOTICE
debug jvm AutoService
NOTICE
debug jvm Application
NOTICE
debug jvm CallUI
NOTICE
debug jvm Config
NOTICE
debug jvm Component
NOTICE
debug jvm Http
NOTICE
debug jvm MediaManager
NOTICE
debug jvm Localization
NOTICE
debug jvm Graphics
NOTICE
debug jvm MIDP-LCDUI
NOTICE
debug jvm MIDP-MIDlet
NOTICE
debug jvm MIDP-Media
NOTICE
debug jvm MIDP-RMS
NOTICE
debug jvm MIDP-PushRegistry
NOTICE
debug jvm MIDP-MIDletSuite
NOTICE
debug jvm MIDP-IO
NOTICE
debug jvm CallAgent
NOTICE
debug jvm SCCP
NOTICE
debug jvm PushService
NOTICE
debug jvm Services
NOTICE
debug jvm SideCar
NOTICE
debug jvm Settings
NOTICE
debug jvm Security
NOTICE
debug jvm SubscriptionFramework
NOTICE
debug jvm Tftp
NOTICE
debug jvm System
NOTICE
debug jvm Util
NOTICE
debug jvm XML
DEBUG
debug jvm Video
NOTICE
debug jvm UserIO
NOTICE
debug jvm StartUp
NOTICE
debug jvm Properties
NOTICE
debug init
Enable init process debug settings
debug ntp
Enable ntp process debug settings
debug secd
Enable secure daemon debug settings
debug process
Enable process process debug settings
debug ui
Enable UI debug setting
debug tftpClient
Enable tftpClient process debug settings
debug netkern
Enable netkern process debug settings
debug imageauth
Debug imgauthd process
For this specific case we would like to enable the following debugs.
0021555384FA> debug dsp rtp
Sending SIGUSR2 to dsp
0021555384FA> debug jvm MediaManager
0021555384FA> debug jvm SCCP
/usr/local/trace/log.propertiesSuccessfully executed the command.
After you have enabled the debugs that interest you, exit the debug subsystem by quitting.
0021555384FA> quit
/usr/local/trace/log.propertiesSuccessfully executed the command.Exiting shell...
Logging out...
Use the command strace to begin the debugging session. The following is an example of the output.
$
$ strace
strace: PID = 23, ver A
|=== Syslogd === Tue Feb 8 14:57:40 2011
====================================================
NOT 14:57:40.295775 JVM: Startup Module Loader|cip.cfg.r:? - CUCM in config file: #1 XmlCallAgentObject: IPv4-name=
NOT 14:57:40.297314 JVM: Startup Module Loader|cip.cfg.r:? - CUCM in config file: #2 XmlCallAgentObject: IPv4-name=
NOT 14:57:40.298917 JVM: Startup Module Loader|cip.cfg.r:? - CUCM in config file: #3 XmlCallAgentObject: IPv4-name=
NOT 14:57:40.300882 JVM: Startup Module Loader|cip.cfg.r:? - CUCM in config file: #4 XmlCallAgentObject: IPv4-name=
DBG 14:57:40.302438 JVM: Startup Module Loader|cip.sec.CapfProperty:? - CAPF IPv4 :CAPF IPv6 :CAPF Mode :0CAPF Port
ERR 14:57:40.304045 JVM: Startup Module Loader|cip.sec.CapfProperty:? - Failed to resolve Capf Ipv4 Address with ho
ERR 14:57:40.305792 JVM: Startup Module Loader|cip.sec.CapfProperty:? - Failed to resolve Capf Ipv6 Address with ho
DBG 14:57:40.307761 JVM: Startup Module Loader|cip.sec.CapfProperty:? - CAPF IPv4 :CAPF IPv6 :CAPF Mode :0CAPF Port
ERR 14:57:40.309298 JVM: Startup Module Loader|cip.sec.CapfProperty:? - No valid CAPF server
NOT 14:57:40.311526 JVM: Startup Module Loader|cip.cfg.r:? - Config processConfigNoError() result code=CONFIG_FILE_
NOT 14:57:40.314206 SECD: setSecMode: sec mode set to NONE (was NONE)
NOT 14:57:40.604631 JVM: Startup Module Loader - Deletion of file Successful/usr/ram/SEP0021555384FA.cnf.xml
Collect the previous output and report it back to the TAC center.