[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[efax-users] cannot send fax: received RTN - page not OK, check channel



Hi,

I am using efax v 0.9a on Kubuntu 8.04 (see attached config file).
I use a SmartLink Soft Modem (slmodemd version 2.9.11), with the snd_intel8x0m low level driver.
Whenever I try to send a multi-page fax, the first page seems to be correctly sent:

[...]
efax: 31:53 sent 20+2292 lines, 51553+0 bytes, 29 s  14221 bps
efax: 31:53 command  "+FTH=3"
efax: 31:53 waiting 3,1 s
efax: 31:53 .695 [CONNECT<CR><LF>]
efax: 31:53 response "CONNECT"
efax: 31:53 sent 3 bytes: ff c8 f2
efax: 31:53 sent MPS - not done
efax: 31:53 waiting 13,6 s
efax: 31:55 .015 [OK<CR><LF>]
efax: 31:55 response "OK"
efax: 31:55 command  "+FRH=3"
efax: 31:55 waiting 3,0 s
efax: 31:55 .375 [CONNECT<CR><LF>]
efax: 31:55 response "CONNECT"
efax: 31:56 waiting 2,0 s
efax: 31:56 .375 [OK<CR><LF>]
efax: 31:56 response "OK"
efax: 31:56 received 5 bytes: ff c8 32 75 ec
efax: 31:56 received RTN - page not OK, check channel
efax: 31:56 local   196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 31:56 remote  196lpi 14.4kbps 8.5"/215mm  any   2D ECM-64   -  0ms
efax: 31:56 session 196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 31:56 command  "+FTH=3"
efax: 31:56 waiting 3,1 s
efax: 31:56 .455 [CONNECT<CR><LF>]
efax: 31:56 response "CONNECT"
efax: 31:56 sent 23 bytes:
efax: 31:56  ff c0 c2 cc 6c 0c 9c 0c ac 0c 0c ec 04 4c 0c 04
efax: 31:56  9c cc d4 04 04 04 04
efax: 31:56 sent TSI - caller ID
efax: 31:56 waiting 13,6 s
efax: 31:58 .295 [CONNECT<CR><LF>]
efax: 31:58 response "CONNECT"
efax: 31:58 sent 6 bytes: ff c8 c1 00 46 1e
efax: 31:58 sent DCS - session format
efax: 31:58 waiting 13,6 s
efax: 31:58 .675 [OK<CR><LF>]
efax: 31:58 response "OK"
efax: 31:58 command  "+FTM=145"
efax: 31:58 waiting 3,1 s
efax: 31:58 .815 [CONNECT<CR><LF>]
efax: 31:58 response "CONNECT"
efax: 31:58 waiting 30,0 s
efax: 32:01 .975 [OK<CR><LF>]
efax: 32:01 response "OK"
efax: 32:01 sent TCF - channel check of 2700 bytes
efax: 32:01 command  "+FRS=1"
efax: 32:01 waiting 3,0 s
efax: 32:02 .075 [OK<CR><LF>]
efax: 32:02 response "OK"
efax: 32:02 command  "+FRH=3"
efax: 32:02 waiting 3,0 s
efax: 32:02 .355 [CONNECT<CR><LF>]
efax: 32:02 response "CONNECT"
efax: 32:03 waiting 2,0 s
efax: 32:03 .335 [OK<CR><LF>]
efax: 32:03 response "OK"
efax: 32:03 received 5 bytes: ff c8 21 57 be
efax: 32:03 received CFR - channel OK
efax: 32:03 command  "+FTM=146"
efax: 32:03 waiting 3,1 s
efax: 32:03 .435 [CONNECT<CR><LF>]
efax: 32:03 response "CONNECT"
efax: 32:04 padding to 0 bytes/scan line.

the problem comes by the transmission of the second page:

efax: 32:04 header:[2008/06/28 17:26 +XXXXXXXXXXXXXXXXXXXXX. p. 2/4]
efax: 32:28 waiting 30,0 s
efax: 32:33 .076 [OK<CR><LF>]
efax: 32:33 response "OK"
efax: 32:33 sent 20+2292 lines, 51553+0 bytes, 29 s  14221 bps
efax: 32:33 command  "+FTH=3"
efax: 32:33 waiting 3,1 s
efax: 32:33 .196 [CONNECT<CR><LF>]
efax: 32:33 response "CONNECT"
efax: 32:33 sent 3 bytes: ff c8 f2
efax: 32:33 sent MPS - not done
efax: 32:33 waiting 13,6 s
efax: 32:34 .516 [OK<CR><LF>]
efax: 32:34 response "OK"
efax: 32:34 command  "+FRH=3"
efax: 32:34 waiting 3,0 s
efax: 32:34 .976 [CONNECT<CR><LF>]
efax: 32:34 response "CONNECT"
efax: 32:35 waiting 2,0 s
efax: 32:35 .956 [OK<CR><LF>]
efax: 32:35 response "OK"
efax: 32:35 received 5 bytes: ff c8 32 75 ec
efax: 32:35 received RTN - page not OK, check channel
efax: 32:35 local   196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 32:35 remote  196lpi 14.4kbps 8.5"/215mm  any   2D ECM-64   -  0ms
efax: 32:35 session 196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 32:35 command  "+FTH=3"
efax: 32:35 waiting 3,1 s
efax: 32:36 .036 [CONNECT<CR><LF>]
efax: 32:36 response "CONNECT"
efax: 32:36 sent 23 bytes:
efax: 32:36  ff c0 c2 cc 6c 0c 9c 0c ac 0c 0c ec 04 4c 0c 04
efax: 32:36  9c cc d4 04 04 04 04
efax: 32:36 sent TSI - caller ID
efax: 32:36 waiting 13,6 s
efax: 32:37 .876 [CONNECT<CR><LF>]
efax: 32:37 response "CONNECT"
efax: 32:37 sent 6 bytes: ff c8 c1 00 46 1e
efax: 32:37 sent DCS - session format
efax: 32:37 waiting 13,6 s
efax: 32:38 .256 [OK<CR><LF>]
efax: 32:38 response "OK"
efax: 32:38 command  "+FTM=145"
efax: 32:38 waiting 3,1 s
efax: 32:38 .396 [CONNECT<CR><LF>]
efax: 32:38 response "CONNECT"
efax: 32:38 waiting 30,0 s
efax: 32:41 .556 [OK<CR><LF>]
efax: 32:41 response "OK"
efax: 32:41 sent TCF - channel check of 2700 bytes
efax: 32:41 command  "+FRS=1"
efax: 32:41 waiting 3,0 s
efax: 32:41 .656 [OK<CR><LF>]
efax: 32:41 response "OK"
efax: 32:41 command  "+FRH=3"
efax: 32:41 waiting 3,0 s
efax: 32:41 .936 [CONNECT<CR><LF>]
efax: 32:41 response "CONNECT"
efax: 32:42 waiting 2,0 s
efax: 32:42 .916 [OK<CR><LF>]
efax: 32:42 response "OK"
efax: 32:42 received 5 bytes: ff c8 21 57 be
efax: 32:42 received CFR - channel OK
efax: 32:42 command  "+FTM=146"
efax: 32:42 waiting 3,1 s
efax: 32:43 .016 [CONNECT<CR><LF>]
efax: 32:43 response "CONNECT"
efax: 32:44 padding to 0 bytes/scan line.
efax: 32:44 header:[2008/06/28 17:26 +XXXXXXXXXXXXXXXXXXXXX. p. 2/4]
efax: 33:07 waiting 30,0 s
efax: 33:12 .657 [OK<CR><LF>]
efax: 33:12 response "OK"
efax: 33:12 sent 20+2292 lines, 51553+0 bytes, 28 s  14729 bps
efax: 33:12 command  "+FTH=3"
efax: 33:12 waiting 3,1 s
efax: 33:12 .777 [CONNECT<CR><LF>]
efax: 33:12 response "CONNECT"
efax: 33:12 sent 3 bytes: ff c8 f2
efax: 33:12 sent MPS - not done
efax: 33:12 waiting 13,6 s
efax: 33:14 .097 [OK<CR><LF>]
efax: 33:14 response "OK"
efax: 33:14 command  "+FRH=3"
efax: 33:14 waiting 3,0 s
efax: 33:14 .557 [CONNECT<CR><LF>]
efax: 33:14 response "CONNECT"
efax: 33:15 waiting 2,0 s
efax: 33:15 .537 [OK<CR><LF>]
efax: 33:15 response "OK"
efax: 33:15 received 5 bytes: ff c8 32 75 ec
efax: 33:15 received RTN - page not OK, check channel
efax: 33:15 local   196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 33:15 remote  196lpi 14.4kbps 8.5"/215mm  any   2D ECM-64   -  0ms
efax: 33:15 session 196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 33:15 command  "+FTH=3"
efax: 33:15 waiting 3,1 s
efax: 33:15 .617 [CONNECT<CR><LF>]
efax: 33:15 response "CONNECT"
efax: 33:15 sent 23 bytes:
efax: 33:15  ff c0 c2 cc 6c 0c 9c 0c ac 0c 0c ec 04 4c 0c 04
efax: 33:15  9c cc d4 04 04 04 04
efax: 33:15 sent TSI - caller ID
efax: 33:15 waiting 13,6 s
efax: 33:17 .457 [CONNECT<CR><LF>]
efax: 33:17 response "CONNECT"
efax: 33:17 sent 6 bytes: ff c8 c1 00 46 1e
efax: 33:17 sent DCS - session format
efax: 33:17 waiting 13,6 s
efax: 33:17 .837 [OK<CR><LF>]
efax: 33:17 response "OK"
efax: 33:17 command  "+FTM=145"
efax: 33:17 waiting 3,1 s
efax: 33:17 .977 [CONNECT<CR><LF>]
efax: 33:17 response "CONNECT"
efax: 33:17 waiting 30,0 s
efax: 33:21 .137 [OK<CR><LF>]
efax: 33:21 response "OK"
efax: 33:21 sent TCF - channel check of 2700 bytes
efax: 33:21 command  "+FRS=1"
efax: 33:21 waiting 3,0 s
efax: 33:21 .237 [OK<CR><LF>]
efax: 33:21 response "OK"
efax: 33:21 command  "+FRH=3"
efax: 33:21 waiting 3,0 s
efax: 33:21 .517 [CONNECT<CR><LF>]
efax: 33:21 response "CONNECT"
efax: 33:22 waiting 2,0 s
efax: 33:22 .497 [OK<CR><LF>]
efax: 33:22 response "OK"
efax: 33:22 received 5 bytes: ff c8 21 57 be
efax: 33:22 received CFR - channel OK
efax: 33:22 command  "+FTM=146"
efax: 33:22 waiting 3,1 s
efax: 33:22 .597 [CONNECT<CR><LF>]
efax: 33:22 response "CONNECT"
efax: 33:23 padding to 0 bytes/scan line.
efax: 33:23 header:[2008/06/28 17:26 +XXXXXXXXXXXXXXXXXXXXX.  p. 2/4]
efax: 33:46 waiting 30,0 s
efax: 33:52 .238 [OK<CR><LF>]
efax: 33:52 response "OK"
efax: 33:52 sent 20+2292 lines, 51553+0 bytes, 29 s  14221 bps
efax: 33:52 command  "+FTH=3"
efax: 33:52 waiting 3,1 s
efax: 33:52 .358 [CONNECT<CR><LF>]
efax: 33:52 response "CONNECT"
efax: 33:52 sent 3 bytes: ff c8 f2
efax: 33:52 sent MPS - not done
efax: 33:52 waiting 13,6 s
efax: 33:53 .678 [OK<CR><LF>]
efax: 33:53 response "OK"
efax: 33:53 command  "+FRH=3"
efax: 33:53 waiting 3,0 s
efax: 33:54 .138 [CONNECT<CR><LF>]
efax: 33:54 response "CONNECT"
efax: 33:55 waiting 2,0 s
efax: 33:55 .118 [OK<CR><LF>]
efax: 33:55 response "OK"
efax: 33:55 received 5 bytes: ff c8 32 75 ec
efax: 33:55 received RTN - page not OK, check channel
efax: 33:55 local   196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 33:55 remote  196lpi 14.4kbps 8.5"/215mm  any   2D ECM-64   -  0ms
efax: 33:55 session 196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 33:55 command  "+FTH=3"
efax: 33:55 waiting 3,1 s
efax: 33:55 .198 [CONNECT<CR><LF>]
efax: 33:55 response "CONNECT"
efax: 33:55 sent 23 bytes:
efax: 33:55  ff c0 c2 cc 6c 0c 9c 0c ac 0c 0c ec 04 4c 0c 04
efax: 33:55  9c cc d4 04 04 04 04
efax: 33:55 sent TSI - caller ID
efax: 33:55 waiting 13,6 s
efax: 33:57 .038 [CONNECT<CR><LF>]
efax: 33:57 response "CONNECT"
efax: 33:57 sent 6 bytes: ff c8 c1 00 46 1e
efax: 33:57 sent DCS - session format
efax: 33:57 waiting 13,6 s
efax: 33:57 .418 [OK<CR><LF>]
efax: 33:57 response "OK"
efax: 33:57 command  "+FTM=145"
efax: 33:57 waiting 3,1 s
efax: 33:57 .558 [CONNECT<CR><LF>]
efax: 33:57 response "CONNECT"
efax: 33:57 waiting 30,0 s
efax: 34:00 .718 [OK<CR><LF>]
efax: 34:00 response "OK"
efax: 34:00 sent TCF - channel check of 2700 bytes
efax: 34:00 command  "+FRS=1"
efax: 34:00 waiting 3,0 s
efax: 34:00 .818 [OK<CR><LF>]
efax: 34:00 response "OK"
efax: 34:00 command  "+FRH=3"
efax: 34:00 waiting 3,0 s
efax: 34:01 .098 [CONNECT<CR><LF>]
efax: 34:01 response "CONNECT"
efax: 34:02 waiting 2,0 s
efax: 34:02 .058 [OK<CR><LF>]
efax: 34:02 response "OK"
efax: 34:02 received 5 bytes: ff c8 21 57 be
efax: 34:02 received CFR - channel OK
efax: 34:02 command  "+FTM=146"
efax: 34:02 waiting 3,1 s
efax: 34:02 .158 [CONNECT<CR><LF>]
efax: 34:02 response "CONNECT"
efax: 34:03 padding to 0 bytes/scan line.
efax: 34:03 header:[2008/06/28 17:26 +XXXXXXXXXXXXXXXXXXXXX.  p. 2/4]
efax: 34:05 Error: terminating on signal 2

then I have to manually interrupt the process, in order to avoid an endless loop...
Any help will be highly appreciated!

Federico
# efax.rc 
#
# Resource file for the fax(1) program by Ed Casas
#
# This file can be used for settings that are specific to the setup of
# the machine on which fax is used -- for example information about the
# modem being used, how to proint the header information on outgoing faxes 
# etc. See the manual page fax(1) and the script /usr/bin/fax for details.
#
# This file was written by Dirk Eddelbuettel <edd@xxxxxxxxxx> based mostly 
# on the configuration settings of /usr/bin/fax, and adapted to reflected
# Debian specific settings. In particular,
#  --  use of paperconf (from the libpaperg package) to determine papersize
#  --  use of binary-format lockfiles 
# 
# Please send Debian-specific comments or requests to <edd@xxxxxxxxxx>


# --- Start of user configuration section --- 

# 
# Notes: 
#
#  - do not put spaces before or after the equal (=) signs.
#
#  - variables can also be set on the command line, for example:
#       fax DEV=ttyS0 send file.ps
#    or in a configuration file (see CONFIGFILES below)
#

# The names of the fax script, efax and efix, including full path
# if necessary.

FAX=fax
EFAX=efax
EFIX=efix

# The device to which the fax modem is connected (e.g. ttya for
# /dev/ttya).  Use a dial-out (ttyS?) device if available.  If
# there are links to this device then all programs must use same
# name or the UUCP locking mechanism will fail.  For example, if
# /dev/modem is a link to /dev/ttyS1, then getty, uucp, kermit,
# pppd, dip, etc. must *all* use either /dev/modem or /dev/ttyS1.

DEV=ttySL0

# Your fax number in international format, 20 characters maximum.
# Use only digits, spaces, and the "+" character.

FROM="+xxxxxxxxxxxxxx"

# Your name as it should appear on the page header.

NAME="F.G."

# The preferred page size for creating and printing faxes.
# Allowed values are "letter", "legal", and "a4".

# PAGE=letter
# PAGE=legal
 PAGE=a4
# PAGE determines the paper size, we use Debian's libpaper to get the value
#PAGE=`paperconf`

# The type of printer. Use 'pcl' for HP-PCL or 'ps' for
# Postscript.  See definition of PRINT (below) for more options.

PRTYPE=ps				# Postscript (e.g. Apple LaserWriter)
# PRTYPE=pcl				# HP-PCL (e.g. HP LaserJet) 

# The command to print image files from standard input.  Typically
# this is "lpr" or "lp".

PRCMD="lpr"

# The command to view a Portable Gray Map (PGM) image from the
# standard input.  Typically "xv -" or "xloadimage stdin".

VIEWCMD="xloadimage stdin"		# best
# VIEWCMD="pnmtoxwd | xwud"		# slower alternative
# VIEWCMD="xv -"			# much slower alternative	

# The name of the Ghostscript executable including full path if
# necessary.  Only required if faxing Postscript files.

GS=gs

# Dial string prefix and suffix such as T for tone dialing, P for
# pulse dialing, 9 to get an external line, commas for delays or
# W to wait for dial tone.  See definition of TELCVT below if you
# have more complex requirements.

DIALPREFIX="T"
DIALSUFFIX=""

# The name(s) of lock file(s) according to your system's
# conventions. Protect with single quotes for delayed evaluation.
# Add a leading '#' to the file name to use binary format.

LOCK='-x /var/lock/LCK..$DEV' 			# modern systems
# LOCK='-x /usr/spool/uucp/LCK..$DEV'		# older systems
# LOCK='-x /var/lock/LCK..$DEV -x /var/spool/uucp/LCK..$DEV' # both
# LOCK='-x #/usr/spool/uucp/LCK..$DEV'		# binary format
# LOCK='-x /usr/spool/locks/LK.047.040.011'	# SysV style names
# LOCK=''					# no lock file


# Uncomment one of the following lines to force xon/xoff flow
# control only if you have one of the types of modems listed.

# FCINIT='-j\Q4'		# AT&T (Dataport, Paradyne)
# FCINIT='-j\Q1'		# Motorola (Power Modem, 3400 Pro,...)
# FCINIT='-j*F1'		# QuickComm (Spirit II)
# FCINIT='-j&H2'		# USR (Courier, Sportster)
# FCINIT='-or'			# Multi-Tech (for bit reversal)

# ****************************************************************
# The remaining options probably won't need to be changed.
# ****************************************************************

# Configuration files that are sourced if they exist.  Comment
# out if you don't need to use config files. Warning: any type of
# shell command in these files will be executed.

CONFIGFILES="/etc/efax.rc ${HOME:-~}/.efaxrc ./.efaxrc"

# A command that will generate unique names for logs and received
# files.  'date +%m%d%H%M%S' works on most systems.  Protect with
# single quotes.

TSTAMP='date +%m%d%H%M%S'
# TSTAMP='echo $$'		# alternative - use process number

# Shell command to convert aliases to phone numbers when sending
# faxes.  When executed $1 will be the alias and $f the file name
# to search.  The example below uses a directory file where alias
# lines start with the keyword "fax" followed by the alias in
# parentheses and a colon.  The remainder of the line is taken to
# be the phone number. Other lines are ignored.  For example, if
# one of the files in DIRFILES (defined below) contained the line
# "fax(kpmg): 691-3031", you could use the command "fax send kpmg
# invoice.24". Protect with single quotes.

LOOKUP='eval sed -n -e "/^fax($1):/{" -e "s/^[^:]*://p" -eq -e"}" $f'

# List of telephone directory file(s) to be searched.  The
# default is the file .faxdir in the user's home directory.

DIRFILES="${HOME:-.}/.faxdir"

# Shell command to convert phone numbers to dial strings.  This
# lets you to store numbers without the long distance or
# alternate carrier access codes, passwords, accounting digits,
# etc.  In the examples below this is used to convert numbers
# beginning with '+'; the first substitution handles same-country
# calls and the second handles international calls.

#TELCVT='sed -e s/+1/1/ -e s/+/011/'	# North America
TELCVT='sed -e s/+39// -e s/+/00/'	# Italy
# TELCVT='sed -e s/+61/0/ -e s/+/0011/' # Australia
# TELCVT='sed -e s/+44/0/ -e s/+/00/'	# UK
# TELCVT='sed -e s/+49/0/ -e s/+/00/'	# Germany
# TELCVT='sed -e s/+852// -e s/+/001/'	# Hong Kong
# TELCVT='sed -e s/+33// -e s/+/19W/'	# France (?)
# TELCVT='sed -e s/+34/0/ -e s/+/07W/'	# Spain
# TELCVT='sed -e s/+1/10288/'		# use AT&T
# TELCVT='sed -e s/+/T82W1682W9W/'	# get out of PBX

# efix options to use a bitmap font for text-to-fax conversion.
# The option -l66 puts 66 lines of text per page, -d1,1 sets 1
# inch top & left margin.  Comment these out to use the built-in
# font. Use "fax makefont" to make bitmap fonts from Postscript
# fonts.

# TEXTFONT="-l66 -d1,1 -f /usr/bin/efaxfont"

# efax options to specify a different font for headers. Generate
# using "fax makefont."

# HDRFONT="-f /usr/bin/efaxfont"

# Dimensions of page sizes.

PAGE_letter="8.465x11in"	# fax width x letter length
PAGE_legal="8.465x14in"		# fax width x legal length
PAGE_a4="21x29.7cm"		# ISO A4

# Default resolution for converting to fax format. Can only be
# 204x196 or 204x98.

RES=204x196			# default "Fine" resolution (196 lpi)
# RES=204x98			# standard resolution (98 lpi)

# When the print and view commands below are executed, $f will be
# the input file name and $PAGEDIM will be one of the above page
# dimensions. Protect with single quotes.

# PRINT: A command to convert fax files to a printable format.
# For printers other than Postscript or PCL you can use efix's
# PBM output and an appropriate pbm filter (such as pbmtoepson)
# or efix's Postsript output and Ghostscript as a filter. Change
# the scaling (-s) and displacement (-d) options as required to
# fit the image onto the area your printer can print.

PRINT='$EFIX -ve -p$PAGEDIM -r300 -s0.98 -d0,0.125 -o$PRTYPE $f'

# example using pbm utilities:
# PRINT='$EFIX -ve -p$PAGEDIM -r60x72 -opbm $f | pbmtoepson'

# example using Ghostscript:
# PRINT='$EFIX -ve -p$PAGEDIM -r120x144 -ops $f | \
#	$GS -q  -sPAPERSIZE=$PAGE -sDEVICE=epson -r120x144 \
#	-dNOPAUSE -dSAFER -sOutputFile=- - '

# VIEW: A command to convert fax files to PGM format for
# previewing.  efix's pgm output reduces image dimensions by 4X.

# VIEW='$EFIX -ve -p$PAGEDIM -r200 -opgm $f' 	# 50dpi: fast, whole-page view
VIEW='$EFIX -ve -p$PAGEDIM -r300 -opgm $f'	# 75dpi: slower, readable size

# Commands to set up modem.  "-iZ -i&FE&D2S7=120 -i&C0"
# works with almost all modems.  See the efax(1) man page for
# details.

#INIT="-iZ -i&FE&D2S7=120 -i&C0"
#INIT="-iZ -i&FX3E&D2S7=120 -i&C0+MS=34"
INIT="-iZ -i&FX3E&D2S7=120 -i&C0"

# Command(s) to reset modem when efax finishes. "-kZ" works in
# almost all cases.

RESET="-kZ"
# RESET="-kZ -k&F+FCLASS=0"	# for modems that stay in fax mode after reset

# Speaker mode(M) and loudness(L). Mn sets speaker mode where n
# means: 0:never, 1:until carrier, 2:always, 3:on receive only.

SPKR="-iM1L0"

# Options to use a particular command sets.  Normally efax
# selects the command set based on the modem's capabilities.  Use
# -o1 to force Class 1, -o2 for Class 2 and -o0 for Class 2.0.

# CLASSINIT="-o1"	# Class 1
# CLASSINIT=""		# Class 2
# CLASSINIT="-o0"	# Class 2.0

# The modem's capabilities for sending faxes.  Normally efax
# chooses these by querying the modem.  "-c 1,3,0,0,0,0,0,0"
# forces 9600 bps maximum speed.  See the efax(1) man page for a
# description of the fields.

# TXCAP="-c 1,3,0,2,0,0,0,0"

# Capabilities for receiving faxes.  Usually the same as TXCAP.
# If your modem only receives at 4800 bps use "-c 1,1,0,0,0,0,0,0".

# RXCAP="$TXCAP"

# Additional options required only for transmit or only for
# receive.  None normally required.

RXINIT=""
TXINIT=""

# Command to make a date for the page header. Protect with single
# quotes.  'date "+%Y/%m/%d %H:%M"' works on most systems.

DATECMD='date "+%Y/%m/%d %H:%M"'	# YYYY/MM/DD HH:MM (24hour)
# DATECMD='date'			# longer, more readable

# Page header format.  You may use $DATE, $NAME, $FROM, $TO, and
# "%d/%d" (for page number and count).  Protect with single
# quotes.  Example: '$DATE $FROM $NAME p. %d/%d'.

HDR='$DATE     $FROM      $NAME     p. %d/%d'

# BUSYRETRIES is a list of delays in seconds between attempts to
# redial busy numbers.  Comment out if you don't want to retry
# busy numbers.

BUSYRETRIES="30 60 120 300 60 600 60 60 1200 60 60"

# FAILRETRIES is a list of delays in seconds between attempts to
# retry failed transmissions.  Retries are only attempted if at
# least one page was sent in the previous attempt. Retries
# include only pages not already sent. Comment out if you don't
# want to retry failed transmissions.

FAILRETRIES="300 300"	# try two more times at 5 minute intervals

# Command to run another program (efax) at a higher-than-normal
# scheduling priority.  This command isn't used if it fails
# (e.g. because the current user isn't privileged).  Comment this
# out if it causes problems.

NICE="nice -n -10"

# Standard versions of commands that are often aliased.

RM="/bin/rm -f"
LS="/bin/ls"

# Messages to display.  VERB sets the messages displayed (stderr)
# and VERBLOG the messages written to log files (stdout).

VERB="ewin"		# show errors, warnings, progress & negotiation
VERBLOG="chewmainrxtf"	# log everything

# ****************************************************************
# The remaining configuration options apply only to the `fax
# answer' command.  You can ignore these if you will only be
# running efax manually.  See "USING INIT TO RUN EFAX" in the
# efax man page for more information.
# ****************************************************************

# device or file where fatal error messages should be written

CONSOLE=/dev/console

# The directory to store incoming faxes and log files.  This directory
# should already exist and be writable by the user(s) of this script.

FAXDIR=/var/spool/fax
#LOGDIR=/var/log/fax
LOGDIR=/var/log/efax

# The strftime(3) pattern that generates the file name for
# received files.  For example, at 10:45:36 on February 25,
# "%m%d%H%M%S" would produce 0225104536, "%j-%H%M" would produce
# 056-1045, and %d%b%H%M 25Feb1045.

ANSFNAME="%m%d%H%M%S"

# umask for received files. Use 022 to allow anyone to retrieve faxes.

UMASK=022

# The user to be sent mail when a fax is received.

FAXMGR=root

# The sendmail executable including full path if necessary.  Only
# required if forwarding received faxes by e-mail in $NOTIFY.

SENDMAIL=/usr/sbin/sendmail

# The command to execute when a fax is received.  Normally this
# sends FAXMGR e-mail or prints the received fax.  The variable
# $f will be the name of the log file, $FILES will contain the
# names of the received files, and $REMID will have the remote ID
# string or '?' if none. The faxmail function will e-mail the fax
# as MIME image/tiff attachments.  Comment this out to do
# nothing.  Protect with single quotes.

NOTIFY='faxmail "$REMID" "$f" $FILES | $SENDMAIL $FAXMGR'
# NOTIFY='mail -s "fax/message from $REMID: $FILES" $FAXMGR <$f'
# NOTIFY='lpr $f ; $FAX print $OPT $FILES'
# NOTIFY='/usr/local/bin/efax-convert "$REMID" $FILES'

# The number of rings to wait before answering.

ANSRINGS=1

# If you want to enable fax/data adaptive answer (AA) read the
# efax man page and define DATAINIT to be the options that enable
# AA. Note: AA does not work properly on some (2400/9600) modems
# unless the modem initialization is done at 2400 bps (not
# possible with efax). USR modems do not support modem adaptive
# answer (+FAE=) in Class 1.  &C1 enables most modems' DCD line
# so a signal can be sent to shells when a call is dropped.  You
# must also define DCMD (see below).

DATAOPT="-j&C1 -j+FCLASS=0 -jS7=30"
# DATAINIT="$DATAOPT -j+FAE=1"		# Class 1 modem adaptive answer
# DATAINIT="$DATAOPT -j+FAA=1"		# Class 2[.0] modem adaptive answer
# DATAINIT="$DATAOPT -oa"		# software adaptive answer
# DATAINIT="$DATAOPT"			# data-only answer

# If you have a voice modem and want to answer in voice mode
# define VOICEINIT to be the options that enable voice mode.  You
# must also set VCMD below. Voice support is not yet available.

# VOICEINIT="-j#CLS=8"			# Rockwell voice modems
# VOICEINIT="-jM2L2#CLS=8#VLS=4"	#    with speaker on

# Argument to exec(2) of "/bin/sh -c" for incoming data calls.
# This command will usually exec getty(8) but can include other
# commands to set up the serial port, etc.  Up to 6 %d arguments
# are replaced by the baud rate following the CONNECT response
# from the modem or 19200 if none.  If using getty_ps ensure
# /etc/gettydefs has entries for all possible %d values
# (e.g. 19200). Use 'nice' if required to reduce any special
# priority set by NICE.

DCMD="exec /sbin/getty -h $DEV %d vt100"	# for getty_ps (Linux)
# DCMD="exec /sbin/agetty -h $DEV %d vt100"	# for agetty (Linux)
# DCMD="exec pppd $DEV %d"			# start PPP server

# Argument to exec(2) of "/bin/sh -c" for incoming voice calls.
# This command will usually be a shell script that interacts with
# the caller by using efone to play/record audio and detect DTMF
# tones.  Up to 6 %d arguments are replaced by the modem file
# descriptor.  VCMD can "exec fax reanswer" to switch to fax or
# data mode if required.

FONE=/usr/bin/fone				# minimal voice mail
VCMD="exec $FONE %d"

# The owner.group and mode to which "fax answer" sets the serial
# device.  This allows non-root processes to grab the device from
# efax even if a previous process (e.g. login) has changed it.
# Comment out if you don't need to reset device ownership.
#
# Set to empty strings for prevent resetting. If you need special owner 
# or modes settings, specify them here. 
OWNER=""		
MODE=""			

# Regular expression for efax exit codes in log files that will
# *not* be saved.  For example, use [145] to ignore exits due to
# `locked' (1), `no modem' (4), and `signal' (5) conditions

NOLOG='[145]'