Cisco IOS Fax and Modem Services Over IP Application Guide: Release 12.4 (4) T October 2005
Cisco IOS Fax and Modem Services Over IP Application Guide: Release 12.4 (4) T October 2005
Application Guide
Release 12.4(4)T
October 2005
Corporate Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 526-4100
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT
SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE
OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public
domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH
ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF
DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
q g g g y g g y y
iQuick Study are service marks of Cisco Systems, Inc.; and Access Registrar, Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, the Cisco
Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Empowering the Internet Generation,
Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, FormShare, GigaDrive, GigaStack, HomeLink, Internet Quotient, IOS, IP/TV, iQ Expertise, the iQ logo, iQ
Net Readiness Scorecard, LightStream, Linksys, MeetingPlace, MGX, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing,
ProConnect, RateMUX, ScriptShare, SlideCast, SMARTnet, StrataView Plus, TeleRouter, The Fastest Way to Increase Your Internet Quotient, and TransPath are registered
trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship
between Cisco and any other company. (0502R)
Contents 1-1
Contents 2-1
Contents 3-1
Contents 4-1
Contents 5-1
Contents 6-2
Contents 7-2
Contents 8-1
Contents 9-1
Contents A-1
This chapter describes how to access Cisco Feature Navigator. It also describes, by Cisco IOS release,
available features for Cisco IOS fax and modem services over IP.
• Platforms and Cisco IOS Software Images, page ix
• Cisco IOS Fax Services over IP Feature List, page ix
• Cisco IOS Modem Services over IP Feature List, page xi
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Table 1 Cisco IOS Fax Services over IP Features by Cisco IOS Release
Table 1 Cisco IOS Fax Services over IP Features by Cisco IOS Release (continued)
Table 1 Cisco IOS Fax Services over IP Features by Cisco IOS Release (continued)
Table 2 Cisco IOS Modem Services over IP Features by Cisco IOS Release
This application guide includes descriptions and configuration instructions for fax and modem
transmission capabilities on Cisco Voice over IP (VoIP) networks. It is written for developers and
network administrators who are installing, configuring, and maintaining fax and modem applications on
Cisco voice gateways.
Note For more information about Cisco IOS voice features, see the entire Cisco IOS Voice Configuration
Library; including library preface and glossary, feature documents, and troubleshooting information.
Contents
• Information About Cisco IOS Fax Services over IP, page 1-1
• Information About Cisco IOS Modem Services over IP, page 1-19
• Additional References, page 1-23
When receiving a fax, the fax machine uses its modem and printer to convert the incoming bits into black
and white images on paper.
The information conveyed in a fax transmission consists of both protocol (control information,
capabilities, identification) and document content. The document content consists primarily of the
document image plus additional metadata that accompanies the image. The means by which an image of
a document is encoded within the fax content is the image data representation.
When a fax has been sent successfully, the sender receives a confirmation that indicates that the fax
content was delivered. This confirmation is an internal signal and is not normally visible to the sending
user, although some error messages are visible to allow a page to be resent.
The ability to send the representation of a page to a remote location developed over a number of years.
The first images were sent over wires as early as 1843, but modern fax machines did not start appearing
in offices until the 1960s. At that time, a single-page letter took about six minutes to send over public
phone lines using the new Group 1 standard for transmission that was introduced by the International
Telegraph and Telephone Consultative Committee (CCITT) in 1968. The Group 2 standard, introduced
in 1976, reduced the time to send a page to three minutes, but still could not provide transmission at a
dense enough resolution for the clear reproduction of small print. In 1980, the Group 3 standard was
introduced. The Group 3 standard improved fax scanning resolution and introduced digital transmission
techniques to enable transmission rates of 14400 bits per second (bps). Group 3 fax machines are the
most common today by far. Group 4 is a standard for digital phone lines such as ISDN, and it operates
at 64 kbps. Each standard specifies special tones that identify calls as fax calls and enable handshaking
to define fax capabilities at both ends of the call. All of the fax standards have evolved with a goal of
sending more data faster over the public switched telephone network (PSTN).
The PSTN is composed of switched time-division multiplexing (TDM) circuits, which are either single
lines or trunks. A line connects a single telephony device to a switch, whereas a trunk connects a switch
to a switch. The network provides exclusive and full use of a circuit between two endpoints and is
full-duplex (simultaneous transmission in both directions), unless the call is data. Trunks are one of the
following types:
• Analog trunks, in which nearly all the audio is sent as an analog signal.
• Digital trunks that carry bit streams encoded by the G.711 codec and sent at 64 kbps. The bit streams
are also called pulse code modulation (PCM) streams.
Both circuit types have sufficient audio clarity, or dynamic range, to pass the tones required to send fax
traffic across PSTN circuits.
Fax traffic consists of digital data modulated onto high-frequency carrier tones. There are various ways
to modulate this information, such as Amplitude Modulation (AM), Frequency Modulation (FM) or
Frequency Shift Keying (FSK), and Phase Modulation (PM) or Phase Shift Keying (PSK). In order to
get higher bit rates (more information) across the same carrier circuit, these modulation techniques are
often combined into forms of modulation called Quadrature Amplitude Modulation (QAM) or
Trellis-Coded modulation.
The traditional facsimile transmission standard, also called Group 3 (G3) fax, describes implementations
of ITU-T T.30 and T.4. All Cisco IOS fax applications use T.30 and T.4 standards to interface with the
PSTN or fax device.
For a comprehensive list of fax and modem standards, see the “Standards” section on page 1-24,
Phase Description
Phase A—Establishing a Voice Call The calling party picks up a handset or prepares a fax and
then dials a destination phone or fax machine.
Phase B—Identifying Facilities and Facilities and capabilities are identified and negotiated
Capabilities between the calling and called parties.
Phase C—Transmitting Content The message or page is sent.
Phase D—Signaling End of Transmission The end of transmission and confirmation are signaled
and Confirmation between the calling and called parties.
Phase E—Releasing the Call The call is released when a phone or fax machine hangs up.
The call originator prepares a fax and dials a destination number. The destination fax device picks up the
call. The originator and the destination are now connected in a voice call, but to transition to fax
transmission one party must signal that it is a fax device. Either device can send its signal first, using
one of the following methods:
• The calling device sends a Calling Tone (CNG) to the destination device. The CNG identifies the
calling device as a fax machine. The CNG is a repeating 1100-Hz tone that is on for 0.5 seconds and
then off for 3 seconds.
• The called device sends a Called Station Identifier (CED) tone, which identifies the called device as
a fax machine. CED is a 2100-Hz tone that is on for 2.6 to 4 seconds.
Once these messages have been exchanged, the transaction can move to phase B.
The following sequence of events identifies facilities and capabilities for fax transmission:
1. The called device sends a Digital Information Signal (DIS), which describes the called fax
machine’s reception facilities, such as maximum page length, scan line time, image resolution, and
error correction mode. Many standard facilities are contained in the DIS message, and they are
defined in the T.30 specification.
2. The calling device examines the DIS message and in response sends a Digital Command Signal
(DCS) that tells the called device which facilities to select for the reception of the fax transmission.
3. The called device may also choose to send the following optional messages:
• Called Subscriber Identification (CSI) provides some detail as to the identity of the called
device.
• Non-Standard Facilities (NSF) informs the calling device that the called device may have some
extra features that can be utilized during the fax transmission.
4. The calling device can then choose to send a Transmitting Subscriber Identification (TSI) message.
Also, in response to an NSF message, the calling device can send a Non-Standard facilities Setup
(NSS) message to select extra reception parameters on the called device.
5. The calling device now sends the Training Check (TCF) message, which includes a stream of 0s for
about 1.5 seconds through the HS modulation that was agreed upon during the DIS-DCS handshake.
The called device then responds with a Failure To Train (FTT) if the modulation speed is not
acceptable or with a Confirmation to Receive (CFR) if the modulation speed is acceptable. Training
is a process that verifies the communication path.
6. Once the training has been completed and the modulation speed is agreed upon, the fax devices
move to phase C and start the transmission of T.4 page data using HS modulation.
Phase C is referred to as the In-message Procedure. During this phase, high-speed T.4 page data is sent
one line at a time. Each burst of line data is followed by an End Of Line (EOL) message. Because the
EOL information is sent as T.4 data, it would not necessarily be seen in a T.30 trace. When the sending
device has finished sending pages or wishes to return back to control mode, it sends 6 EOLs in a series
that constitutes a Return To Control (RTC) message. The RTC message indicates the end of phase C, and
the call progresses to phase D.
Note If the fax machines decide during phase B to use Error Correction Mode (ECM), the format of the data
sent during phase C may be different. With ECM, the T.4 page data is grouped into high-level data link
control (HDLC) frames rather than being sent in a raw stream. This means that if the HDLC blocks of
T.4 page data are not received error-free, a Partial Page Request (PPR) message can be sent, listing the
frames that were not received and asking for them to be resent. The details of the transmission
differences during phase C with ECM enabled are explained in Annex A of the T.30 specification.
After the T.4 transmission and the subsequent return to control mode, the sending device must send one
of the following signals:
• Partial Page Signal (PPS)—Devices that send faxes with ECM can send a PPS, which must be
acknowledged by a Message Confirmation (MCF) signal from the receiving device.
• End Of Procedure (EOP)—This signal indicates that transmission of pages is complete and that
there are no more pages to send. The EOP must be acknowledged with an MCF from the receiving
device, after which the devices can move to phase E.
Following the fax transmission and the postmessage transactions, either the calling device or the called
device can send a Disconnect (DCN) message, at which point the devices tear down the call, and the
telephony call control layer releases the circuit. DCN messages do not require a response from the
opposite device.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
This section describes the following aspects of the fax services available on Cisco IOS gateways:
• Concepts Related to Cisco Fax Services
• Fax Pass-Through and Fax Pass-Through with Upspeed
• Cisco Fax Relay
• T.38 Fax Relay
• T.37 Store-and-Forward Fax
• IVR Applications for Fax
A Cisco voice gateway provides an interface between the IP network and the public switched telephone
network (PSTN) or telephony (fax) device. When a call comes into the IP network over a gateway, that
gateway is called an originating gateway (OGW). Similarly, a gateway over which a call passes out of
the IP network is called a terminating gateway (TGW).
A traditional voice call over the PSTN uses a dedicated 64-kbps circuit end to end. In contrast, a voice
call over the packet network contains several discrete segments or call legs. A call leg is a logical
connection between two routers or between a router and a telephony device. A voice call comprises four
call legs, inbound into and outbound from both the OGW and the TGW.
Dial peers are software constructs that sort calls, route calls, and define characteristics applied to each
call leg in the call connection, based on call source and destination endpoints. Dial peers are used for
both inbound and outbound call legs. It is important to remember that these terms are defined from the
perspective of the router. An inbound call leg is created by any call that comes in to a router, regardless
of whether the router is an OGW or a TGW. An outbound call leg is created by any call that leaves a
router, regardless of whether the router is an OGW or a TGW, as shown in Figure 1-1.
Different types of dial peers handle different kinds of call legs. The following types of dial peers are used
for fax over Cisco IP networks:
• Plain old telephone service (POTS) dial peers handle call legs between a voice gateway and the
PSTN or a telephony device.
• Voice over IP (VoIP) dial peers handle call legs between a voice gateway and the IP network.
• Multimedia Mail over IP (MMoIP) dial peers handle call legs between a voice gateway and a Simple
Mail Transfer Protocol (SMTP) server or Extended SMTP (ESMTP) server.
Note For more information on voice gateways and dial peers, see Dial Peer Configuration on Voice Gateway
Routers.
Source Destination
IP network
V V
37207
Inbound call leg Outbound call leg Inbound call leg Outbound call leg
(POTS dial peer) (VoIP dial peer) (VoIP dial peer) (POTS dial peer)
TCL IVR
Tool Command Language (TCL) is used for scripts that direct interactive voice response (IVR)
applications, which are used in Cisco voice networks for various purposes. IVR applications typically
involve the real-time gathering of data from callers by means of digit collection and voice prompts. For
example, you might have a debit card application that asks a user to enter a personal identification
number (PIN) and then collects and verifies the digits that the user enters.
A gateway can have several IVR applications to accommodate different gateway services, and you can
customize IVR applications to present different interfaces to various callers. IVR applications are used
to implement the following fax services:
• T.37 Store-and-Forward Fax
• Fax Detection IVR Application
• Fax Rollover IVR Application
TCL scripts are provided on the Cisco Software Center website. You download them to a location that
is accessible to the voice gateway that is running the fax application and then configure the gateway with
the name and location of the script.
Note For more information on TCL IVR, see the Cisco IOS TCL and VoiceXML Application Guide.
QoS
Quality of service (QoS) refers to the ability of a network—whether the network is a complex network,
small corporate network, Internet service provider (ISP), or enterprise network—to provide better
service to selected network traffic over various technologies, including Frame Relay, ATM, Ethernet and
802.1 networks, and SONET, as well as IP-routed networks that may use any or all of these underlying
technologies.
The primary goals of QoS are to provide better and more predictable network service by providing
dedicated bandwidth, controlled jitter and latency, and improved loss characteristics. QoS achieves these
goals by providing tools for managing network congestion, shaping network traffic, using expensive
wide-area links more efficiently, and setting traffic policies across the network.
QoS for fax transmissions means assuring that echo cancellation (EC) and voice activity detection
(VAD), which are normally enabled for voice calls, are turned off as soon as a call is identified as a fax
call. If EC and VAD are enabled, they can interfere with the successful reception of fax traffic.
The advantages of carrying fax over packet networks are reduced cost and saved bandwidth and are
associated with QoS issues that are unique to packet networks. A major issue in the implementation of
fax over IP networks is the problem of inaccurate timing of messages caused by delay through the
network.
The delay of fax packets through a packet network causes the precise timing that is required for many
portions of the fax protocol to be skewed and can result in the loss of the call. The fax-over-packet
protocol in the interworking function must compensate for the loss of a fixed timing of messages over
the packet network so that the T.30 protocol operates without error. Error Correction Mode (ECM) is
enabled in the T.30 protocol.
An end-to-end fax over IP call is susceptible to the following sources of delay:
• Network delay—Network delay is caused by the physical medium and protocols that are used to
send fax data and by buffers that are used to remove packet jitter on the receiving end. This delay is
a function of the capacity of the links in the network and the processing that occurs as the packets
transit the network. The jitter buffers add delay when they remove the packet delay variation of each
packet as it transits the packet network. This delay can be a significant part of the overall delay
because packet delay variations can be as high as 70 to 100 milliseconds in some Frame Relay
networks, and even higher in IP networks.
• Processing delay—Processing delay is caused by the process of demodulating and collecting digital
fax information into a packet for transmission over the packet network. Encoding delay, which is
one type of processing delay, is a function of both the processor execution time and the amount of
data collected before a packet is sent to the network.
Delay issues are compounded by the need to remove jitter, which is the variable interpacket arrival time
that is caused by conditions in the network that a packet traverses. An approach to removing the jitter is
to collect packets and hold them long enough so that even the slowest packets arrive in time to be played
in the correct sequence. This approach, however, causes additional delay. In most fax over IP methods,
a time stamp is incorporated in the packet to ensure that packet data is played out at the proper instant.
The T.30 standard provides for ECM that allows a fax page to be broken into HDLC-like frames that
allow transmission errors to be detected. ECM works by sending a fax page in a series of blocks. After
receiving the complete page data, the receiving fax identifies any frames with errors. The sending fax
then retransmits those frames. This process is repeated until all frames have been received without
errors.
If a receiving fax machine is not able to receive an error-free page, the fax transmission may fail, and
one of the fax machines may disconnect. If a network has packet-loss levels greater than 3 to 5 percent,
fax transmissions consistently fail when ECM is enabled. Fax relay packet loss concealment disables
ECM so that fax calls with up to 9 percent packet loss succeed and calls with packet loss of 5 to 7 percent
succeed with acceptable quality.
When a DSP is put into voice mode at the beginning of a VoIP call, the DSP is informed by the call
control stack whether the control protocol can support pass-through or not. If pass-through is supported,
the following events occur:
1. For the duration of the call, the DSP listens for the 2100-Hz CED tone to detect a fax or modem on
the line.
2. If the CED tone is heard, an internal event is generated to alert the call control stack that a fax or
modem changeover is required.
3. The call control stack on the OGW instructs the DSP to send an NSE to the TGW, informing the
TGW of the request to carry out a codec change.
4. If the TGW supports NSEs, it responds to the OGW instruction and loads the new codec. The fax
machines are able to communicate on an end-to-end basis with no further intervention by the voice
gateways.
For configuration instructions, see Chapter 4, “Configuring Fax Pass-Through.”
Fax pass-through call flow is shown in Figure 1-2.
VoIP
FXS V V FXS
VoIP call
T.30
CED tone
Call control
issues NSE NSE
NSE accept
88120
The default method for fax transmission on Cisco IOS gateways is Cisco fax relay. This is an RTP-based
transmission method that uses proprietary signaling and encoding mechanisms. Cisco fax relay
capability is widely available and has been in the Cisco IOS gateway software since Cisco IOS
Release 11.3, which introduced DSPs to enable voice applications. The mechanism for Cisco fax relay
is the same for calls that are controlled by SIP, MGCP, or H.323 call control protocols.
Before T.38 standards-based fax relay was introduced, no command-line interface (CLI) was required to
enable Cisco fax relay. Today Cisco fax relay is still the default, but explicit CLI enables a choice
between the fax relay methods.
Cisco fax relay is the default operation and, in the absence of any explicit CLI on the dial peer, is used
when a fax transmission is detected. If voice calls are being completed successfully between two routers,
fax calls should also work. Events that occur during a Cisco fax relay call fall into the following call
phases:
• Cisco Fax Relay Fax Setup Phase
• Cisco Fax Relay Data Transfer Phase
For configuration information, see Chapter 5, “Configuring Cisco Fax Relay.”
When a DSP is put into voice mode at the beginning of a VoIP call, the DSP is informed by the call
control stack whether fax relay is supported and if it is supported, whether it is Cisco fax relay or T.38
fax relay. If Cisco fax relay is supported, the following events occur:
• Initially a VoIP call is established as if it were a normal speech call. Call control procedures are
followed and the DSP is put into voice mode, after which human speech is expected to be received
and processed.
• At any time during the life of the call, if a fax answer or calling tone (ANSam or CED) is heard, the
DSP does not interfere with the speech processing. The ANSam or CED tone causes a switch to
modem passthrough, if enabled, to allow the tone to pass cleanly to the remote fax.
• A normal fax machine, after generating a CED or hearing a CNG, sends a DIS message with the
capabilities of the fax machine. The DSP in the Cisco IOS gateway attached to the fax machine that
generated the DIS message (normally the TGW) detects the HDLC flag sequence at the start of the
DIS message and initiates fax relay switchover. The DSP also triggers an internal event to notify the
call control stack that fax switchover is required. The call control stack then instructs the DSP to
change the RTP payload type to 96 and to send this payload type to the OGW.
• When the DSP on the OGW receives an RTP packet with payload type set to 96, it triggers an event
to inform its own call control stack that a fax changeover has been requested by the remote gateway.
The OGW then sends an RTP packet to the TGW with payload type 97 to indicate that the OGW has
started the fax changeover. When the TGW receives the payload type 97 packet, the packet serves
as an acknowledgement. The TGW starts the fax codec download and is ready for fax relay.
• Once the OGW has completed the codec download, it sends RTP packets with payload type 96 to
the TGW. The TGW responds with an RTP packet with payload type 97, and fax relay can begin
between the two gateways. As part of the fax codec download, other parameters such as VAD, jitter
buffers, and echo cancellation are changed to suit the different characteristics of a fax call.
Cisco fax relay fax setup is shown in Figure 1-3.
VoIP
FXS V V FXS
88121
Cisco Fax Relay Data Transfer Phase
During fax relay operation, the T.30 analog fax signals are received from the PSTN or from a directly
attached fax machine. The T.30 fax signals are demodulated by a DSP on the gateway and then
packetized and sent across the VoIP network as data. The TGW decodes the data stream and remodulates
the T.30 analog fax signals to be sent to the PSTN or to a destination fax machine.
The messages that are demodulated and remodulated are predominantly the phase B, phase D, and
phase E messages of a T.30 transaction. Most of the messages are passed across without any interference,
but certain messages are modified according to the constraints of the VoIP network.
During phase B, fax machines interrogate each other’s capabilities. They expect to communicate with
each other across a 64-kbps PSTN circuit, and they attempt to make best use of the available bandwidth
and circuit quality of a 64-kbps voice path. However, in a VoIP network, the fax machines do not have a
64-kbps PSTN circuit available. The bandwidth per call is probably less than 64 kbps, and the circuit is
not considered a clear circuit.
Because transmission paths in VoIP networks are more limited than in the PSTN, Cisco IOS CLI is used
to adjust fax settings on the VoIP dial peer. The adjusted fax settings restrict the facilities that are
available to fax machines across the VoIP call leg and are also used to modify values in DIS and NSF
messages that are received from fax machines.
The call flow of the Cisco fax relay data transfer phase is shown in Figure 1-4.
Fax-relay
codec
VoIP
FXS V V FXS
T.30
88122
T.30 modulated Demodulated fax-relay T.30 modulated
data packets data
The T.38 Annex B standard defines the mechanism that is used to switch over from voice mode to T.38
fax mode during a call. The ability to support T.38 must be indicated during the initial VoIP call setup.
If the DSP on the gateway is capable of supporting T.38 mode, this information is indicated during the
H.245 negotiation procedures as part of the regular H.323 VoIP call setup.
Once the VoIP call setup is completed, the DSP continues to listen for a fax tone. When a fax tone is
heard, the DSP signals the receipt of fax tone to the call control layer, which then initiates fax changeover
as specified in the T.38 Annex B procedures. The H.245 message flow shown in Figure 1-5 contains the
following events:
1. The detecting TGW sends a ModeRequest message to the OGW, and the OGW responds with a
ModeRequestAck.
2. The OGW sends a closeLogicalChannel message to close its VoIP UDP port, and the TGW responds
with a closeLogicalChannelAck while it closes the VoIP port.
3. The OGW sends an openLogicalChannel message that indicates to which port to send the T.38 UDP
information on the OGW, and the TGW responds with an openLogicalChannelAck.
4. The TGW sends a closeLogicalChannel message to close its VoIP UDP port, and the OGW responds
with a closeLogicalChannelAck.
5. Finally the TGW sends an openLogicalChannel message that indicates to which port to send the T.38
UDP stream, and the OGW responds with an openLogicalChannelAck.
6. T.38-encoded UDP packets flow back and forth. At the end of the fax transmission, either gateway
can initiate another ModeRequest message to return to VoIP mode.
VoIP
FXS V V FXS
88123
T.30 VoIP call T.30
CED tone
DIS msg
ModeRequest
ModeRequestAck
closeLogicalChannel [1]
closeLogicalChannelAck [1]
openLogicalChannel [2]
openLogicalChannelAck [2]
closeLogicalChannel [3]
closeLogicalChannelAck [3]
openLogicalChannel [4]
openLogicalChannelAck [4]
When the call control protocol is SIP, T.38 Annex D procedures are used for the changeover from VoIP
to fax mode during a call. Initially, a normal VoIP call is established using SIP INVITEs. The DSP needs
to be informed that it can support T.38 mode while it is put into voice mode. Then, during the call, when
the DSP detects fax HDLC flags, it signals the detection of the flags to the call control layer, and the call
control layer initiates a SIP INVITE mid-call to signal the desire to change the media stream.
The SIP T.38 fax relay call flow shown in Figure 1-6 contains the following events:
1. The TGW detects a fax V.21 flag sequence and sends an INVITE with T.38 details in the SDP field
to the OGW or to the SIP proxy server, depending on the network topology.
2. The OGW receives the INVITE message and sends back a 200 OK message.
3. The TGW acknowledges the 200 OK message and sends an ACK message direct to the OGW.
4. The OGW starts sending T.38 UDP packets instead of VoIP UDP packets across the same ports.
5. At the end of the fax transmission, another INVITE message can be sent to return to VoIP mode.
VoIP
FXS V V FXS
88124
T.30 VoIP call T.30
CED tone
DIS msg
INVITE (T.38 in SDP)
200 OK
ACK
T.38 UDP packets
The MGCP T.38 fax relay feature conforms to ITU-T T.38, Procedures for Real-Time Group 3 Facsimile
Communication over IP Networks, which determines procedures for real-time facsimile communication
in various gateway control protocol (XGCP) applications.
MGCP T.38 fax relay provides two modes of implementation:
• Gateway-controlled mode—Gateways negotiate fax relay transmission by exchanging capability
information in Session Description Protocol (SDP) messages. Transmission of SDP messages is
transparent to the call agent. Gateway-controlled mode allows use of MGCP-based T.38 fax without
the necessity of upgrading the call agent software to support the feature.
• Call-agent-controlled mode—Call agents use MGCP messaging to instruct gateways to process fax
traffic. For MGCP T.38 fax relay, call agents can also instruct gateways to revert to
gateway-controlled mode if the call agent is unable to handle the fax control messaging traffic; for
example, in overloaded or congested networks.
MGCP-based T.38 fax relay enables interworking between the T.38 application that already exists on
Cisco gateways and the MGCP applications on call agents.
Document Document
T.30
T.30
E-mail message
with attachments
Fax to Workstation
E-mail
E-mail
to fax
E-mail client
Email message
72734
with text or
TIFF attachment
Fax detection supports the use of a single E.164 number for both voice mail and fax mail by providing
the capability to detect through an interactive voice response interface whether an incoming call is voice
or fax. Fax detection can be configured to use either the distinctive fax calling tones (CNG) or a manually
dialed digit or both to distinguish fax calls from voice calls. Fax detection supports the following modes
of operation:
• connect-first—The gateway connects incoming calls immediately to a voice-mail server, which
plays a greeting, or audio prompt, based upon the number called. The gateway also listens for CNG
throughout the duration of the call and connects the call to the configured fax application if CNG is
detected.
• listen-first—The gateway listens for CNG for 9 seconds; an audio prompt can be played during this
time. If CNG is detected, the call is connected to a fax application or server. If CNG is not detected,
the call is connected to a voice application or server.
The fax rollover IVR application provides a configured fallback to T.37 store-and-forward fax if a call
attempts to use fax relay and fails. An OGW must be configured with fax relay, store-and-forward fax,
and also with the fax rollover application. Then, if a fax relay attempt fails, the call is forwarded to an
SMTP server by a mail transfer agent (MTA) using T.37-standard protocols for store-and-forward fax.
For configuration information, see Chapter 9, “Configuring Fax Rollover.”
Figure 1-8 illustrates the connection from the client modem to a modem ISDN channel aggregation
(MICA) technologies modem network access server (NAS).
V IP network V
PSTN PSTN
Client modem
Cisco router
143595
with installed
MICA modem (NAS)
Note To use VBD, you should consider the appropriate application of echo cancellers on a VBD channel.
Passthrough Switchover
When the gateways detect a data modem, both the originating gateway and the terminating gateway
switch to modem passthrough mode. This switchover includes the following:
• Switching to the G.711 codec
• Disabling the high pass filter
• Disabling Voice Activity Detection (VAD)
Controlled Redundancy
Packet loss is a persistent issue in voice applications. The disruption of speech, which is characteristic
of packet loss, can be somewhat resolved with controlled redundancy and the RTP (RFC 2198).
Controlled redundancy reconstructs missing information at the receiver end from the redundant data that
arrives in the transmitted packets.
Some of the requirements for a controlled redundancy are as follows:
• The packets have to carry a primary encoding and one redundant encoding.
• Because the use of variable size encodings is desirable, each encoded block in the packet must have
a length indicator.
• The RTP header provides a time-stamp field that corresponds to the time of creation of the encoded
data and redundant blocks of data correspond to different time intervals than the primary data. So
each block of redundant encoding requires its own time stamp.
You can enable redundancy so that the modem and fax passthrough switchover causes the gateway to
transmit redundant packets and redundancy can be enabled in one or both of the gateways. When only
one gateway is configured, the other gateway receives the packets correctly, but does not produce
redundant packets. When redundancy is enabled, 10-ms sample-sized packets are sent. When
redundancy is disabled, 20-ms sample-sized packets are sent.
Note The current Cisco implementation of RFC 2198 reflects a redundant encoding of 1X or 1 repeat of the
original packet. This means that any loss scenario in which two or more consecutive packets are dropped
would cause a loss of data translated into a retrain, Failure To Train (FTT), or call drop, etc. in modem
and fax passthrough.
Packet Redundancy
You can enable payload redundancy so that the modem relay VoIP switchover causes the gateway to send
redundant packets. Redundancy can be enabled in one or both of the gateways. When only a single
gateway is configured for redundancy, the other gateway receives the packets correctly, but does not
produce redundant packets. When redundancy is enabled, 10-ms sample-sized packets are sent. When
redundancy is disabled, 20-ms sample-sized packets are sent.
Note By default, modem relay over VoIP capability and redundancy are disabled.
Additional References
The following sections provide references related to Cisco IOS fax and modem services over IP.
Developer Support
Developers using this guide may be interested in joining the Cisco Developer Support Program. This
program was created to provide you with a consistent level of support that you can depend on while
leveraging Cisco interfaces in your development projects.
The Developer Support Program provides formalized support for Cisco Systems interfaces to enable
developers, customers, and partners in the Cisco Technology Developer program to accelerate their
delivery of compatible solutions.
The Developer Support Engineers are an extension of the product technology engineering teams. They
have direct access to the resources necessary to provide expert support in a timely manner.
For additional information on this General Support and Program FAQ's refer to the Developer Support
Program Web Site at www.cisco.com/go/developersupport/ or contact [email protected].
Note Cisco Technical Assistance Center (TAC) support does not include Cisco Developer Support and is
limited to Cisco product installation/configuration and Cisco-developed applications. A signed
Developer Support Agreement is required to participate in this program. For more details on how to
obtain a Developer Support agreement go to http://www.cisco.com/go/developersupport under
"Ordering" or contact [email protected].
Related Documents
Related Topic Document Title
Cisco IOS Voice Configuration Library, including Cisco IOS Voice Configuration Library
library preface and glossary, other feature documents,
and troubleshooting documentation.
Cisco IOS command references • Cisco IOS Debug Command Reference
• Cisco IOS Voice Command Reference
Cisco IOS security features, including authentication, Cisco IOS Security Configuration Guide
authorization, and accounting (AAA)
Cisco IOS TCL, VoiceXML, and IVR applications TCL IVR API Version 2.0 Programmer’s Guide
Cisco VoiceXML Programmer’s Guide
Cisco IOS voice troubleshooting information Cisco IOS Voice Troubleshooting and Monitoring Guide
Cisco MGCP configuration information Cisco IOS MGCP and Related Protocols Configuration Guide
Cisco SIP configuration information Cisco IOS SIP Configuration Guide
Network configuration Cisco IOS IP Application Services Configuration Guide
Standards
Standards1 Title
ITU-T T.4 Standardization of Group 3 facsimile terminals for document
transmission
ITU-T T.30 Procedures for document facsimile transmission in the general
switched telephone network
ITU-T.37 Procedures for the Transfer of Facsimile Data via
Store-and-Forward on the Internet, June 1998
ITU-T.38 Procedures for Real-Time Group 3 Facsimile Communication over
IP Networks, June 1998
ITU-T.38 Procedures for Real-Time Group 3 Facsimile Communication over
IP Networks, Amendment 1, April 1999
ITU-T.38 Revised Annex B of Recommendation T.38, November 1998
ITU-T.38 Revised Annex D of Recommendation T.38, November 1998
Fax Standards
T.4 Defines the encoding of printed information (content) into a digital
stream ready for modulation.
T.30 Defines the handshaking protocol and capabilities exchange that
takes place during fax transmission.
T.30 Annex A Defines Error Correction Mode (ECM) facilities.
Fax and Modem Standards
V.8 Part of the capabilities exchange during the modem and fax
answering procedures.
Standards1 Title
V.17 High speed data transmission, used for high transfer rates of High
Speed (HS) fax page data (9600 to 14400 bps).
V.21 Low Speed (LS) data transmission, used for the fax control
information (300 baud).
V.22bis Medium speed data transmission, used for low transfer rates of High
Speed (HS) fax page data (1200 to 2400 bps).
V.25 Modem and fax machine answering procedures.
V.27 High speed data transmission, used for medium transfer rates of
High Speed (HS) fax page data (2400 to 4800 bps).
V.29 High speed data transmission, used for medium transfer rates of
High Speed (HS) fax page data (4800 to 9600 bps).
V.34 Very high speed modems—A modem operating at rates of up to
33,600 bps for use on the PSTN and on leased point-to-point 2-wire
telephone-type circuits.
V.90 A digital modem and analog modem pair for use on the PSTN at data
rates of up to 56,000 bps downstream and up to 33,600 bps upstream.
1. Not all supported standards are listed.
MIBs
MIBs1 MIBs Link
• CISCO-CALL-APPLICATION-MIB To locate and download MIBs for selected platforms, Cisco IOS
releases, and feature sets, use Cisco MIB Locator found at the
• CISCO-CAS-IF-MIB
following URL:
• CISCO-DSP-MGMT-MIB
http://www.cisco.com/go/mibs
• CISCO-ISDN-MIB
• CISCO-MMAIL-DIAL-CONTROL-MIB
• CISCO-VOICE-DNIS-MIB
• CISCO-VOICE-IF-MIB
• CISCO-VOICE-NUMBER-EXPANSION-MIB
• DIAL-CONTROL=MIB
• EXPRESSION-MIB
• IF-MIB(MIB II)
1. Not all supported MIBs are listed.
RFCs
RFCs1 Title
RFC 821 Simple Mail Transfer Protocol
RFC 822 Standard for the Format of ARPA Internet Text Messages
RFCs1 Title
RFC 1123 Requirements for Internet Hosts—Application and Support
RFC 1652 SMTP Service Extension for 8 bit-MIME Transport
RFC 1869 SMTP Service Extensions
RFC 1891 SMTP Service Extension for Delivery Status Notifications
RFC 1892 The Multipart/Report Content Type for the Reporting of Mail System
Administrative Messages
RFC 1893 Enhanced Mail System Status Codes
RFC 1894 An Extensible Message Format for Delivery Status Notifications
RFC 1896 The Text/Enriched MIME Content-Type
RFC 2034 SMTP Service Extension for Returning Enhanced Error Codes
RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of
Internet Message Bodies
RFC 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media
Types
RFC 2047 MIME (Multipurpose Internet Mail Extensions) Part Three:
Message Header Extensions for Non-ASCII Text
RFC 2197 SMTP Service Extension for Command Pipelining
RFC 2198 RTP Payload for Redundant Audio Data
RFC 2298 An Extensible Message Format for Message Disposition
Notifications
RFC 2301 File Format for Internet Fax
RFC 2302 Tagged Image File Format (TIFF)—Image/TIFF MIME Sub-Type
Registration
RFC 2303 Minimal PSTN Address Format in Internet Mail
RFC 2304 Minimal Fax Address Format in Internet Mail
RFC 2305 A Simple Mode of Fax Using Internet Mail
RFC 2306 Tag Image File Format (TIFF)—Profile for Facsimile
RFC 2326 Real Time Streaming Protocol (RTSP)
RFC 2327 SDP: Session Description Protocol
RFC 2532 Extended Facsimile Using Internet Mail
RFC 2543 SIP: Session Initiation Protocol
RFC 2705 Media Gateway Control Protocol
RFC 2821 Simple Mail Transfer Protocol
RFC 2833 RTP Payload for DTMF Digits, Telephony Tones and Telephony
Signals
RFC 2865 Remote Authentication Dial In User Service (RADIUS)
RFC 2866 RADIUS Accounting
1. Not all supported RFCs are listed.
Technical Assistance
Description Link
The Cisco Technical Support website contains http://www.cisco.com/techsupport
thousands of pages of searchable technical content,
including links to products, technologies, solutions,
technical tips, and tools. Registered Cisco.com users
can log in from this page to access even more content.
Modem Passthrough over VoIP provides the transport of modem signals through a packet network by
using pulse code modulation (PCM) encoded packets. This chapter describes the configuration for
modem passthrough.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Modem Passthrough, page 2-2
• Restrictions for Configuring Modem Passthrough, page 2-2
• Information About Modem Passthrough, page 2-2
• How to Configure Modem Passthrough, page 2-3
• Configuration Examples for Modem Passthrough, page 2-7
Note Configure clock sourcing for all interfaces connected to the PSTN.
• Provides static jitter buffers of 200 milliseconds to protect against clock skew.
• Discriminates modem signals from voice and fax signals, indicating the detection of the modem
signal across the connection, and placing the connection in a state that transports the signal across
the network with the least amount of distortion.
• Reliably maintains a modem connection across the packet network for a long duration under normal
network conditions.
Passthrough Rollover
When the gateway detects a data modem, both the originating gateway and the terminating gateway roll
over to G.711. The roll over to G.711 disables the high-pass filter, disables echo cancellation, and
disables VAD. At the end of the modem call, the voice ports revert to the prior configuration and the
digital signal processor (DSP) goes back to the state before the rollover.
Payload Redundancy
Payload redundancy enables the modem passthrough switchover and this causes the gateway to emit
redundant packets. When redundancy is enabled, 10-ms sample-sized packets are sent. When
redundancy is disabled, 20-ms sample-sized packets are sent.
Redundancy is enabled on one or both of the gateways. When only a single gateway is configured for
redundancy, the second gateway receives the packets correctly but does not produce redundant packets.
• Under dial-peer configuration mode for VoIP dial peers—This configuration applies only to calls
that match a specific dial peer. The default dial-peer configuration is modem passthrough system,
which tells the gateway to use the parameters configured at the global level. See the “Configuring
Modem Passthrough for a Specific Dial Peer” section on page 2-5.
The two configuration tasks can be used separately or together. If both are configured, the dial-peer
configuration overrides the global configuration.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. modem passthrough nse [payload-type number] codec {g711ulaw | g711alaw} [redundancy]
[maximum-sessions value]
DETAILED STEPS
Example:
Router# configure terminal
Step 1 voice service voip Enters voice-service configuration mode and configures
voice service for all gateway connections.
Example:
Router(config)# voice service voip
Note When modem passthrough is configured for a specific dial peer, the dial-peer configuration takes
precedence over the global configuration.
Use the following steps to configure modem passthrough for a specific dial peer.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. modem passthrough {system | nse [payload-type number] codec {g711ulaw | g711alaw}
[redundancy]}
DETAILED STEPS
Example:
Router# configure terminal
Step 1 dial-peer voice tag voip Enters dial-peer configuration mode and names a specific
VoIP dial peer.
Example: • tag—Digits that define a particular dial peer. Range is
Router(config)# dial-peer voice 20 voip from 1 to 2147483647.
• voip—Indicates that this is a VoIP peer that uses voice
encapsulation on the POTS network.
Step 2 modem passthrough {system | nse [payload-type Configures modem passthrough for a specific dial peer. The
number] codec {g711ulaw | g711alaw} default behavior for modem passthrough in dial-peer
[redundancy]}
configuration mode is modem passthrough system.
• system—Defaults to the global configuration.
Example:
Router(config-dial-peer)# modem passthrough nse • nse—Specifies that named signaling events (NSEs) are
codec g711ulaw redundancy used to communicate codec switchover between
gateways.
– payload-type number—(Optional) NSE payload
type. Range varies by platform, but is from 96 to
119 on most platforms. The default is 100.
• codec—Codec selections for upspeeding.
– g711ulaw—Codec G.711 u-law 64000 bits per
second for T1.
– g711alaw—Codec G.711 a-law 64000 bits per
second for E1.
• redundancy—(Optional) Enables a single repetition of
packets (using RFC 2198) to improve reliability by
protecting against packet loss.
• Ensure that the originating and terminating gateways have the same NSE payload-type number.
• When two gateways are configured in voice-service configuration mode, ensure that the originating
and terminating gateways have the same maximum-sessions value.
Use the following commands to troubleshoot modem passthrough:
• debug voip vtsp—Displays information about the voice telephony service provider (VTSP).
• debug vtsp session—Used to trace how the router interacts with the digital signal processor (DSP)
based on the signaling indications from the signaling stack and requests from the application.
• show dial-peer voice —Used to verify that modem passthrough over VoIP is enabled.
• show call active voice—Displays the voice information for the active call table.
• show call history voice—Displays the voice information for the call history table.
• show dial-peer voice—Displays configuration information for dial peers.
!
interface Ethernet0
ip address 10.10.2.2 255.0.0.0
no ip route-cache
no ip mroute-cache
!
interface Serial0:23
no ip address
encapsulation ppp
ip mroute-cache
no logging event link-status
isdn switch-type primary-5ess
isdn incoming-voice modem
no peer default ip address
no fair-queue
no cdp enable
no ppp lcp fast-start
!
interface FastEthernet0
ip address 172.16.0.1 255.0.0.0
no ip route-cache
no ip mroute-cache
load-interval 30
duplex full
speed auto
no cdp enable
!
ip classless
ip route 192.168.0.0 255.255.0.0 10.10.1.1
no ip http server
!
voice-port 0:D
!
dial-peer voice 1 pots
incoming called-number 55511..
destination-pattern 020..
direct-inward-dial
port 0:D
prefix 020
!
dial-peer voice 2 voip
incoming called-number 020..
destination-pattern 55511..
modem passthrough nse codec g711ulaw redundancy
session target ipv4:10.10.0.2
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
login
!
This chapter describes the configuration of Cisco modem relay. Cisco modem relay provides support for
modem connections across traditional time division multiplexing (TDM) networks. Modem relay
demodulates a modem signal at one voice gateway and passes it as packet data to another voice gateway
where the signal is remodulated and sent to a receiving modem.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Cisco Modem Relay, page 3-2
• Restrictions for Configuring Cisco Modem Relay, page 3-2
• Information about Cisco Modem Relay, page 3-3
• How to Configure Modem Relay, page 3-5
• Configuration Examples for Cisco Modem Relay, page 3-16
Relay Switchover
When the gateways detect a data modem, both the originating gateway and the terminating gateway
switch to modem passthrough mode. This includes the following elements:
• Switching to the G.711 codec
• Disabling the high pass filter
• Disabling voice activity detection (VAD)
• Using special jitter buffer management algorithms
• On detection of modem phase reversal tone, disabling the echo canceler
At the end of the modem call, the voice ports revert to the previous configuration and the digital signal
processors (DSPs) switch back to the state before switchover. You can configure the codec by selecting
the g711alaw or g711ulaw option of the codec command.
Payload Redundancy
You can enable payload redundancy so that the modem passthrough over VoIP switchover causes the
gateway to send redundant packets. Redundancy can be enabled in one or both of the gateways. When
only a single gateway is configured for redundancy, the other gateway receives the packets correctly, but
does not produce redundant packets. When redundancy is enabled, 10-ms sample-sized packets are sent.
When redundancy is disabled, 20-ms sample-sized packets are sent.
Note By default, modem relay over VoIP capability and redundancy are disabled.
Because Cisco modem relay uses configured parameters, it removes the signaling dependency from the
call-agent and allows modem relay support independent of call control. Cisco modem relay can be
deployed over any call-agent that is capable of setting up a voice connection between gateways,
including Cisco CallManager, Cisco CallManager Express, and the BTS/PGW softswitches.
The gateway-controlled modem relay parameters are enabled by default when Cisco modem relay is
configured, and when Cisco modem relay is configured, gateway exchange identification (XID)
parameter negotiation is always enabled. Gateway XID parameters are negotiated using the Simple
Packet Relay Transport (SPRT) protocol.
Note You must configure modem relay on both the originating and terminating gateways for this feature to
operate.
Note The VG224 and IAD2430 platforms only support flex complexity.
Supported Codecs
Cisco modem relay using MGCP and H.323 supports the following high complexity codecs:
• Clear channel: Clear channel at 64000 bps
• g711alaw: G.711 a-law 64000 bps
• g711ulaw: G.711 u-law 64000 bps
• g723ar53: G.723.1 Annex-A 5300 bps
• g723ar63: G.723.1 Annex-A 6300 bps
• g723r53: G.723.1 5300 bps
• g723r63: G.723.1 6300 bps
• g726r16: G.726 16000 bps
• g726r24: G.726 24000 bps
SUMMARY STEPS
1. enable
2. configure terminal
3. voice-card slot
4. codec complexity {flex | high | medium} [ecan-extended]
5. description
DETAILED STEPS
Example:
Router# configure terminal
Step 3 voice-card slot Enters voice-card configuration mode.
• slot—Specifies the voice-card slot location.
Example:
Router(config)# voice-card 0
SUMMARY STEPS
1. enable
2. configure terminal
3. mgcp [port]
4. mgcp call-agent {dns-name | ip-address} [port] [service-type type] [version protocol-version]
5. mgcp tse payload value
6. mgcp modem relay voip mode nse {[codec [g711alaw | g711ulaw]] [redundancy]}
gw-controlled
7. dial-peer voice tag pots
8. application application-name [out-bound]
9. port controller number:D
10. mgcp modem relay voip gateway-xid [compress {backward | both | forward | no}] [dictionary
value] [string-length value]
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mgcp [port] Allocates resources for MGCP and starts the MGCP
daemon.
Example: • port—(Optional) User Datagram Protocol (UDP) port
Router(config)# mgcp 4204 for the MGCP gateway. Range is from 1025 to 65535.
The default is UDP port 2427.
Note You must configure Cisco modem relay parameters on originating and terminating gateways. The NSE
payload-type number, codec, and negotiation parameter settings must match.
For H.323 and SIP configurations, Cisco modem relay can be configured at two levels:
• Under voice-service configuration mode—This configuration is the global, or system-wide
configuration that is applied to any VoIP call on the gateway. The default for voice-service
configuration mode is no modem relay. See the “Configuring Cisco Modem Relay Parameters
Globally for H.323 and SIP” section on page 3-12.
• Under dial-peer voice configuration mode for VoIP dial peers—This configuration applies only to
calls that match a specific dial peer. The default dial-peer configuration is modem relay system,
which tells the gateway to use the parameters configured at the global level. See the “Configuring
H.323 and SIP Modem Relay for a Specific Dial Peer” section on page 3-13.
The two configuration tasks can be used separately or together. If both are configured, the dial-peer
configuration overrides the global configuration.
Configuring Cisco Modem Relay Parameters Globally for H.323 and SIP
Use the following steps to configure Cisco modem relay parameters globally.
FSUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. h323
5. call start slow
6. modem relay nse [payload-type number] codec {g711ulaw | g711alaw} [redundancy]
[maximum-sessions value] gw-controlled
DETAILED STEPS
Example:
Router# configure terminal
Step 3 voice service voip Enters voice-service configuration mode.
Example:
Router(config)# voice service voip
Step 4 h323 Enters H.323 voice service configuration mode.
Example:
Router(config-voi-serv)# h323
Configuring H.323 and SIP Modem Relay for a Specific Dial Peer
Note When Cisco modem relay is configured for a specific dial peer, the dial-peer configuration takes
precedence over the global configuration.
Use the following steps to configure Cisco modem relay for a specific dial peer:
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. modem relay {system | nse [payload-type number] codec {g711ulaw | g711alaw}[redundancy]}
gw-controlled
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 dial-peer voice tag voip Enters dial-peer configuration mode for a specific
dial peer.
Example:
Router(config)# dial-peer voice 12 voip
Step 4 modem relay {system | nse [payload-type number] codec Configures Cisco modem relay parameters.
{g711ulaw | g711alaw}[redundancy]} gw-controlled
• system—Uses the global configuration
parameters set by using the modem relay
Example: command in voice-service configuration
Router(config-dial-peer)# modem relay nse payload-type mode. Enabled by default.
100 codec g711ulaw redundancy gw-controlled
• nse—Named signaling event.
• payload-type—(Optional) Sets the
payload-type for NSE packets. The default is
100.
• codec—Sets the upspeed voice compression
selection for speech or audio signals.
– g711ulaw is required for T1.
– g711alaw is required for E1.
• redundancy—(Optional) Sends redundant
packets for modem traffic during the
pass-through phase. Disabled by default.
• gw-controlled—Uses the
gateway-configured method for establishing
modem relay parameters. Enabled by default.
Troubleshooting Tips
Before using debug commands to troubleshoot Cisco modem relay, be sure that:
• You can complete a voice call.
• Cisco modem relay is configured on both the originating and terminating gateways.
• Both the originating and terminating gateways have the same named signaling event (NSE)
payload-type number and codec parameters.
Note See the Cisco IOS Debug Command Reference for additional modem relay debug commands.
linecode b8zs
pri-group timeslots 1-8,16,24 service mgcp
!
interface GigabitEthernet0/0
ip address 10.2.109.103 255.255.0.0
duplex auto
speed auto
no clns route-cache
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0:23
no ip address
no logging event link-status
isdn switch-type primary-qsig
isdn incoming-voice voice
no cdp enable
!
interface Serial1/1:23
no ip address
no logging event link-status
isdn switch-type primary-qsig
isdn incoming-voice voice
isdn bind-l3 ccm-manager
no cdp enable
!
ip default-gateway 10.2.0.1
ip classless
ip route 10.0.0.0 255.0.0.0 10.2.0.1
ip route 192.168.254.254 255.255.255.255 GigabitEthernet0/0
!
ip http server
!
control-plane
!
voice-port 0/0/0
!
voice-port 0/0/1
!
voice-port 1/0:23
connection plar 2000
!
voice-port 1/1:23
!
ccm-manager mgcp
ccm-manager music-on-hold
ccm-manager config server 10.3.102.99
!
mgcp
mgcp call-agent ccm service-type mgcp version 0.1
mgcp dtmf-relay voip codec all mode out-of-band
mgcp rtp unreachable timeout 1000 action notify
mgcp modem relay voip mode nse redundancy gw-controlled
mgcp package-capability rtp-package
no mgcp package-capability res-package
mgcp package-capability sst-package
no mgcp package-capability fxr-package
mgcp package-capability pre-package
no mgcp timer receive-rtcp
mgcp sdp simple
!
boot-start-marker
boot system flash:c2691-ipvoice-mz.andante_0224
boot-end-marker
!
logging buffered 100000 debugging
enable password lab
!
no aaa new-model
!
resource manager
!
memory-size iomem 25
clock timezone PST -8
clock summer-time PDT recurring
no network-clock-participate slot 1
voice-card 1
codec complexity high
dspfarm
!
ip subnet-zero
ip cef
!
no ip dhcp use vrf connected
!
no ip domain lookup
no ftp-server write-enable
!
voice service voip
fax protocol pass-through g711ulaw
sip
!
controller T1 1/0
framing sf
linecode ami
!
controller T1 1/1
framing sf
linecode ami
!
interface FastEthernet0/0
ip address 10.2.109.104 255.255.0.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip default-gateway 10.2.0.1
ip classless
ip route 10.0.0.0 255.255.255.255 10.2.0.1
!
no ip http server
!
control-plane
!
dial-peer voice 2000 voip
modem relay nse codec g711alaw redundancy gw-controlled
fax rate disable
fax protocol pass-through g711alaw
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 1
exec-timeout 0 0
password lab
login
line vty 2 4
login
!
ntp clock-period 17180780
ntp server 192.168.254.253 prefer
!
end
This chapter describes the configuration of fax pass-through. With fax pass-through, modulated fax
information from the PSTN is passed in-band over a voice speech path in an IP network. Fax
pass-through disables compression, echo cancellation, and issues redundant packets to ensure complete
transmission.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Fax Pass-Through, page 4-2
• Restrictions for Configuring Fax Pass-Through, page 4-2
• Information About Fax Pass-Through, page 4-2
• How to Configure H.323 and SIP Fax Pass-Through, page 4-4
• How to Configure MGCP Fax Pass-Through, page 4-8
• Configuration Examples for Fax Pass-Through, page 4-10
Alternately, you can use the modem passthrough command to configure the gateway to use
Cisco-proprietary NSEs to signal the switch to pass-through mode. Fax pass-through using NSEs has
been available on the Cisco AS5300 since Cisco IOS Release 12.1(3)T and on most other platforms since
Cisco IOS Release 12.2(11)T.
Note Modem pass-through is preferred if all of the involved gateways are Cisco IOS gateways.
If non-Cisco gateways are involved in the fax transmissions, fax pass-through must be used. In all cases,
however, T.38 fax relay is the best solution if all of the involved gateways support it.
Note If you need to configure fax pass-through to work with Cisco CallManager (CCM), you must use the
modem passthrough nse command. The fax protocol pass-through command does not work with
CCM, which relies on NSE information.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. fax protocol pass-through {g711ulaw | g711alaw}
or
modem passthrough {system | nse [payload-type number] codec {g711alaw | g711ulaw}
[redundancy]}
5. fax-rate disable
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag voip Enters dial-peer configuration mode and defines a
dial peer that directs traffic to or from a packet
network.
Example:
Router(config)# dial-peer voice 25 voip • tag—Dial-peer identifier that consists of one or
more digits. Valid entries are from 1 to
2147483647.
• voip—Calls from this dial peer use voice
encapsulation on the packet network.
Note When fax or modem pass-through is configured under the dial-peer voice configuration, the
configuration for an individual dial peer takes precedence over the global configuration under the voice
service voip command.
Note If you need to configure fax pass-through to work with Cisco CallManager (CCM), you must use the
modem passthrough nse command. The fax protocol pass-through command does not work with
CCM, which relies on NSE information.
When using the voice service voip and modem passthrough nse commands on a terminating gateway
to globally set up fax pass-through with NSEs, you must ensure that each incoming call is associated
with a VoIP dial peer to retrieve the global fax configuration. Associate calls with dial peers using the
incoming called-number command to specify a sequence of digits that incoming calls can match. You
can ensure that all calls match at least one dial peer by using the following commands:
Router(config)# dial-peer voice tag voip
Router(config-dial-peer)# incoming called-number .
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. fax protocol pass-through {g711ulaw | g711alaw}
or
modem passthrough nse [payload-type number] {codec {g711alaw | g711ulaw}} [redundancy
[maximum-sessions sessions] [sample-duration [10 | 20]]]
DETAILED STEPS
Example:
Router# configure terminal
Step 3 voice service voip Enters voice-service configuration mode.
Example:
Router(config)# voice service voip
Prerequisites
Identify endpoints and configure the MGCP application as described in the MGCP and Related
Protocols Configuration Guide.
SUMMARY STEPS
1. enable
2. configure terminal
3. mgcp package-capability rtp-package
4. mgcp modem passthrough voip mode nse
5. mgcp modem passthrough voip codec {g711ulaw | g711alaw}
6. mgcp modem passthrough voip redundancy [sample-duration [10 | 20]] [maximum-sessions
sessions]
7. mgcp timer nse-response t38 time
8. mgcp fax t.38 inhibit
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mgcp package-capability rtp-package Specifies an MGCP package capability type for a
media gateway.
Example: • rtp-package—Specifies events and signals for
Router(config)# mgcp package-capability rtp-package the Real-Time Transport Protocol (RTP) stream.
Step 4 mgcp modem passthrough voip mode nse Enables named service event (NSE) based modem
relay mode for VoIP calls on an MGCP gateway.
Example: • nse—(Optional) Instructs the gateway to use
Router(config)# mgcp modem passthrough voip mode nse NSE mode for upspeeding.
Step 5 mgcp modem passthrough voip codec {g711ulaw | Selects the codec that enables the gateway to send and
g711alaw} receive modem and fax data in VoIP configurations.
• g711ulaw—G.711 u-law codec for changing
Example: speeds during modem and fax switchover.
Router(config)# mgcp modem passthrough voip codec
g711alaw • g711alaw—G.711 a-law codec for changing
speeds during modem and fax switchover. This is
the default.
Note Use the same codec type for originating and
the terminating gateways.
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
password lab
no login
line 2/00 5/323
flush-at-activation
no modem status-poll
no modem log rs232
framing sf
linecode ami
!
interface FastEthernet0/0
ip address 10.20.109.104 255.255.0.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip default-gateway 10.20.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 10.20.0.1
!
no ip http server
!
control-plane
!
dial-peer voice 2000 voip
fax rate disable
fax protocol pass-through g711alaw
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 1
exec-timeout 0 0
password lab
login
line vty 2 4
login
!
ntp clock-period 17180778
ntp server 10.10.254.253 prefer
!
end
version 12.2
no parser cache
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname fptrtr
!
voice-card 1
!
ip subnet-zero
!
no ip domain lookup
!
isdn switch-type primary-5ess
!
voice call carrier capacity active
!
mta receive maximum-recipients 0
!
ccm-manager mgcp
no ccm-manager fax protocol cisco
!
controller T1 1/0
framing esf
clock source line primary
linecode b8zs
ds0-group 0 timeslots 1 type fxs-loop-start
!
controller T1 1/1
framing esf
linecode b8zs
ds0-group 0 timeslots 1 type e&m-wink-start
!
interface Ethernet0/0
ip address 10.3.222.6 255.255.0.0
ip helper-address 10.3.222.1
no ip mroute-cache
half-duplex
!
interface Ethernet0/1
shutdown
!
ip default-gateway 10.3.0.1
ip classless
ip route 192.168.254.0 255.255.255.0 10.3.0.1
ip http server
!
call rsvp-sync
!
voice-port 1/0:0
!
voice-port 1/1:0
!
voice-port 3/0/0
!
voice-port 3/0/1
!
mgcp
mgcp call-agent 10.3.222.1 service-type mgcp version 0.1
mgcp modem passthrough voip mode nse
mgcp package-capability rtp-package
mgcp fax t38 inhibit
!
mgcp profile default
!
dial-peer cor custom
!
dial-peer voice 3641 pots
application mgcpapp
port 3/0/0
!
dial-peer voice 3643 pots
application mgcpapp
port 1/1:0
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
exec-timeout 0 0
password cisco
login
!
!
end
This chapter describes configuration for Cisco fax relay on an IP network. With Cisco fax relay,
gateways terminate T.30 fax signaling by spoofing a virtual fax machine to the locally attached fax
machine. The gateways use a Cisco-proprietary fax-relay RTP-based protocol to communicate between
them.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Cisco Fax Relay, page 5-2
• Restrictions for Configuring Cisco Fax Relay, page 5-2
• Information About Cisco Fax Relay, page 5-2
• How to Configure Cisco Fax Relay, page 5-4
• Configuration Examples for Cisco Fax Relay, page 5-7
• T.38 fax relay is the default mode for passing faxes through a VoIP network, and Cisco fax relay is
the default fax relay type on Cisco voice gateways. This capability has been supported in Cisco IOS
Release 11.3 and later releases and is widely available. Cisco fax relay uses Real-Time Transport
Protocol (RTP) to transport the fax data.
• Cisco fax relay is configured on the VoIP dial peers that direct calls into and out of the packet
network.Cisco fax relay can be configured under the H.323 and Session Initiation Protocol (SIP) call
control protocols.
SG3 V.8 fax CM message tone suppression enables SG3 fax machines to scale down without end-user
interaction and without using the extra bandwidth required by modem pass-through and allows SG3 fax
machines to interoperate over a fax-relay network at G3 speeds by blocking the SG3 V.8 CM message,
or fax tone, from reaching the called fax machine. This causes the called fax machine to time out on the
ANSam tone and scale down to G3 speeds by initiating V.21 negotiations.
SG3 V.8 fax CM message tone suppression supports both the one-gateway and two-gateway solutions:
• With a one-gateway solution, the gateway on one end of the call can be configured to suppress the
SG3 V.8 fax CM message independently of the gateway on the other end of the call. The
one-gateway solution suppresses the fax CM tone on both TDM and IP interfaces (TI C5510 DSPs
only), and can interoperate with third-party gateways when the fax CM tone suppression gateway is
the originating gateway. A one-gateway solution
• With a two-gateway solution, the gateways on both ends of the call must have this feature enabled.
The two-gateway solution suppresses the fax CM tone only on the TDM interface (TI C5421 and
TI C549 DSPs). Both gateways must support this feature to interoperate at G3 speeds, or the fax tone
suppression gateway must be the originating gateway.
Note If both the originating gateway and the terminating gateways are configured for V.8 fax CM message
suppression, the suppression occurs on the originating gateway.
Note Fax relay parameters that are set for an individual dial peer under the dial-peer voice command take
precedence over global settings made under the voice service voip command.
Configuring Cisco Fax Relay for One or More Individual VoIP Dial Peers
Use the following steps to configure Cisco fax relay for individual dial peers.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. fax protocol {cisco | none | system | pass-through {g711ulaw | g711alaw}}
5. fax rate {12000 | 14400 | 2400 | 4800 | 7200 | 9600 | disable | voice} [bytes rate]
6. fax-relay ecm disable
7. fax nsf word
8. fax-relay sg3-to-g3 system
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag voip Enters dial-peer configuration mode and defines a
dial peer that directs traffic to or from a packet
network.
Example:
Router(config)# dial-peer voice 25 voip • tag—Dial-peer identifier that consists of one or
more digits. Valid entries are from 1 to
2147483647.
• voip—Calls from this dial peer use voice
encapsulation on the packet network.
Step 4 fax protocol {cisco | none | system} Specifies the fax protocol for this dial peer.
• cisco— Cisco-proprietary fax protocol. This is
Example: the default.
Router(config-dial-peer)# fax protocol cisco
• none—No fax protocol.
• system—Use global configuration for this dial
peer.
Step 5 fax rate {12000 | 14400 | 2400 | 4800 | 7200 | 9600 (Optional) Selects the fax transmission speed to be
| disable | voice} [bytes rate] attempted when this dial peer is used.
• 12000, 14400, 2400, 4800, 7200,
Example: 9600—Maximum bits-per-second speed.
Router(config-dial-peer)# fax rate 14400
• disable—Disables fax relay transmission
capability.
• voice—Highest possible transmission speed
allowed by the voice rate. For example, if the
voice codec is G.711, fax transmission occurs at
up to 14400 bps because 14400 bps is less than
the 64-kbps voice rate. If the voice codec is
G.729 (8 kbps), the fax transmission speed is
7200 bps. This is the default.
• bytes rate—(Optional) Fax packetization rate, in
ms. Range is 20 to 48. The default is 20.
Step 6 fax-relay ecm disable (Optional) Disables fax-relay ECM.
Note To enable ECM, use the no form of this
Example: command.
Router(config-dial-peer)# fax-relay ecm disable
Note Fax relay parameters that are set for an individual dial peer under the dial-peer voice command take
precedence over global settings made under the voice service voip command.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. fax protocol {cisco | none}
5. fax-relay sg3-to-g3
DETAILED STEPS
Example:
Router# configure terminal
Step 3 voice service voip Enters voice-service configuration mode.
Example:
Router(config)# voice service voip
Step 4 fax protocol {cisco | none} Specifies the fax protocol for all dial peers.
• cisco— Cisco-proprietary fax protocol.
Example: • none—Disables fax relay and fax pass-through.
Router(config-voi-serv)# fax protocol cisco
Step 5 fax-relay sg3-to-g3 (Optional) Specifies that for SIP and H.323 signaling
types, V.8 fax CM message suppression is enabled for
all dial peers on the digital signal processor (DSP)
Example:
Router(config-voi-serv)# fax-relay sg3-to-g3
firmware. Enabled by default.
VoiceOverIpPeer2000
peer type = voice, information type = voice,
description = `',
tag = 2000, destination-pattern = `',
answer-address = `', preference=0,
Building configuration...
Telephony call-legs: 1
SIP call-legs: 0
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 1
GENERIC:
SetupTime=2635990 ms
Index=1
PeerAddress=7001
PeerSubAddress=
PeerId=7000
PeerIfIndex=19
LogicalIfIndex=5
ConnectTime=2649400 ms
CallDuration=00:00:08 sec
CallState=4
CallOrigin=2
ChargedUnits=0
InfoType=fax
TransmitPackets=506
TransmitBytes=13616
ReceivePackets=134
ReceiveBytes=2388
TELE:
ConnectionId=[0x33333333 0x77777777 0xFFFFFFFF 0xDDDDDDDD
IncomingConnectionId=[0x66666666 0xBBBBBBBB 0x88888888 0xEEEEEEEE
CallID=5
TxDuration=14800 ms
VoiceTxDuration=4150 ms
FaxTxDuration=0 ms
FaxRate=7200 bps
SG3 Fax CM Suppression Type=TDM
NoiseLevel=-69
ACOMLevel=6
OutSignalLevel=-79
InSignalLevel=-73
InfoActivity=1
ERLLevel=6
EchoCancellerMaxReflector=4
SessionTarget=
ImgPages=0
CallerName=
CallerIDBlocked=False
OriginalCallingNumber=
OriginalCallingOctet=0x0
OriginalCalledNumber=
OriginalCalledOctet=0x80
OriginalRedirectCalledNumber=
OriginalRedirectCalledOctet=0x0
TranslatedCallingNumber=7001
TranslatedCallingOctet=0x0
TranslatedCalledNumber=
TranslatedCalledOctet=0x80
TranslatedRedirectCalledNumber=
TranslatedRedirectCalledOctet=0x0
GwCollectedCalledNumber=9102
DSPIdentifier=3/1:1
Telephony call-legs: 1
SIP call-legs: 0
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 1
This chapter describes configuration for T.38 fax relay on an IP network. T.38 is an ITU-T
standards-based method and protocols for fax relay. Data is packetized and encapsulated according to
the T.38 standard. T.38 fax relay includes the following features:
• Fax Relay Packet Loss Concealment
• MGCP Based Fax (T.38) and DTMF Relay
• SIP T.38 Fax Relay
• T.38 Fax Relay for T.37/T.38 Fax Gateway
• T.38 Fax Relay for VoIP H.323
History for the MGCP Based Fax (T.38) and DTMF Relay Feature
Release Modification
12.2(2)XB This feature was introduced.
12.2(8)T This feature was integrated into this release and implemented on the
Cisco 2600 series, Cisco 3600 series, and Cisco 7200 series.
12.2(11)T This feature was implemented on the Cisco AS5300, Cisco AS5350,
Cisco AS5400, and Cisco AS5800.
12.2(11)T2 The gateway force keyword pair was introduced.
12.2(15)T This feature was implemented on the Cisco 1751 and Cisco 1760.
12.4T The mgcp fax t38 inhibit command was no longer configured by default
for MGCP gateways that use the auto-configuration function.
12.4(4)T The mgcp fax-relay sg3-to-g3 command was integrated into Cisco IOS
release 12.4(4)T
History for the H.323 and SIP T.38 Fax Relay Feature
Release Modification
12.2(13)T This feature was introduced.
12.4(4)T The fax-relay sg3-to-g3 command was integrated into Cisco IOS
release 12.4(4)T
History for the T.38 Fax Relay for T.37/T.38 Fax Gateway Feature
Release Modification
12.1(3)X1 This feature was introduced.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring T.38 Fax Relay, page 6-2
• Restrictions for Configuring T.38 Fax Relay, page 6-3
• Information About T.38 Fax Relay, page 6-4
• How to Configure H.323 and SIP T.38 Fax Relay, page 6-10
• How to Configure MGCP T.38 Fax Relay, page 6-16
• Configuration Examples for T.38 Fax Relay, page 6-21
• SIP fax relay does not rely on NSEs to signal a switch to T.38 mode. Standard RFC 2543 and RFC
2327 SIP and SDP signaling are used instead.
• If the fax rate disable command is configured on a dial peer, neither the originating nor the
terminating gateway can enter into Cisco fax relay mode, T.38 fax relay mode, or fax pass-through
mode. The fax rate disable command disables fax transfer support.
• No fallback. The fax is transmitted using the existing voice codec. If modem pass-through has been
configured, the fax is transferred through named service event (NSE) pass-through.
H.323 or SIP Support of Resource Reservation Protocol for T.38 Fax Relay
H.323 or SIP gateways that are configured for T.38 fax relay allow Resource Reservation Protocol
(RSVP) bandwidth adjustments when the original voice call is configured to use RSVP. When the
original voice codec is restored at the end of the fax session, the original RSVP bandwidth is restored as
well. When current bandwidth is unavailable, the fax proceeds at a best-effort rate without RSVP and
with no performance guarantees. RSVP bandwidth adjustments for fax transmissions are made as
follows:
• T.38 fax relay—RSVP bandwidth is adjusted to 80 kbps
• Fax pass-through—RSVP bandwidth is adjusted to 96 kbps
H.323 or SIP T.38 Fax Relay Interworking with Cisco MGCP Gateways
Specify that gateways must use T.38 fax relay and NSEs even though those gateways may be unable to
negotiate those attributes by themselves at the time of call setup. This may happen during negotiations
for fax attributes between H.323 or SIP gateways and MGCP gateways.
Both gateways must be configured to use T.38 fax relay and NSEs. On an H.323 or SIP gateway, use the
fax protocol t38 nse force command. On an MGCP gateway, use the mgcp fax t38 gateway force
command.
MGCP-based fax relay provides two modes of implementation: gateway-controlled mode and
CA-controlled mode. In gateway-controlled mode, a gateway advertises its capabilities using Session
Description Protocol (SDP) messages during the establishment of a call, using the call-control protocol
that was used to establish the call. After the call is established, the connected gateways negotiate the
actual switch from voice to T.38 fax relay by exchanging named service event (NSE) or named telephony
event (NTE) messages embedded in the RTP stream. That transmission is transparent to the CA, which
knows only about the voice call. Gateway-controlled mode allows you to use MGCP-based fax relay
(T.38) without upgrading the CA software to support the capability.
In CA-controlled mode, the gateways rely on the MGCP CA to direct the T.38 fax relay call flow.
Note The CA-controlled mode described in this document makes obsolete the previous method that was
described in Media Gateway Control Protocol-Based Fax (T.38) and Dual Tone Multifrequency (IETF
RFC 2833) Relay. The previous CA-controlled mode for T.38 fax relay used the ca parameter to
communicate with the call agent, and the ca parameter is no longer supported as of Cisco IOS
Release 12.3(1). The previous method has been superseded by the CA-controlled mode described in this
document. Note that the gateway (GW)-controlled mode that is described in the previous document
remains supported and is the same as the GW-controlled mode that is described in this document.
5. When the fax transmission is complete, the MGCP gateway sends the call agent a NTFY command
with an “O: fxr/t38(stop)” parameter. The call agent then has the option of either sending another
MDCX to return to voice or using a Delete Connection (DLCX) command to terminate the call.
MGCP T.38 Fax Relay Interworking with Cisco H.323 and SIP Gateways
Some MGCP call agents do not properly pass those portions of Session Description Protocol (SDP)
messages that advertise T.38 and NSE capabilities. As a result, gateways that are controlled by these call
agents are unable to use NSEs to signal T.38 fax relay to other gateways that use NSEs. As of Cisco IOS
Release 12.2(13)T, you can configure gateways to use T.38 fax relay and NSEs even though those
gateways may be unable to negotiate those attributes by themselves at the time of call setup.
The mgcp fax t38 gateway force command provides a way to ensure gateway-controlled T.38 fax relay
between an MGCP gateway and another gateway. The other gateway in the negotiation can be an H.323,
Session Initiation Protocol (SIP), or MGCP gateway. Both gateways must be configured to use NSEs to
signal T.38 fax relay mode switchover. On H.323 and SIP gateways, use the fax protocol t38 nse force
command to specify the use of NSEs for T.38 fax relay. On MGCP gateways, use the mgcp fax t38
gateway force command.
NSEs are the Cisco-proprietary version of named telephony events (NTEs), which are defined in IETF
RFC 2833. NSEs and NTEs are used to communicate telephony signaling events that are normally
indicated by the presence of tones, such as dual-tone multifrequency (DTMF) or fax transmissions. NSEs
and NTEs do not transmit audible signaling tones across the network, but instead work by sending a
binary code that is later used to recreate a tone. NSEs use different values to represent events and tones
than NTEs use.
NSEs and NTEs are passed in the media stream. They consist of Real-Time Transport Protocol (RTP)
packets that have the same source and destination IP addresses and User Datagram Protocol (UDP) ports
as the rest of the media stream. However, NSE and NTE packets use different RTP payload types than
the rest of the media stream so that they can stand apart from the audio packets in the stream. NSEs are
normally sent with RTP payload type 100.
Note Fax relay parameters that are set for an individual dial peer under the dial-peer voice command take
precedence over global settings made under the voice service voip command.
Configuring One or More Individual VoIP Dial Peers for T.38 Fax Relay
Use the following tasks to configure T.38 Fax Relay for an individual VoIP dial peer.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. dtmf-relay h245-signal
5. fax protocol t38 [nse [force]] [ls-redundancy value [hs-redundancy value]] [fallback {cisco |
none | pass-through {g711ulaw | g711alaw}}
6. fax rate {12000 | 14400 | 2400 | 4800 | 7200 | 9600 | disable | voice} [bytes rate]
7. fax-relay ecm disable
8. fax-relay sg3-to-g3
9. session protocol sipv2
DETAILED STEPS
Example:
Router# configure terminal
Note Fax relay parameters that are set for an individual dial peer under the dial-peer voice command take
precedence over global settings made under the voice service voip command.
SUMMARY STEPS
1. enable
2. configure terminal
3. voice service voip
4. fax protocol t38 [nse [force]] [ls-redundancy value [hs-redundancy value]] [fallback {cisco |
none | pass-through {g711ulaw | g711alaw}}]
5. fax-relay sg3-to-g3
DETAILED STEPS
Example:
Router# configure terminal
Step 3 voice service voip Enters voice-service configuration mode.
Example:
Router(config)# voice service voip
Select one of the following MGCP T.38 fax relay configuration tasks:
– Configuring Gateway-Controlled MGCP T.38 Fax Relay, page 6-17
– Configuring CA-Controlled MGCP T.38 Fax Relay, page 6-19
SUMMARY STEPS
1. enable
2. configure terminal
3. mgcp fax t38 {ecm | gateway force | hs_redundancy value | inhibit | ls_redundancy value |
nsf word}
4. mgcp tse payload value
5. mgcp timer nse-response t38 timer
6. mgcp fax rate {2400 | 4800 | 7200 | 9600 | 12000 | 14400 | voice}
7. mgcp fax-relay sg3-to-g3
DETAILED STEPS
Example:
Router# configure terminal
Note When the MGCP fax rate is set to the highest possible
transmission speed allowed by the voice codec
(mgcp fax rate voice), all MGCP endpoints limit T.38
fax calls to this speed.
Note The values for this command apply only to the fax
transmission speed and do not affect the quality of the
fax itself.
Step 7 mgcp fax-relay sg3-to-g3 Specifies that for MGCP signaling types, V.8 fax CM message
suppression is enabled on the digital signal processor (DSP)
firmware.
Example:
Router(config)# mgcp fax-relay sg3-to-g3
SUMMARY STEPS
1. enable
2. configure terminal
3. no mgcp fax t38 inhibit
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 no mgcp fax t38 inhibit (Optional) Enables T.38 fax relay on the gateway if it has been
previously disabled.
Example: Note T.38 fax relay is enabled on the gateway by default. The
Router(config)# no mgcp fax t38 inhibit command is included here to illustrate how you would
enable T.38 if it were disabled by a previous command.
– The show mgcp [connection | endpoint | statistics] command displays information about
MGCP calls.
– The show voice call summary command indicates, during a T.38 fax transmission, a change of
state from S_CONNECT to S_FAX in the VTSP STATE column and a change from the codec
name to a numeric fax rate in the CODEC column (for example, g711u changes to 14400).
– The debug mgcp packets command displays the MGCP side of the call flow.
For CA-controlled T.38 fax relay, you can verify the MGCP side of the call flow by using the debug
mgcp packets command. You should see the following output:
• CRCX from the call agent with “fxr/fx:t38-loose” or “fxr/fx:t38” parameter
• RQNT from the call agent with “R: fxr/t38” parameter
• NTFY from the gateway with “O: fxr/t38(start)” parameter (optionally)
• MDCX from the call agent with either “m=image” in the SDP message, or “a:image/t38” in the
Local Connection Options message, or both.
For CA-controlled T.38 fax relay, you should see the following messages in the output from a show voice
call summary command on the MGCP gateway during a T.38 fax transmission:
• Change of state from S_CONNECT to S_FAX in the VTSP STATE column
• Change from codec name to numeric fax rate (such as “g711u” to 14400”) in the CODEC column
dial-peer voice 14152 voip ! Uses Cisco fax for a specific dial peer.
destination-pattern 14152..
session target ras
fax protocol cisco
gateway
end
This chapter describes configuration for T.37 store-and-forward fax on H.323 and SIP networks. It
includes the following features:
• Extended Simple Mail Transfer Protocol (ESMTP) Accounting in Store and Forward Fax
• T.37 Store and Forward Fax
History for the Extended Simple Mail Transfer Protocol (ESMTP) Accounting in Store and Forward Fax Feature
Release Modification
12.0(7)T This feature was introduced.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring T.37 Store-and-Forward Fax, page 7-2
• Restrictions for Configuring T.37 Store-and-Forward Fax, page 7-2
• Information About T.37 Store-and-Forward Fax, page 7-2
• How to Download the T.37 Store-and-Forward Fax Scripts, page 7-4
• How to Configure an On-Ramp Gateway for T.37 Store-and-Forward Fax, page 7-5
• How to Configure an Off-Ramp Gateway for T.37 Store-and-Forward Fax, page 7-23
• Configuration Examples for T.37 Store-and-Forward Fax, page 7-43
• Off-ramp faxing, in which a voice gateway that handles calls going out from the network to a fax
machine or the PSTN converts a fax e-mail with a TIFF attachment into a traditional fax format that
can be delivered to a standard fax machine or the PSTN.
On-ramp and off-ramp faxing processes can be combined on a single gateway, or they can occur on
separate gateways. Store-and-forward fax uses two different interactive voice response (IVR)
applications for on-ramp and off-ramp functionality. The applications are implemented in two Tool
Command Language (TCL) scripts that you download from Cisco.com.
The basic functionality of store-and-forward fax is facilitated through Simple Mail Transfer Protocol
(SMTP), with additional functionality that provides confirmation of delivery using existing SMTP
mechanisms, such as Extended Simple Mail Transfer Protocol (ESMTP).
Note The instructions in this chapter assume that your packet network includes separate gateways for on-ramp
and off-ramp functions. For smaller networks that use a single router for both on-ramp and off-ramp
functionality, follow both the on-ramp and off-ramp instructions on the same router.
SUMMARY STEPS
DETAILED STEPS
Note Flash memory is limited to 32 entries, which may prevent your loading all TCL and audio files there.
Note The T.37 Store-and-forward fax configuration tasks are the same for H.323 and SIP networks.
Note Starting with Cisco IOS Release 12.3(14)T, the call application voice configuration commands were
restructured. This application guide uses the new command structure. Configuration commands for
Cisco IOS Release 12.3(11)T and earlier are described in the Cisco IOS Fax Services over IP Application
Guide.
• After you have installed the script at a location that is accessible to the gateway, load it using a name
of your choice. All later commands that refer to this application use the name that you select when
you load the application on the gateway.
SUMMARY STEPS
1. enable
2. configure terminal
3. ip domain-name name
4. fax interface-type {fax-mail | modem}
5. fax receive called-subscriber {$d$ | string}
6. application
7. service service-name location
DETAILED STEPS
Example:
Router# configure terminal
Step 3 ip domain-name name Defines a default domain name that the Cisco IOS software uses
to complete unqualified host names (without dotted-decimal
domain names).
Example:
Router(config)# ip domain-name ABC.com • name—Default domain name used to complete unqualified
host names. Do not include the initial period that separates
an unqualified name from the domain name.
Note Cisco AS5300 gateways must be reloaded for this
command to take effect.
Note For typical network operations, we recommend that you use the default configuration for
image resolution/encoding on outbound MMoIP dial peers.
Note To learn about other methods of dial peer matching, see the “Dial Peer Configuration on Voice Gateway
Routers”.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag pots
4. application application-name
5. direct-inward-dial
6. incoming called-number string
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag pots Enters dial-peer configuration mode and defines a local dial peer
that directs traffic to or from a POTS interface.
Example: • tag—Dial-peer identifier that consists of one or more digits.
Router(config)# dial-peer voice 24 pots Valid entries are from 1 to 2147483647.
• pots—Specifies that this dial peer directs traffic to or from
a POTS interface.
Step 4 application application-name Associates the on-ramp store-and-forward fax application with
this dial peer.
Example: • application-name—Name that was defined for the on-ramp
Router(config-dial-peer)# application store-and-forward fax application in “Enabling T.37
onramp-app Store-and-Forward Fax on the On-Ramp Gateway” section
on page 7-5.
Step 5 direct-inward-dial Enables the direct inward dial (DID) call treatment for incoming
called numbers, in which the entire incoming dial string is used
to find a matching outbound dial peer. The gateway does not
Example:
Router(config-dial-peer)#
present a dial tone to the caller and does not collect digits; the
direct-inward-dial setup message contains all the digits necessary to route the call.
Step 6 incoming called-number string Defines the called number (dialed number identification service
or DNIS) string. The called number is used to match the
incoming call leg to an inbound dial peer.
Example:
Router(config-dial-peer)# incoming • string—Specifies the incoming called telephone number.
called-number 5105551212 Valid entries are any series of digits that specify the E.164
telephone number.
Note A gateway that is used for both voice calls and inbound
T.37 fax calls requires one inbound POTS dial peer for
voice calls (without the application command) and one
inbound POTS dial peer for T.37 fax calls (with the
application command).
Note For typical network operations, we recommend that you use the default configuration for image
resolution/encoding on outbound MMoIP dial peers. You should only configure additional outbound
MMoIP dial peers for troubleshooting or when you need to force a dial peer into a specific
resolution/encoding while receiving a fax. Changing this configuration might cause fax negotiation
failure.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag mmoip
4. application fax_on_vfc_onramp_app out-bound
5. destination-pattern [+]string[T]
6. information-type fax
7. session protocol smtp
8. session target {mailto:{host-name | $d$ | $m$}@domain-name | ipv4:destination-address |
dns:{$d$.| $e$. | $s$. | $u$.}host-name}
9. image encoding {mh | mr | mmr | passthrough}
10. image resolution {fine | standard | super-fine | passthrough}
11. max-conn number
12. dsn {delay | failure | success}
13. mdn
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag mmoip Enters dial-peer configuration mode and defines a local dial peer
that directs traffic to or from an SMTP server.
Example: • tag—Dial-peer identifier that consists of one or more digits.
Router(config)# dial-peer voice 17 mmoip Valid entries are from 1 to 2147483647.
• mmoip—Specifies that this dial peer conducts traffic to or
from an SMTP server.
Note The mta send mail-from username and mta send mail-from hostname commands define the From:
username. The To: address is defined using the session target command on the on-ramp gateway MMoIP
dial peer.
SUMMARY STEPS
1. enable
2. configure terminal
3. mta send server {host-name | ip-address [port port-number]}
4. mta send postmaster e-mail-address
5. mta send mail-from hostname string
6. mta send mail-from username {string | $s$}
7. mta send subject string
8. mta send origin-prefix string
9. mta send return-receipt-to {hostname string | username string | username $s$}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mta send server {host-name | ip-address Specifies a destination server. This command can be repeated to
[port port-number]} define up to ten mail servers for backup purposes. DNS mail
exchange (MX) records are not used to look up the host names
Example: provided to this command.
Router(config)# mta send server • host-name—String that contains the name of the destination
california.fax.com
e-mail server.
• ip-address—String that contains the IP address of the
destination e-mail server.
• port port-number—(Optional) Keyword-argument pair that
designates a particular port to use for the e-mail server. The
default is 25.
Note When using this command, configure the gateway to
perform name lookups using the ip name-server
command.
Step 4 mta send postmaster e-mail-address Identifies where an e-mail message should be delivered (the mail
server postmaster account) if the evaluated string from the mta
send mail-from command or the Simple Mail Transfer Protocol
Example:
Router(config)# mta send postmaster
(SMTP) server is blank.
[email protected] • e-mail-address—Character string that defines the address to
which an undeliverable e-mail should be diverted (the mail
server postmaster account).
Step 5 mta send mail-from hostname string Specifies the originator (host-name portion) of the e-mail fax
message. This information appears in the RFC 822 From: field
and the RFC 821 MAIL FROM field of the e-mail fax message.
Example:
Router(config)# mta send mail-from hostname
This information is also used for generating delivery status
newyork.fax.com notifications (DSNs).
When the mta send mail-from hostname command is
configured, the configured host name is used with the mta send
mail-from username command to form a complete e-mail
address, such as [email protected].
• string—Character string that specifies the SMTP host name
or IP address of the e-mail originator. If you specify an
IP address, you must enclose the IP address in brackets as
follows: [xxx.xxx.xxx.xxx].
Note The following steps are also used in other tasks, but they are repeated here to show the complete set of
steps that are used to generate DSNs.
SUMMARY STEPS
1. enable
2. configure terminal
3. mta send mail-from hostname string
4. mta send mail-from username {string | $s$}
5. dial-peer voice tag mmoip
6. dsn {delayed | success | failure}
DETAILED STEPS
Example:
Router# configure terminal
Step 6 dsn {delayed | failure | success} See “Configuring One or More Outbound MMoIP Dial Peers”
section on page 7-9.
Example:
Router(config-dial-peer)# dsn failure
Note Steps 10 through 13 do not apply to Cisco AS5300 gateways with modem cards.
SUMMARY STEPS
1. enable
2. configure terminal
3. aaa new-model
4. aaa authentication login fax radius
5. aaa accounting connection fax start-stop group radius
6. radius-server host ip-address auth-port number acct-port number
7. radius-server key {0 string | 7 hidden-string | string}
8. radius-server vsa send accounting
9. radius-server vsa send authentication
10. mmoip aaa method fax authentication method-list-name
11. mmoip aaa receive-authentication enable
12. mmoip aaa method fax accounting method-list-name
13. mmoip aaa receive-accounting enable
DETAILED STEPS
Example:
Router# configure terminal
Step 3 aaa new-model Enables AAA security and accounting services.
Example:
Router(config)# aaa new-model
Step 4 aaa authentication login fax radius Defines a method list called fax in which RADIUS is defined as
the only method of login authentication.
Example: Note The method list name (fax) must match the name used in
Router(config)# aaa authentication login “Configuring T.37 IVR Application Security and
fax radius Accounting” section on page 7-21.
Step 5 aaa accounting connection fax start-stop Defines the accounting method list called fax with RADIUS as
group radius a method and with an option to send both start and stop
accounting records to the AAA server.
Example: Note The method list name (fax) must match the name used in
Router(config)# aaa accounting connection “Configuring T.37 IVR Application Security and
fax start-stop group radius
Accounting” section on page 7-21.
Note The commands in this section configure an IVR application, and they are not supported by Cisco IOS
help. If you type param accounting-list ?, for example, the Cisco IOS software does not supply a list
of entries that are valid in place of the question mark because the IVR application commands pass
parameters to the named TCL script, rather than to the Cisco IOS software.
SUMMARY STEPS
1. enable
2. configure terminal
3. application
4. service service-name location
5. param accounting enable
6. param accounting-list method-list-name
7. param authentication enable
8. param authen-list method-list-name
9. param authen-method {prompt-user | ani | dnis | gateway | redialer-id | redialer-dnis}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 application Enters application configuration mode to configure voice
applications and services.
Example:
Router(config)# application
Step 4 service service-name location Loads a VoiceXML document or Tcl script and define its
application name.
Example: • service-name—Name that identifies the voice application.
Router(config-app)# service fax_detect This is a user-defined name and does not have to match the
flash:app_fax_detect.2.1.2.2.tcl script name.
• location—Directory and filename of the Tcl script or
VoiceXML document in URL format. For example, Flash
memory (flash:filename), a TFTP (tftp://../filename) or an
HTTP server (http://../filename) are valid locations
Step 5 param accounting enable Enables AAA accounting for a TCL application
Example:
Router(config-app)# param accounting enable
Step 6 param accounting-list method-list-name Defines the name of the accounting method list to be used for
AAA with store-and-forward fax on a voice feature card (VFC)
Example: • method-list-name—Character string used to name a list of
Router(config-app)# param accounting-list accounting methods to be used with store-and-forward fax.
fax
Note The method list name should match the name used in
“Configuring Security and Accounting on the On-Ramp
Gateway” section on page 7-18.
Step 7 param authentication enable Enables AAA authentication for a TCL application.
Example:
Router(config-app)# param authentication
enable
Various aspects of the off-ramp gateway must be configured to enable the preceding actions. The
off-ramp gateway uses dial peers to route calls to appropriate POTS voice ports. An IVR application
handles the conversion of fax messages. In addition, you can configure the gateway to request
notification when the fax messages are delivered. AAA security and accounting are also important for
off-ramp fax services.
Off-ramp gateway configuration for store-and-forward fax consists of the following tasks:
• Enabling T.37 Store-and-Forward Fax on the Off-Ramp Gateway, page 7-24
• Configuring Dial Peers on the Off-Ramp Gateway, page 7-26
• Configuring Fax Headers and Cover Pages on the Off-Ramp Gateway, page 7-30
• Configuring MTA Parameters on the Off-Ramp Gateway, page 7-34
• Configuring MDNs on the Off-Ramp Gateway, page 7-36
• Configuring Security and Accounting on the Off-Ramp Gateway, page 7-37
• Configuring T.37 IVR Application Security and Accounting on the Off-Ramp Gateway, page 7-41
Note Starting with Cisco IOS Release 12.3(14)T, the call application voice configuration commands were
restructured. This application guide uses the new command structure. Configuration commands for
Cisco IOS Release 12.3(11)T and earlier are described in the Cisco IOS Fax Services over IP Application
Guide.
Prerequisites
This section describes prerequisites for enabling T.37 store-and-forward fax on the off-ramp gateway.
• The T.37 application that processes fax calls on inbound MMoIP dial peers is an IVR application
written in a Tool Command Language (TCL) script. Download the script from Cisco.com and install
it on your network before you load the T.37 application on the gateway (see the “How to Download
the T.37 Store-and-Forward Fax Scripts” section on page 7-4).
• After you have installed the script at a location that is accessible to the gateway, load it using a name
of your choice. All later commands that refer to this application use the name that you select when
you load the application on the gateway.
SUMMARY STEPS
1. enable
2. configure terminal
3. ip domain-name name
DETAILED STEPS
Example:
Router# configure terminal
Step 3 ip domain-name name Defines a default domain name that the Cisco IOS software uses
to complete unqualified host names (without dotted-decimal
domain names).
Example:
Router(config)# ip domain-name ABC.com • name—Default domain name used to complete unqualified
host names. Do not include the initial period that separates
an unqualified name from the domain name.
Note Cisco AS5300 gateways must be reloaded for this
command to take effect.
Step 4 fax interface-type {fax-mail | modem} Enables T.37 functionality and specifies the type of fax
processing.
Example: • fax-mail—Uses voice cards for the T.37 interface. This is
Router(config)# fax interface-type fax-mail the default for all platforms except the Cisco AS5300 and
for Cisco AS5300 gateways with VFC cards only.
• modem—(Cisco AS5300 only) Uses modem cards for the
T.37 interface. This is the default for Cisco AS5300
gateways with modem cards only or with a combination of
modem and VFC cards.
Note If you change the fax interface type with this command,
the gateway must be reloaded in order for the new setting
to take effect.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag mmoip
4. application application-name
5. incoming called-number string
6. information-type fax
7. image encoding {mh | mr | mmr | passthrough}
8. image resolution {fine | standard | super-fine | passthrough}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag mmoip Enters dial-peer configuration mode and defines a local dial peer
that directs traffic to or from an SMTP server.
Example: • tag—Dial-peer identifier consisting of one or more digits.
Router(config)# dial-peer voice 29 mmoip The range is 1 to 2147483647.
• mmoip—Specifies that this dial peer conducts traffic to or
from an SMTP server.
Step 4 application application-name Names the IVR application to which calls from this dial peer are
handed off.
Example: • application-name—Name of the off-ramp T.37 application,
Router(config-dial-peer)# application as in “Enabling T.37 Store-and-Forward Fax on the
offramp-app Off-Ramp Gateway” section on page 7-24.
Step 5 incoming called-number string Defines the dialed number identification service (DNIS) string,
or called fax telephone number. The called number is used to
match the incoming call leg to an inbound dial peer.
Example:
Router(config-dial-peer)# incoming • string—Specifies the incoming called telephone number.
called-number 14085552345 Valid entries are any series of digits that specify the E.164
telephone number.
Step 6 information-type fax Identifies calls associated with this dial peer as being fax
transmissions, not voice calls.
Example:
Router(config-dial-peer)# information-type
fax
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag pots
4. destination-pattern [+]string[T]
5. port voice-port
6. prefix string
7. max-conn number
DETAILED STEPS
Example:
Router# configure terminal
Note Because the off-ramp gateway does not alter fax TIFF attachments, fax headers cannot be configured for
faxes that are being converted from TIFF files to standard fax transmissions.
SUMMARY STEPS
1. enable
2. configure terminal
3. fax send center-header {$a$ | $d$ | $p$ | $s$ | $t$ | string}
4. fax send right-header {$a$ | $d$ | $p$ | $s$ | $t$ | string}
5. fax send left-header {$a$ | $d$ | $p$ | $s$ | $t$ | string}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 fax send center-header {$a$ | $d$ | $p$ | Specifies the header information to be displayed in the center
$s$ | $t$ | string} position.
• $a$—Date.
Example:
Router(config)# fax send center-header $d$
• $d$—Destination address.
• $p$—Page count.
• $s$—Sender address.
• $t$—Transmission time.
• string—Combination of text and tokens.
Step 4 fax send right-header {$a$ | $d$ | $p$ | Specifies the header information to be displayed on the right.
$s$ | $t$ | string}
• $a$—Date.
• $d$—Destination address.
Example:
Router(config)# fax send right-header $t$ • $p$—Page count.
• $s$—Sender address.
• $t$—Transmission time.
• string—Combination of text and tokens.
Note Because the off-ramp gateway does not alter fax TIFF attachments, cover pages cannot be configured for
faxes that are being converted from TIFF files to standard fax transmissions.
SUMMARY STEPS
1. enable
2. configure terminal
3. fax send coverpage enable
4. fax send coverpage comment string
5. fax send coverpage show-detail
6. fax send coverpage email-controllable
DETAILED STEPS
Example:
Router# configure terminal
Step 3 fax send coverpage enable Enables the off-ramp gateway to send cover sheets with faxes
that originate from e-mail messages.
Example:
Router(config)# fax send coverpage enable
Table 7-1 contains examples of entries in the e-mail To: field to control the generation of fax cover pages
and explains how these entries relate to the fax send coverpage enable command.
Table 7-1 Sample To: Field Descriptions for Fax Cover Pages
Table 7-1 Sample To: Field Descriptions for Fax Cover Pages (continued)
SUMMARY STEPS
1. enable
2. configure terminal
3. mta receive aliases string
4. mta receive maximum-recipients number
5. mta receive generate
DETAILED STEPS
Example:
Router# configure terminal
This text is followed by the address of the sender as defined in the mta send return-receipt-to
command.
SUMMARY STEPS
1. enable
2. configure terminal
3. mta receive generate-mdn
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mta receive generate-mdn Instructs the off-ramp gateway to respond to and process MDN
requests from the SMTP server.
Example:
Router(config)# mta receive generate-mdn
Note It is recommended that access control lists (ACLs) be configured to restrict which IP addresses can
connect to the SMTP port (port 25). For information about configuring ACLs, see the Cisco IOS Security
Configuration Guide. We recommend that the off-ramp gateway accept incoming SMTP connections
only from trusted mailers. Configure packet filters to permit only certain trusted IP addresses to send
faxes to the store-and-forward fax off-ramp gateway.
Note Steps 10 through 13 do not apply to Cisco AS5300 gateways with modem cards.
SUMMARY STEPS
1. enable
2. configure terminal
3. aaa new-model
4. aaa authentication login fax radius
5. aaa accounting connection fax start-stop group radius
6. radius-server host host auth-port number acct-port number
7. radius-server key {0 string | 7 hidden-string | string}
8. radius-server vsa send accounting
9. radius-server vsa send authentication
10. mmoip aaa method fax authentication method-list-name
11. mmoip aaa receive-authentication enable
12. mmoip aaa method fax accounting method-list-name
13. mmoip aaa receive-accounting enable
DETAILED STEPS
Example:
Router# configure terminal
Step 3 aaa new-model Enables AAA security and accounting services.
Example:
Router(config)# aaa new-model
Step 4 aaa authentication login fax radius Defines a method list called fax in which RADIUS is defined as
the only method of login authentication.
Example: Note The method list name (fax) should match the name used
Router(config)# aaa authentication login in “Configuring T.37 IVR Application Security and
fax radius Accounting on the Off-Ramp Gateway” section on
page 7-41.
Step 5 aaa accounting connection fax start-stop Defines the accounting method list called fax with RADIUS as
group radius a method and with an option to send both start and stop
accounting records to the AAA server. The fax method list is
Example: static and is applied by default to all voice interfaces.
Router(config)# aaa accounting connection Note The method list name (fax) should match the name used
fax start-stop group radius
in “Configuring T.37 IVR Application Security and
Accounting on the Off-Ramp Gateway” section on
page 7-41.
Step 6 radius-server host host auth-port number Identifies the RADIUS server and the ports that is used for
acct-port number authentication and accounting services. You can use multiple
radius-server host commands to specify multiple hosts. The
Example: software searches for hosts in the order in which you specify
Router(config)# radius-server host them.
accthost.ABC.com auth-port 2222 acct-port
• host—Host name or IP address of the RADIUS server host.
2223
• number—Port number for authentication or accounting
requests. If set to 0, the host is not used. If unspecified for
authentication, the port number defaults to 1645. If
unspecified for accounting, the port number defaults
to 1646.
Note For complete information about configuring ACLs, see the relevant chapters in the Cisco IOS Security
Configuration Guide.
SUMMARY STEPS
1. enable
2. configure terminal
3. application
4. service service-name location
5. param accounting enable
6. param accounting-list method-list-name
7. param authentication enable
8. param authen-list method-list-name
9. param authen-method {prompt-user | ani | dnis | gateway | redialer-id | redialer-dnis}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 application Enters application configuration mode to configure voice
applications and services.
Example:
Router(config)# application
Example:
Router(config-app)# param accounting enable
Step 6 param accounting-list method-list-name Defines the name of the accounting method list to be used for
AAA with store-and-forward fax on a voice feature card (VFC).
Example: • method-list-name—Character string used to name a list of
Router(config-app)# param accounting-list accounting methods to be used with store-and-forward fax.
fax
Note The method list name should match the name used in
“Configuring Security and Accounting on the Off-Ramp
Gateway” section on page 7-37.
Step 7 param authentication enable Enables AAA authentication for a TCL application.
Example:
Router(config-app)# param authentication
enable
Step 8 param authen-list method-list-name Specifies the name of an authentication method list for a TCL
application.
Example: • method-list-name—Character string used to name a list of
Router(config-app)# param authen-list fax authentication methods to be used with store-and-forward
fax.
Note The method list name should match the name used in
“Configuring Security and Accounting on the Off-Ramp
Gateway” section on page 7-37.
Troubleshooting Tips
Use the following show commands to troubleshoot store-and-forward fax on both the on-ramp and
off-ramp gateways.
• show dial-peer voice [tag] [summary]—Displays configuration information for MMoIP and POTS
dial peers so that you can verify that store-and-forward fax is enabled.
• show call application voice summary—Lists all voice applications that are loaded on the router so
that you can confirm that the scripts that you are interested in are loaded.
• show call application voice application-name—Displays the line-by-line contents of the TCL script
associated with the specified application.
• show accounting—No specific show command exists for either RADIUS or TACACS+ accounting.
To obtain accounting records that display information about users currently logged in, use the show
accounting command.
! Define the called subscriber number. In this case, the number configured as the
! destination pattern will be used as the called subscriber identifier.
fax receive called-subscriber $d$
!
! Specify the originator of the e-mail address. In this case, the originator information
! is derived from the calling number.
mta send mail-from username $s$
!
! (Optional) Provide additional information about the sending device. In this example,
! the sending device's hostname is alabama
mta send origin-prefix alabama
!
! Define where this fax-mail should be delivered (which is the mail server postmaster
! account) if it cannot be delivered to the defined destination.
mta send postmaster [email protected]
!
! (Optional) If configuring MDNs, specify the address to which they should be
! sent.
mta send return-receipt-to username [email protected]
!
! Specify the destination e-mail server that accepts on-ramp fax mail.
mta send server california.fax.com
!
! Define the text string that will be displayed as the subject of the fax mail.
mta send subject Fax-Mail Message
!
! Enter dial-peer configuration mode and define an on-ramp POTS peer.
dial-peer voice 1000 pots
!
! Designate fax as the type of information handled by this dial peer.
information-type fax
!
! Specify direct inward dial for this dial peer.
direct-inward-dial
!
! Define the incoming called number associated with this dial peer.
incoming called number 5105550119
!
! (Optional) Define the maximum number of connections that will be used simultaneously
!
! Specify that the company name will appear in the center position of the fax
! header information.
fax send center-header Acme Company
!
! Specify that the page count will appear in the right position of the fax header
! information.
fax send right-header $p$
!
! Specify that the date will appear in the left position of the fax header
! information.
fax send left-header $a$
!
! Enable the Cisco AS5300 device to send a cover sheet with faxes that originate from
! e-mail messages.
fax send coverpage enable
!
! Add a personalized comment to the title field of the fax cover sheet. In this case,
! the phrase FAX TRANSMISSION was added.
fax send coverpage comment FAX TRANSMISSION
!
! Enter dial-peer configuration mode and define an off-ramp POTS dial peer.
dial-peer voice 1002 pots
!
! Designate fax as the type of information handled by this dial peer.
information-type fax
!
! Define a telephone number to be associated with this dial peer.
destination-pattern 1408555....
!
! Add prefix.
prefix 9,555
!
! Define an off-ramp MMoIP peer.
dial-peer voice 1003 mmoip
!
! Designate fax as the type of information handled by this dial peer.
information-type fax
!
! Define an incoming called number to be associated with this dial peer.
incoming called-number 14085550020
!
! Specify a particular fax image resolution. In this example, the image resolution was
! set to 204 by 196 pixels per inch (fine).
image resolution fine
!
!
ip subnet-zero
ip host mars 192.168.254.254
ip host saturn 172.28.129.150
ip domain-name abcwrecking.com
ip name-server 10.14.116.1
!
! Used for fallback from T.38 fax relay to T.37 fax.
voice hunt user-busy
!
!
! Global service for fax relay.
voice service voip
fax protocol t38 ls_redundancy 0 hs_redundancy 0
!
application
service app_offramp tftp://mars/libretto-test/app_offramp5.tcl
param authen-list fax
param authen-method gateway
param accounting-list fax
!
application
service app_onramp tftp://mars/smith/faxdir/onramp13.nc.tcl
param authen-list fax
param authen-method gateway
param language 1 en
param accounting-list fax
application
service app_onramp set-location en 0 tftp://mars/smith/WV/en_new/
!
fax receive called-subscriber $d$
fax send transmitting-subscriber $s$
fax send left-header $s$
fax send center-header $t$
fax send right-header Page: $p$
fax send coverpage enable
fax send coverpage email-controllable
fax send coverpage comment ABC Wrecking cover page
mta receive aliases [10.14.120.2]
mta send server saturn_smtp_server
mta send subject "Facsimile Transmission"
mta send origin-prefix ABCWrecking Fax
mta send postmaster postmaster [email protected]
mta send mail-from hostname saturn
mta send mail-from username fax-user
mta send return-receipt-to hostname return.host.com
mta send return-receipt-to username $s$
mta receive aliases bock.abcwrecking.com
mta receive aliases abcwrecking.com
mta receive maximum-recipients 200
mta receive generate-mdn
!
!
controller T1 1/1
framing esf
clock source line primary
linecode b8zs
ds0-group 0 timeslots 1-24 type e&m-fgd
!
interface Ethernet0
ip address 10.14.120.2 255.255.0.0
no ip directed-broadcast
!
interface FastEthernet0
no ip address
no ip directed-broadcast
shutdown
duplex auto
speed auto
!
ip default-gateway 10.14.0.1
ip classless
ip route 192.168.254.0 255.255.255.0 10.14.0.1
no ip http server
!
!
voice-port 1/1:0
!
!
! Inbound peer for T.37 on-ramp operation.
dial-peer voice 2 pots
application app_onramp
incoming called-number 5......
direct-inward-dial
port 1/1:0
!
! Outbound peer for T.37 on-ramp operation.
dial-peer voice 3 mmoip
! The application named below must be exactly as shown!
application fax_on_vfc_onramp_app out-bound
destination-pattern 57108..
session target mailto:[email protected]
! MDN and DSN configuration can be set in this peer.
!
! Inbound peer for T.37 off-ramp operation.
dial-peer voice 21 mmoip
application app_offramp
incoming called-number 5......
information-type fax
!
! Outbound peer for T.37 off-ramp operation.
dial-peer voice 20 pots
destination-pattern 5......
port 1/1:0
prefix 5
This chapter describes configuration for the fax detection (single-number voice and fax) feature on an
IP network. Fax detection is the capability to detect automatically whether an incoming call is voice or
fax.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Fax Detection, page 8-2
• Restrictions for Configuring Fax Detection, page 8-2
• Information About Fax Detection, page 8-3
• How to Download the Fax-Detection Application and Default Audio-Prompt Files, page 8-5
• How to Load the Fax Detection Application, page 8-7
Note Although the TCL-IVR scripts have built-in customization options, we recommend that you
contact Cisco Developer Support before you add specific IVR prompts. For more
information, see the “Developer Support” section on page 1-23.
Connect-First Mode
(Default) When you configure connect-first mode on the gateway, incoming calls are connected
immediately to the voice-mail server, which plays a greeting, or audio prompt, based upon the number
called. Because this greeting is generated by the voice-mail application rather than by the gateway, each
E.164 number can have its own custom prompt.
The gateway listens for distinctive CNG (fax) tones during the prompt and for the remainder of the call.
If the gateway hears CNG at any time, the voice-mail application is disconnected and the call is passed
on to the fax relay or store-and-forward fax application, depending on which was configured on the
gateway. Note that non-CNG faxes are not supported in this mode.
If any dialed digits, or DTMF tones, are detected during the call, they are relayed to the voice-mail server
using the DTMF signaling protocol configured on the dial peer. The gateway does not listen for DTMF
and does not interpret DTMF.
The connect-first mode is useful when you expect that most incoming calls will be voice. The cost of
this mode is the added load on the voice-mail application, which is now required to answer fax calls also.
This mode is the default if no mode is configured.
Listen-First Mode
When listen-first mode is configured on the gateway and an incoming call is received, the gateway can
play a configurable audio prompt to greet the caller or provide instructions.
Note If an audio file for this prompt has not been specified during configuration, the caller hears
9 seconds of silence. We recommend configuring a prompt.
The gateway listens for CNG for 9 seconds before passing the call to an application or server. If CNG is
detected, the call is passed to the fax relay or store-and-forward fax application, whichever is configured
on the gateway. If CNG is not heard during the first 9 seconds, the call is passed to the voice-mail server.
Non-CNG faxes are not supported in this mode.
If any DTMF tones are detected, the call is connected to the voice server. Once a call is connected to the
voice server, DTMF tones are relayed using the DTMF signaling protocol that has been configured on
the dial peer.
In listen-first mode, CNG fax calls are never automatically connected to the voice-mail server, so this
mode is useful when CNG fax calls constitute a significant proportion of the calls to this E.164 number.
Default-Voice Mode
When default-voice mode is configured on the gateway and an incoming call is received, the gateway
can play a configurable audio prompt to greet the caller or provide instructions.
Note If the audio file for this prompt has not been specified during configuration, the caller hears
9 seconds of silence. We recommend configuring a prompt.
In default-voice mode, during configuration you can specify a DTMF digit for incoming callers to press
to manually select the voice-mail server and another digit that they can press to select the fax application.
When the gateway detects either of these configured DTMF digits, the call is connected as requested.
The gateway listens for CNG for 9 seconds before passing the call to an application. If CNG is detected,
the call is passed to the fax relay or store-and-forward fax application, whichever is configured on the
gateway. If CNG is not heard during the first 9 seconds, the call is passed to the voice-mail server.
If any DTMF tones are detected, the gateway interprets the DTMF. If the tones match the DTMF digit
configured for voice, the call is passed to the voice-mail server. If the tones match the DTMF digit
configured for fax, the call is passed to the fax application. If the tones do not match either the voice or
fax digit, the prompt is replayed. Once a call has been connected to the voice server, subsequent DTMF
tones are relayed using the DTMF signaling protocol that has been configured on the dial peer.
Non-CNG-compliant faxes are supported in the default-voice mode when the caller manually selects the
fax application by pressing the keypad key to send the DTMF digit designated for fax.
Default-Fax Mode
When default-fax mode is configured on the gateway and an incoming call is received, the gateway can
play a configurable audio prompt to greet the caller or provide instructions.
Note If the audio file for this prompt has not been specified during configuration, the caller hears
9 seconds of silence. We recommend configuring a prompt.
During configuration you can specify a DTMF digit that incoming callers can press to manually select
the voice-mail server and another digit that they can press to select the fax application. When the gateway
detects either of these configured DTMF digits, the call is immediately connected as requested.
The gateway listens for CNG for 9 seconds before passing the call to an application. If CNG is detected,
the call is passed to the fax relay or store-and-forward fax application, whichever is configured on the
gateway. If CNG is not heard during the first 9 seconds, the call is passed to the fax relay or
store-and-forward fax application.
If any DTMF tones are detected, the gateway interprets the DTMF. If the tones match the DTMF digit
configured for voice, the call is passed to the voice-mail server. If the tones match the DTMF digit
configured for fax, the call is passed to the fax application. If the tones do not match either the voice
digit or the fax digit, the prompt is replayed. Once a call has been connected to the voice server,
subsequent DTMF tones are relayed using the DTMF signaling protocol that has been configured on the
dial peer.
The default-fax mode is useful when fax calls constitute a significant proportion of the calls. In addition,
this mode supports non-CNG-compliant faxes, without requiring the manual activation of a DTMF tone.
Audio Prompts
All of the fax detection modes except connect-first require you to install audio prompt files, or greetings,
to tell callers how to send voice or fax to the called number. Default audio prompt files are included in
the same zip file on Cisco.com that contains the TCL script. You may also create your own audio prompts
to customize the greeting. In either case, the audio files must be installed in a location that is accessible
by the gateway. The wording of the default gateway prompts is shown in Table 8-1.
SUMMARY STEPS
DETAILED STEPS
Note Flash memory is limited to 32 entries, which may prevent your loading all TCL and audio files there.
Note All subsequent commands that refer to the fax detection application use the name that you select when
you load the application on the gateway.
Prerequisites
This sections describes the prerequisites for configuring fax detection.
• Download the fax detection application script named fax_detect_2.1.2.0.tcl to your TFTP server.
The fax_detect_2.1.2.0.tcl script is used to automatically route single-number fax calls to an MMoIP
dial peer when configured in a T.37 fax store-and-forward environment. The script automatically
appends a prefix to the dialed digits for the fax call, allowing the router to match the call to the
appropriate user-defined dial peer based on its “new” destination pattern. This script is not intended
to be used in a T.38 fax environment where VoIP dial peers can handle both voice and fax
transmissions without the need for such dial peer manipulation.
• If you plan to use one of the modes of fax detection that plays an audio prompt for callers, ensure
that you have the necessary audio files in the .au format on your TFTP server. For more information
about the audio files, see the “How to Download the Fax-Detection Application and Default
Audio-Prompt Files” section on page 8-5.
SUMMARY STEPS
1. enable
2. configure terminal
3. application
4. service service-name location
DETAILED STEPS
Example:
Router# configure terminal
Step 3 application Enters application configuration mode to configure voice
applications and services.
Example:
Router(config)# application
Step 4 service service-name location Loads a VoiceXML document or Tcl script and defines its
application name.
Example: • service name location—Directory and filename of the Tcl
Router(config-app)# service fax_detect script or VoiceXML document in URL format. For example,
flash:app_fax_detect.2.1.2.2.tcl Flash memory (flash:filename), a TFTP (tftp://../filename)
or an HTTP server (http://../filename) are valid locations.
Note Starting with Cisco IOS Release 12.3(14)T, the call application voice configuration commands were
restructured. This application guide uses the new command structure. Configuration commands for
Cisco IOS Release 12.3(11)T and earlier are described in the Cisco IOS Fax Services over IP Application
Guide.
Note These configuration tasks assume that your network uses separate routers for on-ramp and off-ramp
functions. For smaller networks that use a single router for both on-ramp and off-ramp functionality,
configure the on-ramp and off-ramp tasks on the same router.
Use the following tasks to configure the fax detection application on the on-ramp Gateway:
• Configuring Fax Detection on the On-Ramp Gateway, page 8-9
• Configuring Dial Peers on the On-Ramp Gateway, page 8-10
• Configuring Fax Detection for the Off-Ramp Gateway, page 8-15
Note The commands in this section configure an IVR application, and they are not supported by Cisco IOS
help. If you type param mode ?, for example, the Cisco IOS help does not supply a list of entries that
are valid in place of the question mark, because the IVR application commands pass parameters to the
named TCL script, rather than to the Cisco IOS software.
SUMMARY STEPS
1. enable
2. configure terminal
3. application
4. service service-name location
5. param mode {connect-first | default-fax | default-voice | listen-first}
6. param prompt prompt-url
7. param voice-dtmf {0|1|2|3|4|5|6|7|8|9|*|#}
8. param fax-dtmf {0|1|2|3|4|5|6|7|8|9|*|#}
9. param account-id-method {none | ani | dnis | gateway}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 application Enters application configuration mode to configure voice
applications and services.
Example:
Router(config)# application
Step 4 service service-name location Loads a VoiceXML document or Tcl script and define its
application name.
Example: • service-name—Name that identifies the voice application.
Router(config-app)# service fax_detect This is a user-defined name and does not have to match the
flash:app_fax_detect.2.1.2.2.tcl script name.
• location—Directory and filename of the Tcl script or
VoiceXML document in URL format. For example, Flash
memory (flash:filename), a TFTP (tftp://../filename) or an
HTTP server (http://../filename) are valid locations.
The inbound dial peer describes the inbound call leg from the telephony connection to the gateway, and
is called a plain old telephone service (POTS) dial peer. POTS dial peers define the characteristics of the
telephony (PSTN) connection between the sending fax device or voice instrument and the gateway to the
IP network. In general, the gateway uses the line characteristics defined by POTS dial peers to determine
call type and call destination. The gateway then finds an outbound dial peer whose configured
parameters match these attributes and routes the call to it. You can establish more than one POTS dial
peer if you want different incoming calls to receive different handling. The fax detection application is
enabled on the inbound dial peer.
One of the two types of outbound dial peers in the gateway router is the outbound Voice-over-IP (VoIP)
dial peer, which describes the VoIP call leg from the router to the voice-mail server or voice path. You
configure this dial peer exactly as you would configure an ordinary VoIP dial peer for voice calls.
The second type of outbound dial peer on the on-ramp gateway must be a fax dial peer. The fax dial peer
can be either a Multimedia Mail over IP (MMoIP) dial peer, which describes an IP call leg for
store-and-forward fax, or a VoIP dial peer configured for fax relay. The MMoIP dial peer is configured
with the fax_on_vfc_onramp_app IVR application in the outbound mode, just the same as the standard
configuration for store-and-forward fax. The VoIP dial peer for fax is configured exactly the same as the
standard configuration for fax relay; no IVR application is required on this dial peer.
Configuration of dial peers for fax detection is described in the following sections:
• Configuring One or More Inbound POTS Dial Peers
• Configuring One or More Outbound VoIP Dial Peers for Voice
• Configuring One or More Outbound VoIP Dial Peers for T.38 Fax Relay
• Configuring One or More Outbound MMoIP Dial Peers for T.37 Store-and-Forward Fax
Note When configuring store-and-forward fax on on-ramp gateways that have voice DSPs, do not configure
the information-type fax command on the POTS dial peer. If this command is configured, fax calls fail.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag pots
4. application application-name
5. direct-inward-dial
6. incoming called-number string
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag pots Enters dial-peer configuration mode and defines a local dial peer
that directs traffic to or from a POTS interface.
Example: • tag—Dial-peer identifier that consists of one or more digits.
Router(config)# dial-peer voice 77 pots Range: 1 to 2147483647.
• pots—Specifies that this dial peer directs traffic to or from
a POTS interface.
Step 4 application application-name Associates the fax detection application with the dial peer.
• application-name—The name that was defined for the fax
Example: detection application. See the “How to Load the Fax
Router(config-dial-peer)# application Detection Application” section on page 8-7.
detect-app
Step 5 direct-inward-dial Enables the Direct Inward Dialing (DID) call treatment for
incoming called numbers, in which the entire incoming dial
string is used to find a matching outbound dial peer. The gateway
Example:
Router(config-dial-peer)#
does not present a dial tone to the caller and does not collect
direct-inward-dial digits; the setup message contains all the digits necessary to
route the call.
Step 6 incoming called-number string Defines the called number (dialed number identification service
or DNIS) string. The called number is used to match the
incoming call leg to an inbound dial peer.
Example:
Router(config-dial-peer)# incoming • string—Incoming called telephone number. Valid entries
called-number 14085557896 are any series of digits that specify the E.164 telephone
number.
Note If you already configured an outgoing VoIP dial peer for voice calls with the appropriate destination
pattern when you set up your VoIP network, you do not have to configure another dial peer for voice
calls; there are no different parameters for the fax detection application.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag voip
4. destination-pattern [+]string[T]
5. dtmf-relay h245-signal
6. fax rate disable
7. session target {ipv4:destination-address | dns:{$d$.| $e$. | $s$. | $u$.}host-name} | ras}
DETAILED STEPS
Example:
Router# configure terminal
Step 3 dial-peer voice tag voip Enters dial-peer configuration mode and defines a dial peer that
directs traffic to or from a packet network.
Example: • tag—Dial-peer identifier that consists of one or more digits.
Router(config)# dial-peer voice 37 voip Range: 1 to 2147483647.
• voip—Calls from this dial peer use voice encapsulation on
the packet network.
Example:
Router(config-dial-peer)# fax rate disable
Configuring One or More Outbound VoIP Dial Peers for T.38 Fax Relay
The purpose of configuring an outbound VoIP dial peer for T.38 fax relay is to enable call handling from
the on-ramp gateway to a destination in the packet network. For fax relay, this destination is typically an
incoming dial peer on an off-ramp gateway. If you are configuring T.38 fax relay as the fax component
of your fax detection application, see the “Configuring One or More Individual VoIP Dial Peers for
T.38 Fax Relay” section on page 6-10.
Configuring One or More Outbound MMoIP Dial Peers for T.37 Store-and-Forward Fax
The purpose of configuring an outbound MMoIP dial peer for store-and-forward fax is to enable call
handling from the on-ramp gateway to a destination in the packet network. For store-and-forward fax,
this destination is typically an SMTP or ESMTP server. If you are configuring T.37 store-and-forward
fax as the fax component of your fax detection application, see “Configuring One or More Inbound
MMoIP Dial Peers” section on page 7-26
• Voice calls—If you have voice calls that are not terminated on the packet network, configure
inbound dial VoIP dial peers and outbound POTS dial peers on a gateway using standard commands
for voice networks.
• Fax relay calls—If you have fax relay calls that are exiting the packet network to the PSTN, follow
the instructions for configuring a gateway inChapter 6, “Configuring T.38 Fax Relay.”
• Store-and-forward fax calls—If you have store-and-forward fax calls that are exiting the packet
network to the PSTN, follow the instructions for configuring an off-ramp gateway in Chapter 7,
“Configuring T.37 Store-and-Forward Fax.”
Troubleshooting Tips
Use the following tips to help resolve problems that keep fax detection from working correctly.
• Ensure that you are using a Cisco IOS software release that supports fax detection. For more
information, see Cisco Feature Navigator at http://www.cisco.com/go/fn.
• Before configuring fax detection, make sure that your voice application is functional by putting a
series of calls through.
• Before configuring fax detection, make sure that your fax application is functional by sending a
series of faxes.
• After configuring fax detection, issue the debug voip ivr script command to display debug
information from the fax detection script. Then, put through a series of voice calls and fax calls to
ensure correct operation. The debug output that is displayed when you put calls through is
indispensable for diagnosing failing calls and finding the source of a problem. It is the only way to
verify that parameters are set to the values that you want and that they are actually taking effect.
Also note that mistakes such as typing errors in command-line interface (CLI) parameters (for
example, typing “moode” for “mode”) are not recognized as errors by Cisco IOS software. They are
accepted without complaint when typed, yet cannot have the desired effect during operation. It is
only by watching the debug output during operation that you find these mistakes.
• Make sure that you have configured different DTMF digits for fax and for voice. If you configure
both to be the same number, you are not notified immediately as with other Cisco IOS command
errors. You find this error only if the debug voip ivr script command is enabled before a failing call
comes in.
Use the following show commands to troubleshoot fax detection:
• show dial-peer voice [tag] [summary]—Displays configuration information for MMoIP, VoIP, and
POTS dial peers to help you verify that dial peers are properly configured for all legs of voice and
fax calls.
• show call application voice summary—Lists all voice applications that are loaded on the router to
help you confirm that the scripts that you are interested in are loaded.
• show call application voice application-name—Displays the line-by-line contents of the TCL script
associated with the specified application.
no ip address
shutdown
no fair-queue
clockrate 2015232
!
interface Serial3
no ip address
shutdown
no fair-queue
clockrate 2015232
!
interface Serial0:23
no ip address
ip mroute-cache
isdn switch-type primary-5ess
isdn incoming-voice modem
isdn T203 10000
no cdp enable
!
interface Serial1:23
no ip address
isdn switch-type primary-5ess
isdn incoming-voice modem
no cdp enable
!
interface Serial2:23
no ip address
isdn switch-type primary-5ess
isdn incoming-voice modem
isdn guard-timer 3000
isdn T203 10000
no cdp enable
!
interface FastEthernet0
ip address 172.16.14.90 255.255.0.0
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip h323-id 5300-voip
h323-gateway voip tech-prefix 2#
!
ip classless
no ip http server
!
!
voice-port 0:D
!
voice-port 1:D
!
voice-port 2:D
!
! POTS dial-peer configuration for fax detection
dial-peer voice 1 pots
application fax_detect
incoming called-number 7...
direct-inward-dial
!
! Voice dial-peer configuration for fax detection
dial-peer voice 2 voip
destination-pattern 7...
session target ras
tech-prefix 5#
dtmf-relay h245-signal
codec g711ulaw
This chapter describes configuration for fax rollover on an IP network. Fax rollover occurs when a
T.38 fax is configured to roll over to a T.37 fax session when the far end is busy or unreachable.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image
support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on
Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at
the login dialog box and follow the instructions that appear.
Note For more information about this and related Cisco IOS voice features, see the Cisco IOS Voice
Configuration Library; including library preface and glossary, other feature documents, and
troubleshooting documentation.
Contents
• Prerequisites for Configuring Fax Rollover, page 9-2
• Restrictions for Configuring Fax Rollover, page 9-2
• Information About Fax Rollover, page 9-2
• How to Download the Fax Rollover Application File, page 9-2
• How to Configure Fax Rollover, page 9-3
• Configuration Example for Fax Rollover, page 9-7
SUMMARY STEPS
DETAILED STEPS
Note Flash memory is limited to 32 entries, which may prevent your loading all TCL and audio files there.
SUMMARY STEPS
1. enable
2. configure terminal
3. application
4. service service-name location
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 application Enters application configuration mode to configure voice
applications and services.
Example:
Router(config)# application
Step 4 service service-name location Indicates the location or URL of the TCL script to be used for
the fax rollover application.
Example: • service name location—Directory and filename of the Tcl
Router(config-app)# service rollover-app script or VoiceXML document in URL format. For example,
tftp://BigServer/myscripts/fax_roll_2.1.2.0 Flash memory (flash:filename), a TFTP (tftp://../filename)
.tcl
or an HTTP server (http://../filename) are valid locations.
Note When configuring store-and-forward fax on on-ramp gateways with voice DSPs, do not configure the
information-type fax command on the POTS dial peer. If this command is configured, fax calls fail.
SUMMARY STEPS
1. enable
2. configure terminal
3. dial-peer voice tag pots
4. application application-name
5. direct-inward-dial
6. incoming called-number string
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 dial-peer voice tag pots Enters dial-peer configuration mode and defines a local dial peer
that directs traffic to or from a POTS interface.
Example: • tag—Dial-peer identifier that consists of one or more digits.
Router(config)# dial-peer voice 77 pots Valid entries are from 1 to 2147483647.
• pots—This dial peer directs traffic to or from a POTS
interface.
Step 4 application application-name Associates the fax rollover application with the dial peer.
• application-name—Name that was defined for the fax
Example: rollover application in Loading the Fax Rollover
Router(config-dial-peer)# application Application on the Gateway.
rollover-app
Step 5 direct-inward-dial Enables the Direct Inward Dialing (DID) call treatment for
incoming called numbers, in which the entire incoming dial
string is used to find a matching outbound dial peer. The gateway
Example:
Router(config-dial-peer)#
does not present a dial tone to the caller and does not collect
direct-inward-dial digits; the setup message contains all the digits necessary to
route the call.
Step 6 incoming called-number string Defines the called number (dialed number identification service
or DNIS) string. The called number is used to match the
incoming call leg to an inbound dial peer.
Example:
Router(config-dial-peer)# incoming • string—Incoming called telephone number. Valid entries
called-number 14085557896 are any series of digits that specify the E.164 telephone
number.
Configuring One or More Outbound VoIP Dial Peers for T.38 Fax Relay
The purpose of configuring an outbound VoIP dial peer for T.38 fax relay is to enable call handling from
the on-ramp gateway to a destination in the packet network. For fax relay, this destination is typically an
incoming dial peer on an off-ramp gateway. If you are configuring T.38 fax relay as the fax component
of your fax detection application, see the “Configuring One or More Individual VoIP Dial Peers for
T.38 Fax Relay” section on page 6-10.
Configuring One or More Outbound MMoIP Dial Peers for T.37 Store-and-Forward Fax
The purpose of configuring an outbound MMoIP dial peer for store-and-forward fax is to enable call
handling from the on-ramp gateway to a destination in the packet network. For store-and-forward fax,
this destination is typically an SMTP or ESMTP server. If you are configuring T.37 store-and-forward
fax as the fax component of your fax detection application, see “Configuring One or More Outbound
POTS Dial Peers” section on page 7-28.
Troubleshooting Tips
Use the following commands to troubleshoot fax rollover:
• show dial-peer voice [tag] [summary]—Displays configuration information for MMoIP, VoIP, and
POTS dial peers to help you verify that dial peers are properly configured for all legs of voice and
fax calls.
• show call application voice summary—Lists all voice applications that are loaded on the router to
help you confirm that the scripts that you are interested in are loaded.
This appendix describes configuration for modem call status. Modem call status provides monitoring
and maintaining of modem calls at digital signal level zero (DS-0), the PRI bearer channel level, and the
modem level.
Contents
• Prerequisites for Configuring Modem Call Status, page A-1
• Information about Modem Call Status, page A-1
• Configuring Modem Call Status, page A-2
Monitoring and maintaining of modem call status offers the following benefits:
• Improved visibility into the line status of the access server for comprehensive status monitoring and
notification capability
• Improved troubleshooting and diagnostics for large dial networks
Note For a complete description of the commands, refer to the Cisco IOS Voice, Video, and Fax Command
Reference. To locate documentation of other commands that appear in this chapter, use the command
reference master index or search online.
Command Purpose
Router(config)# snmp-server enable traps Generates a trap when there is a request to busy out a DS-0 or when
ds0-busyout busyout finishes. DS-0 busyout traps are disabled by default.
The ds0-busyout keyword specifies that DS-0 busyout traps be
enabled.
Command Purpose
Router(config)# snmp-server enable traps isdn Generates a trap when the network access server (NAS) rejects an
chan-not-avail incoming call on an ISDN PRI interface because the channel is not
available. ISDN PRI-requested channel-not-available traps are
disabled by default.
The isdn chan-not-avail keywords specify that ISDN PRI-requested
channel-not-available traps be enabled.
Command Purpose
Router(config)# snmp-server enable traps Generates a trap when a modem port is bad, disabled, or
modem-health downloading firmware; when a download fails; when a modem is
placed in loopback mode for maintenance; or when there is a request
to busy out the modem. Modem health traps are disabled by default.
The modem-health keyword specifies that modem health traps be
enabled.
Command Purpose
Router(config)# snmp-server enable traps Generates a trap when the DS-1 line goes into loopback mode. DS-1
ds1-loopback loopback traps are disabled by default.
The ds1-loopback keyword specifies that DS-1 loopback traps be
enabled.
You can also use trap monitoring and logging tools such as snmptrapd with debugging flags turned on
to monitor output.
end
Table B-1 lists the supported vendor-specific options (subtype numbers from 3 through 21) that use IETF
RADIUS attribute 26 and the Cisco vendor-ID company code of 9. These attributes are used with
store-and-forward fax.
For more information, refer to the “RADIUS Vendor-Specific Attributes” appendix of the Cisco IOS
Security Configuration Guide.
Subtype
Number Attribute Description
3 Cisco-Fax-Account-Id-Origin Account ID origin as defined by the system
administrator for the mmoip aaa receive-id or mmoip
aaa send-id command.
4 Cisco-Fax-Msg-Id= Unique fax message identification number assigned by
store-and-forward fax.
5 Cisco-Fax-Pages Number of pages sent or received during a fax session
including cover pages.
6 Cisco-Fax-Coverpage-Flag True/false flag that indicates whether a cover page was
generated by the off-ramp gateway for this fax session.
True indicates that a cover page was generated, and
false indicates that a cover page was not generated.
7 Cisco-Fax-Modem-Time Number of seconds it takes to send fax data (x) and to
complete the entire fax session (y), which includes
both fax-mail and PSTN time, in the form x/y. For
example, 10/15 means that the transfer time took 10
seconds and that the full fax session took 15 seconds.
8 Cisco-Fax-Connect-Speed Modem speed at which this fax mail was initially sent
or received. Possible values are 1200, 4800, 9600, and
14400.
9 Cisco-Fax-Recipient-Count Number of recipients for this fax transmission. Until
e-mail servers support session mode, the number
should be 1.
10 Cisco-Fax-Process-Abort-Flag True/false flag that indicates whether the fax session
was aborted or successful. True indicates that the
session was aborted, and false indicates that the
session was successful.
Subtype
Number Attribute Description
11 Cisco-Fax-Dsn-Address Address to which DSNs are sent.
12 Cisco-Fax-Dsn-Flag True/false flag to indicate whether DSN is enabled.
True indicates that DSN is enabled, and false indicates
that DSN is not enabled.
13 Cisco-Fax-Mdn-Address Address to which MDNs are sent.
14 Cisco-Fax-Mdn-Flag True/Flash flag to indicate whether MDN is enabled.
True indicates that MDN is enabled, and false indicates
that MDN is not enabled.
15 Cisco-Fax-Auth-Status Indicates whether or not authentication for this fax
session was successful. Possible values for this field
are success, failed, bypassed, or unknown.
16 Cisco-Email-Server-Address IP address of the e-mail server handling the on-ramp
fax-mail message.
17 Cisco-Email-Server-Ack-Flag Indicates that the on-ramp gateway has received a
positive acknowledgment from the e-mail server
accepting the fax-mail message.
18 Cisco-Gateway-Id Name of the gateway that processed the fax session.
The name appears in the following format:
hostname.domain-name.
19 Cisco-Call-Type Type of call activity: fax receive or fax send.
20 Cisco-Port-Used Slot/port number used to send or receive this fax mail.
21 Cisco-Abort-Cause If the fax session aborts, indicates the system
component that signaled the abort. Examples of system
components that could trigger an abort are FAP
(Fax Application Process), TIFF (the TIFF reader or
the TIFF writer), fax-mail client, fax-mail server,
ESMTP client, or ESMTP server.
configuring 4-4
C
overview 1-9
CA-controlled MGCP T.38 fax relay 6-8 fax relay
Cisco fax relay See Cisco fax relay or T.38 fax relay
configuration overview 5-2 fax rollover application
data transfer phase call flow 1-12 configuring 9-1
fax setup phase call flow 1-11 overview 1-19
overview 1-10 fax services
restrictions 5-2 in IP networks 1-5
in PSTN 1-1
fax transmission standards 1-2
D
delay 1-8
G
dial peers 1-6
Group 2 standard 1-2
Group 3 standard 1-2
E
U
S
upspeed
show run A-4 See also fax pass-through 1-9
snmp-server enable traps isdn chan-not-avail A-3
snmp-server enable traps modem-health A-3, A-4
V
snmp-server enable traps pop A-3
standards for fax 1-2 VAD (voice activity detection) 1-8
store-and-forward fax VBD (Voice Band Data) 1-9
See T.37 store-and-forward fax voice gateways 1-6
VoIP
modem pass-through 1-19
T
VSAs (vendor-specific attributes) for fax B-1
T.37 store-and-forward fax
configuring 7-5
description 1-17, 7-1
examples 7-43, 9-7
T.38 fax relay
configuration overview 6-4
description 1-13, 6-1