From owner-FreeBSD-users-jp@jp.freebsd.org  Tue Jun 11 01:46:03 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id BAA11256
	Tue, 11 Jun 1996 01:46:03 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP id BAA11251
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 11 Jun 1996 01:46:00 +0900 (JST)
Received: from localhost.apphy.fukui-u.ac.jp (localhost.apphy.fukui-u.ac.jp [127.0.0.1]) by pollen.apphy.fukui-u.ac.jp (8.6.12/8.6.12) with SMTP id BAA02641 for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 11 Jun 1996 01:46:42 +0900
Message-Id: <199606101646.BAA02641@pollen.apphy.fukui-u.ac.jp>
X-Authentication-Warning: pollen.apphy.fukui-u.ac.jp: Host localhost.apphy.fukui-u.ac.jp didn't use HELO protocol
To: FreeBSD-users-jp@jp.freebsd.org
From: Takaaki Hashimoto <d901005@icpc00.icpc.fukui-u.ac.jp>
Date: Tue, 11 Jun 1996 01:46:31 +0900
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 2227
Subject: [FreeBSD-users-jp 2227] sendfax Transmission error: +FHNG:54
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org


$@66K\!wJ!0fBg3X$G$9!#(J

sendfax $@$,$&$^$/;H$($^$;$s!#(J

gs -sDEVICE=dfaxhigh -sOutputFile=golfer.g3 golfer.ps

$@$H$7$F!"(J g3 file $@$r:n$C$?8e!"(J

/usr/local/sbin/sendfax 0123456789 golfer.g3

$@$H$7$F!"Aw?.$9$k$H!"(J

/usr/local/sbin/sendfax: FAILED to transmit 'golfer.g3'.
Transmission error: +FHNG:54 (No response to EOP repeated 3 times)

$@$H8@$C$F!"<:GT$7$^$9!#!JCfESH>C<$KFO$$$F$$$?$j$7$^$9!#!K(J
$@$I$NMM$J>pJs$G$b7k9=$G$9$N$G$h$m$7$/$*4j$$$7$^$9!#(J
$@0J2<!"D9$/$J$j$^$9$,(J make config $@$N7k2L$G$9!#(J

$@J!0fBg3X!!9)3XIt!!1~MQJ*M}3X2J(J
$@66K\5.L@(J

$@!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a!a(J

Checksums OK.
===>  Configuring for mgetty-0.22


 login dispatcher config file

 In this file, you can configure which "login" program (default /bin/login)
 to call for what user name.

 You could use it to call "uucico" for all users starting with "U*"
 (works only with Taylor UUCP 1.04 with my patch), or to call a fido
 mailer for fido calls (only if -DFIDO defined)...
 See the samples in the example login.config file (built from login.cfg.in).

 WARNING: make sure that this file isn't world-accessable (SECURITY!)

 If you want to call /usr/bin/login in any case, do not define this
config file: 
---------------------------------------------------------------------

 user id of the "uucp" user. The tty device will be owned by this user,
 so parallel dial-out of uucico will be possible
uucp user: [uucp] 
---------------------------------------------------------------------

 access mode for the line while getty has it - it should be accessible
 by uucp / uucp, but not by others (imagine someone dialing into your
 system and using another modem to dial to another country...)
access mode: [0660] 
---------------------------------------------------------------------

 Name of the mgetty log file
 e.g. "/usr/spool/log/mgetty.log.%s"
 a "%s" will be replaced by the device name, e.g. "tty2a"
log file: [/tmp/log_mg.%s] 
---------------------------------------------------------------------

 Default log error level threshold. Possible error levels are
 L_FATAL, L_ERROR, L_WARN, L_AUDIT, L_MESG, L_NOISE, L_JUNK (see mgetty.h)
level: [L_MESG] 
---------------------------------------------------------------------

 System administrator - if a severe error happens (lprintf called
 with log_level L_FATAL) and writing to CONSOLE is not possible,
 the logfile will be mailed to him
system administrator: [root] 
---------------------------------------------------------------------

 	Syslog

 If you want logging messages of type L_AUDIT, L_ERROR and L_FATAL
 to go to the "syslog", define this.
 mgetty will use the facility "LOG_AUTH", and the priorities
 LOG_NOTICE, LOG_ERR and LOG_ALERT, respectively.
do you want logging messages? [n] 
---------------------------------------------------------------------

 System name - printed at login prompt
 If you do not define this, the uname() call will be used
system name: 
---------------------------------------------------------------------

	Login prompt
 The "@", "\D" and "\T" escapes will be replaced by SYSTEM, the
 current date and time, respectively.
 override with "-p <prompt>" switch
login prompt: [@!login: ] 
---------------------------------------------------------------------

 Maximum time before login name has to be entered (in seconds)
 (after that time a warning will be issued, after that, the call is
 dropped). 
max login time: [240] 
---------------------------------------------------------------------

	 nologin file

 If that file exists, a ringing phone won't be answered (see manual).
 "%s" will be replaced by the device name.
login file: [/etc/nologin.%s] 
---------------------------------------------------------------------

 Set this to "1" if your system uses binary lock files (i.e., the pid
 as four byte integer in host byte order written to the lock file)
 If it is "0", HDB locking will be used - the PID will be written as
 10 byte ascii, with a trailing newline
 (Just check "LOCK" while uucico or pcomm or ... are running to find
 out what lock files are used on your system)
blocks binary: [0] 
---------------------------------------------------------------------

 the default speed used by mgetty - override it with "-s <speed>"

 WARNING: ZyXELs *can* do faxreceive with 38400, but a lot other modems,
 especially such based on the rockwell chipset can *not*. So, if
 your fax receive fails mysteriously, timing out waiting for "OK", try
 setting this to 19200
speed: [38400] 
---------------------------------------------------------------------

	the modem initialization string

 this sample string is for ZyXELs, for other modems you'll have to
     replace &H3 (rts/cts flow control), &K4 (enable v42bis) and &N0
     (answer with all known protocols).
 For instructions how to setup various other modems, look into
     mgetty.texi ("modems" section) and check your modem manual
 For some modems, an initial "\d" is needed.
 If you need a "\" in the modem command, give it as "\\".
 If you wish to use ZyXEL callerid, add "S40.2=1"
 The modem must answer with "OK" (!!!) - otherwise, change mgetty.c
initialization string: [ATS0=0Q0&D3&H3&N0&K4] ATS0=0Q0&D2\\Q3\\N6
---------------------------------------------------------------------

	 command termination string

 for most modems, terminating the AT... command with "\r" is
 sufficient and "\r\n" also works without doing harm.
 Unfortunately, for the Courier HST, you've to use *only* \r,
 otherwise ATA won't work (immediate NO CARRIER), and for some
 ZyXELs, you have to use \r\n (no OK otherwise).
 So, try one, and if it doesn't work, try the other.
suffix: [\r] 
---------------------------------------------------------------------

	 "keep alive"

 mgetty can periodically check whether the modem is still alive
 by issueing an "AT\r" command and checking for the "OK"
 Define here, in seconds, how often mgetty should check. For normal
 reliable modems, once an hour should be sufficient...
 If you use "-1", mgetty won't check.
check time [3600] 
---------------------------------------------------------------------

	 modem mode

 specify the default way mgetty+sendfax handle a faxmodem.
 You have four choices:
   "data" - data only, no faxing available (for sendfax, equal to "auto")
   "cls2" - use AT+FCLASS=2
   "c2.0" - use AT+FCLASS=2.0
   "auto" - try "2.0", then "2", then fall to "data".

 Normally, you can leave this to "auto", but if you have a modem that
 can do class 2.0 and class 2, and 2.0 doesn't work, then you could try
 setting it to "cls2".
 You can override this define with the "-C <mode>" switch.
modem mode: [auto] 
---------------------------------------------------------------------

 some modems are a little bit slow - after sending a response (OK)
 to the host, it will take some time before they can accept the next
 command - specify the amount needed in data mode here (in
 milliseconds). Normally, 50 ms should be sufficient. (On a slow
 machine it may even work without any delay at all)

 Be warned: if your machine isn't able to sleep for less than one
 second, this may cause problems.
 and this is the delay before sending each command while in fax mode
delay: [50] 
---------------------------------------------------------------------

 incoming faxes will be chmod()ed to this mode
 (if you do not define this, the file mode will be controlled by
 mgetty's umask)
fax file mode: [0660] 
---------------------------------------------------------------------

 if your faxmodem switches to 19200 bps just after sending the "+FCON"
 message to the host, define this. (Not important if you have the
 portspeed set to 19200 anyway).
 Some Tornado and Supra modems are know to do this.
 ZyXELs do *not* do this, except if explicitely told to do so.

 You can see if this happens if mgetty gets the "+FCON" response,
 starts the fax receiver, and times out waiting for OK, receiving
 nothing or just junk.
do your faxmodem switches to 19200? [n] 
---------------------------------------------------------------------

do you have a US Robotics? [n] 
---------------------------------------------------------------------

local station ID

 20 character string, most faxmodem allow all ascii characters 32..127,
 but some do only allow digits and blank
 AT+FLID=? should tell you what's allowed and what not.
station id: [00 00 0000000] 0776 25 9079
---------------------------------------------------------------------

 ------ sendfax-specific stuff follows here -------- 
 ---------------------------------------------------

 the baudrate used for *sending* faxes. ZyXELs can handle 38400,
 SUPRAs (and other rockwell-based faxmodems) do not
 I recommend 38400, since 19200 may be to slow for 14400 bps faxmodems!
baud rate: [38400] 
---------------------------------------------------------------------

 	switch baud rate after +FCLASS=2

 some weird modems require that you initialize the modem with one
 baud rate (e.g. 2400 or 9600 for cheap 2400+fax modems, or "smart"
 modems that insist on staying locked to 38400 (ELSA!)), but switch
 to another baud rate, typically 19200, immediately after receiving
 the "AT+FCLASS=2" command.

 If the following is defined, sendfax will switch to the speed given
 here after sending AT+FCLASS=2.

 Only try fiddling with this if sendfax times out during modem
 initialization, receiving junk instead of "OK" or "ERROR" (logfile!)
switch to 19200? [n] 
---------------------------------------------------------------------

this is the command to set the modem to use the desired flow control.
 For hardware handshake, this could be &H3 for the ZyXEL, &K3 for
 Rockwell-Based modems or \Q3&S0 for Exar-Based Modems (i.e. some GVC's)
command: [AT&H3] AT\\Q3
---------------------------------------------------------------------

 When sending a fax, if the other side says "page bad, retrain
 requested", sendfax will retry the page. Specifiy here the maximum
 number of retries (I recommend 3) before hanging up.

 If you set it to "0", sendfax will *never* retransmit a page (only
 do this if you know that your modem returns +FPTS:2 even if the
 page arrived properly, but be warned - you wont' be able to react
 properly to transmission errors!)
max tries: [3] 
---------------------------------------------------------------------

 the device(s) used for faxing
 multiple devices can be separated by ":", e.g. "tty1a:tty2a"
 (without (!) leading /dev/)
devices: [cuaa1] cuaa0
---------------------------------------------------------------------

 some modems, notably some GVC modems and the german telecom approved
 ZyXEL EG+ have the annoying behaviour of lowering and raising the
 DCD line during the pre- and post-page handshake (when sending).

 If your modem does this, sendfax will terminate immediately after
 starting to send the first page, or between the first and second
 page, and the fax log file will show something like
 "read failed, I/O error".

 If you define this, sendfax will (try to) ignore that line
define? [n] 
---------------------------------------------------------------------

	 Xon or not?

 the first issues of the class 2 drafts required that the program waits
 for an Xon character before sending the page data. Later versions
 removed that. Sendfax can do both, default is to wait for it.

 If you get an error message "... waiting for XON" when trying to
 send a fax, try this one. Some ELSA modems are know to need it.
Xon ? [n] 
---------------------------------------------------------------------

 where to send notify mail about incoming faxes to
 (remember to create an mail alias if no such user exists!)
send to: [faxadmin] 
---------------------------------------------------------------------

 after a fax has arrived, mgetty can call a program for further
 processing of this fax.

 (e.g.: printing of the fax, sending as MIME mail, displaying in an X
 window (the latter one could be tricky) ...)

 It will be called as:
 <program> <result code> "<sender_id>" <#pgs> <pg1> <pg2>...
 
 Define the name of this program here
 If you don't want this type of service, do not define it at all
program name (eg /usr/local/lib/mgetty+sendfax/new_fax):  
---------------------------------------------------------------------

 if this file exists, it can be used to control what callers
 are allowed in.  If undefined, the functionality is omitted.
file (eg /usr/local/lib/mgetty+sendfax/dialin.config): 
---------------------------------------------------------------------

