Page 131
Chapter 6 Configuring and Debugging Fax Services
Debugging the Cisco ATA 186/188 Fax Services
Step 3 At the DOS prompt of this directory, enter the following command:
:>rtpcatch <cap_file> [<prefix>] [options]
–<cap_file> is the NAI Sniffer capture file.
–<prefix> is the prefix prepended to the output filenames.
Output Files
The output files of rtpcatch include a summary file and audio stream files.
The summary file is <prefix>.sum if <prefix> is specified, otherwise it is file.sum.
Stream files are labeled with an integer tag beginning with 00. Stream files are also tagged with the extension pcm for G.711A/G.711µ-law, 723 for G723.1, 729 for G729, t38 for T.38, and cfr for Cisco Fax Relay.
Options
rtpcatch options include:
•-fax—to output the fax events for a connection.
The output includes "FAX summary 1" as the interleaved event list for all directions, and "FAX summary 2" as the event list for each direction. The reported events include voice codec change, NSE signalling, and fax relay events.
•-port <port0> <port1>—to discard any packets sent from/to this port.
If the NAI Sniffer capture file includes Cisco ATA prserv packets, these packets can interfere with rtpcatch analysis. Some prserv packets might be interpreted as NTE or NSE events. To prevent such interference, you can either disable debugging output on the Cisco ATA (do this by setting the Nprintf configuration parameter to 0), configure your NAI Sniffer to filter out the prserv packets, or run rtpcatch with the -port options.
Note rtpcatch works best for analyzing a single VoIP session. Command-line options can be entered in any order.
Example of rtpcatch
The section contains an example of using rtpcatch and includes an explanation of its output:
Output
C:\>rtpcatch faxpassthru -fax | | | |
[ | 25]open file: 00.723, (G723) 2.213:10000 => | 2.116:10002 |
[ | 26]open file: 01.723, (G723) 2.116:10002 => | 2.213:10000 |
[ | 29] | <00> | 1 | silence pkts from | TS 1760 (seq# | 3) |
[ | 42] | <00> | 2 | silence pkts from | TS 4400 | (seq# | 9) |
[ | 47] | <00> | 2 | silence pkts from | TS 5600 | (seq# | 11) |
[ | 55] | <00> | 2 | silence pkts from | TS 7760 | (seq# | 15) |
[ | 101]open file: 02.pcm, (G711u) | 2.116:10002 => 2.213:10000 |
[ | 106] | <02> | 2 | lost pkts from | seq# 39 | | |
[ | 107]open file: 03.pcm, (G711u) | 2.213:10000 => 2.116:10002 |
[ | 110] | <03> | 1 | silence pkts from | TS 19440 (seq# 41) |
Cisco ATA 186 and Cisco ATA 188 Analog Telephone Adaptor Administrator’s Guide for MGCP (version 3.0)
Contents
Text Part Number OL-4803-01
Corporate Headquarters
Copyright 2003, Cisco Systems, Inc All rights reserved
Iii
N T E N T S
Safety Recommendations
Dhcp
CA0UID CA1UID
Vii
NPrintf TraceFlags
Viii
Installation and Upgrade Issues
This preface includes the following sections
Objectives
Audience
Chapter Description
Organization and Use
Conventions
Organization
Bewaar Deze Instructies
Xii
Warnung Wichtige Sicherheitshinweise
Avvertenza Importanti Istruzioni Sulla Sicurezza
Xiii
Aviso Instruções Importantes DE Segurança
Xiv
Related Documentation
Use this guide in conjunction with these documents
Ordering Documentation
Obtaining Documentation
Cisco.com
Documentation CD-ROM
Xvi
Obtaining Technical Assistance
Documentation Feedback
You can order Cisco documentation in these ways
Xvii
Technical Assistance Center
Cisco TAC Website
Cisco TAC Escalation Center
Xviii
Obtaining Additional Publications and Information
Cisco Analog Telephone Adaptor Overview
Pstn
Overview of Media Gateway Control Protocol
Link LED
Hardware Overview
Function Button
Voice Codecs Supported
Software Features
Cisco ATA supports the following protocols and services
Mgcp Versions
729A 729B 729.AB
Additional Supported Signaling Protocols
Cisco ATA Mgcp Services
Other Supported Protocols
Service Parameter
Fax Services
Supplementary Services that the Cisco ATA Provides
Supplementary Services that the Call Agent Provides
Action Reference
Installation and Configuration Overview
Signaling image by using the Tftp server-upgrade method or
Manual-upgrade method
OL-4803-01
Installing the Cisco ATA
What the Cisco ATA Package Includes
Safety Recommendations
Network Requirements
What You Need
Installation Procedure
5V power adaptor Power cord
Cisco ATA 186 Rear Panel Connections
Procedure
Installing the Cisco ATA Installation Procedure
Power-Down Procedure
Configuring the Cisco ATA for Mgcp
Default Boot Load Behavior
Page
Bits
VLANSetting
Feature
Parameter and Bits Reference
Hexadecimal format, this value is 0x01cc002b
Steps Needed to Configure the Cisco ATA
Basic Configuration Steps in a Tftp Server Environment
Action Reference
Tftp server at boot up time
Action
Basic Configuration Steps in a Non-TFTP Server Environment
Configurable Features and Related Parameters
Configuring the Cisco ATA Using a Tftp Server
Setting Up the Tftp Server with Cisco ATA Software
Creating Unique and Common Cisco ATA Configuration Files
Syntax
Save this file of Cisco ATA-specific parameters as
Cfgfmt -mgcp -tptag.datata0a141e28323c.txt ata0a141e28323c
Using atapname.exe Tool to Obtain MAC Address
Command Output
Using Encryption With the cfgfmt Tool
Command Example
Non-zero
Total Binary Output Size
Syntax Definitions-Required Parameters
Syntax of the cfgfmt tool follows
Syntax Definitions-Options
Syntax examples
Examples of Upgrading to Stronger Encryption Key
Ata102030405060 is unencrypted
Atadefault.cfg Configuration File
Using a Dhcp Server,
Using a Dhcp Server
Other Dhcp Options You Can Set
Without Using a Dhcp Server
Voice Configuration Menu
Voice Menu Number Features
Using the Voice Configuration Menu
Voice Menu Number
Entering Alphanumeric Values
Key Alphanumeric Characters
Cisco ATA Web Configuration
Resetting the Cisco ATA to Factory Default Values
Cisco ATA Web Configuration
Refreshing or Resetting the Cisco ATA
Procedure to Reset the Cisco ATA
Upgrading the Mgcp Signaling Image
Procedure to Refresh the Cisco ATA
Cisco ATA-Supported Mgcp Services
Required Parameters
Important Basic Mgcp Services
Setting the Codec
Configuring Refresh Interval
Endpoints and Connections
Additional Mgcp Services
Syntax Type
Call Agent Redundancy with Configuration Parameters
Mgcp Endpoint Device Type
Cisco ATA Registration Process with Mgcp
Rsip Message for Disconnect State
Complete Reference Table of all Cisco ATA Mgcp Services
Configurable Feature Related Parameter
Related CIsco ATA Parameter
Supported Signals and Events
Supported Mgcp Connection Modes
Supported Local Connection Options
Code Description Type
Intermittent dial tone Timer Dtmf input
NCS 1.0 L-Package Supported by the Cisco ATA with Mgcp
Wt1, wt2, wt3, wt4 Call-waiting tone Dtmf tones wildcard
Mgcp 0.1-1.0 L-Package Supported by the Cisco ATA with Mgcp
Mgcp 0.1-1.0 G-Package Supported by the Cisco ATA with Mgcp
Operation failed Rbk### Rt@connection id
Commands Supported with Mgcp
Mgcp 0.1-1.0 D-Package Supported by the Cisco ATA with Mgcp
Parameter Usage
Parameters in Commands Sent to the Call Agent
Parameters in Responses Sent to the Call Agent
Mgcp Embedded Events
Example HdA, ESdl, Roc, 0-9#TD, D1xxxxxxxxxx9011x.T
OL-4803-01
Parameters and Defaults
IP address e.g Integer 32-bit integer Numeric digit string
Configuration Text File Template
Range
UIPassword
User Interface UI Security Parameter
Value Type
UseTFTP
Parameters for Configuration Method and Encryption
905
TftpURL
CfgInterval
Maximum 31 characters
EncryptKey
EncryptKeyEx
Not applicable for this parameter
Network Configuration Parameters
Range Default
IP address
Voice Configuration Menu Access Code Related Parameters
StaticIp
StaticRoute
916
StaticNetMask
255.255.255.0
Related parameter
Vlan Setting
Examples
Mgcp Configuration Parameters
CA0orCM0
Specify the ID of the primary Call Agent in this parameter
CA1orCM1
Value Types
Voice Configuration Menu Access Codes
EPID0orSID0 and EPID1orSID1
Integer
PrfCodec
LBRCodec
201
MGCPPort
300
2427
RetxLim
MediaPort
RetxIntvl
Alphanumeric
MGCPVer
Domain
205
931
Audio Configuration Parameters
CodecName
Bit Number Definition
Default Names
AudioMode
CallerIdMethod
Operational Parameters
NumTxFrames
Parameters and Defaults Operational Parameters
FXSOutputLevel
FXSInputLevel
311
ConnectMode
371
0x90000400
Bit Number
SigTimer
0x2
OpFlags
Bit Number Definition
255
Tone Configuration Parameters
0x000068B8
Each tone is specified by nine integers, as follows
Tone Parameter Syntax-Basic Format
Each tone is specified by 11 integers, as follows
Tone Parameter Syntax-Extended Formats
Extended Format a
Cadence With Two On-Off Pairs
Extended Format B
Cadence with Three On-Off Pairs
ReorderTone Parameter Example1
Component Setting Explanation
ReorderTone Parameter Example
DialTone
Default values using the Basic format
Recommended Values
Specific Tone Parameter Information
ReorderTone
BusyTone
923
RingbackTone
CallWaitTone
922
925
AlertTone
OffTime-2400 TotalToneTime-4800
924
NPrintf
Diagnostic Parameters
Default Recommended Values
RingCadence
0x00000000
TraceFlags
SyslogIP
Extended IP address
Bit Number Type of Messages to Trace
SyslogCtrl
RTP statistics messages Reserved
CFGID-Version Parameter for Cisco ATA Configuration File
OL-4803-01
Using Fax Pass-through Mode
Configuring and Debugging Fax Services
AudioMode
Configuring the Cisco ATA for Fax Pass-through mode
Fax Pass-through mode requires configuring two parameters
This setting translates to the following bitmap
ConnectMode
Configuring Cisco IOS Gateways to Enable Fax Pass-through
Recommended Setting
This setting translates to the bitmap
Run the following command
Enable Fax Pass-through Mode
Perform the command
Disable Fax Relay Feature
Configuring the Cisco ATA for Fax Mode
Using FAX Mode
Problem Action
Debugging the Cisco ATA 186/188 Fax Services
Configuring the Cisco IOS Gateway for Fax Mode
Common Problems When Using IOS Gateways
Port
Using prserv for Diagnosing Fax Problems
Cisco ATA, and 0x0012XXXX for the Phone 2 port
For fax pass-through mode, AudioMode should be set to
Analyzing prserv Output for Fax Sessions
Prserv Overview
Encoded for channel
Log event Description
Decoding timestamp was set to timestamp2
That the first RTP packet that the Cisco ATA received was
Possible Reasons for Failure
Originating-Gateway Example
To use rtpcatch, follow these steps
Using rtpcatch for Diagnosing Fax Problems
Rtpcatch Overview
Output Files
Example of rtpcatch
Explanation
CED tone Detected
Both sides use G.711 for the entire fax session
Fax relay mode Cisco fax relay mode
Analyzing rtpcatch Output for Fax Sessions
Analysis
Example 6-3 Fax Pass-through Mode
Using rtpcatch to Analyze Common Causes of Failure
Possible Cause for Failure
Cisco fax relay option is not disabled on the gateway
Possible Causes for Failure
Example 6-9 Fax Pass-through Mode Failure
Rtpcatch Limitations
Definitions
Upgrading the Signaling Image from a Tftp Server
Syntax of upgradecode Parameter
Process
Upgrading the Signaling Image Manually
Upgradecode parameter value could be
Syntax
Upgrade Requirements
Preliminary Steps
Running the Executable File
To perform the upgrade, follow these steps
Upgrade Procedure
Using a Web Browser
Confirming a Successful Signaling Image Upgrade
OL-4803-01
General Troubleshooting Tips
Troubleshooting
Symptoms and Actions
Installation and Upgrade Issues
Debugging
2* 1 1* 2* 8* 1 1* 7* 8* 1 1* 9* 0* 1 1* 9* 0* 0
You should also have access to a sniffer or LAN analyzer
Syntax Definitions
Using System Diagnostics
Message Syntax
PriorityTimeOffset Ataip tag chMessage
Example-TFTP messages
Example-ARP Message
Example-DHCP Messages
Example-Cisco ATA Event Messages
Example-Cisco ATA Configuration Update Message
Example-System Reboot Message
Example-RTP Statistic Messages
Local Tone Playout Reporting
Example-Fax Event Messages
Tone Type ID Description
Bit Number Description Boolean Value
Obtaining Network Status After Getting IP Connectivity
Bit Number Description
Checksum error for configuration file
Cisco ATA failed to upgrade to the downloaded image file
Configuration file is not found
Bad configuration file
Real-Time Transport Protocol RTP Statistics Reporting
Dhcp Status Html
Ring Load per RJ-11 FXS Port Maximum Distance
Frequently Asked Questions
Resetting Cisco ATA counters
Contacting TAC
OL-4803-01
Voice Menu Option Code Description
Table A-1lists codes to return basic Cisco ATA information
DNS 2 IP
916 IP address of the primary DNS server
Tftp URL
OL-4803-01
Specification
Physical Specifications
This section describes Cisco ATA specifications
Dimensions Weight
Physical Interfaces
Electrical Specifications for Cisco ATA
Environmental Specifications
Description Specification
Tip/ring interfaces for each RJ-11 FXS port Slic
Ringing Characteristics
Software Specifications
Appendix B Cisco ATA Specifications Software Specifications
Sccp
OL-4803-01
Mgcp Call Flows
Appendix C Mgcp Call Flows
Step Action Log
OK-Cisco ATA 2 to Call Agent
Cisco ATA 1 dials 6-Cisco ATA 1 to Call Agent
Cisco ATA 2 phone rings and displays Cisco ATA 1 ID on CID
Device-Call Agent to Cisco ATA
Ringback stops on Cisco ATA 1-Call Agent to Cisco ATA
Routing Update Protocol RTP Media stream is now enabled on
RTP Media stream is now enabled on Cisco ATA 1. Both
Cisco ATA 2-Call Agent to Cisco ATA
Agent to Cisco ATA
ATA 2 Connection mode changes to receive-only-Call Agent to
Cisco ATA 2 hangs up-Cisco ATA 2 to Call Agent
Cisco ATA 2 Connection is deleted-Call Agent to Cisco ATA
Recommended Cisco ATA Tone Parameter Values by Country
OL-4803-01
Table D-1 Argentina
Table D-5 Brazil
Table D-9 Czech Republic
Table D-13 France
Table D-17 Hungary
Table D-21 Ireland
Table D-25 Korea
Table D-29 Netherlands
Table D-33 Panama
Table D-37 Portugal
Table D-41 Slovakia
Table D-45 Sweden
Parameter Recommended Values
OL-4803-01
GL-1
GL-2
GL-3
GL-4
GL-5
Signaling connection control part
Messages can be part of Sgcp and Mgcp messages
GL-6
GL-7
Business-class services for Internet telephony
Traffic
Allow you to define your own customized markup language
GL-8
IN-1
Bootload
Codec negotiation in sending fax
Codecs Cabling requirements LBRCodec Call Agent Supported
IN-2
CallerIdMethod CfgInterval CodecName ConnectMode Dhcp
EncryptKey
IN-3
IN-4
Debugging Services
Fax mode 6-1,6-6 Configuration
Fax relay disabling
IN-5
IN-6
Cisco ATA RSIP*@ipaddress syntax setting
RTP payload type RTP statistics reporting
IN-7
IN-8