HylaFAX The world's most advanced open source fax server

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

[hylafax-users] HF v 4.1.5 problems



After reading everything I can find and googleing for hours I feel I
need to ask for help on my first hylafax install.


We are wanting to set up a receive only system at this time. I see that
the sportsters seem to have difficulties but apparently they work as
class 1 devices.  Is that  correct?  I am sure the issue si going to be
some boneheaded thing that I have missed but I sure would like to find
it. ( my estimate to set this up was 8 hours and I am getting close :(

any tips appreciated. 

Specifics:

Redhat 8.0
hylafax installed from binary rpm hylafax-4.1.5-1rh8.i386.rpm
External USR sportster 56K faxmodem modem:

from ati7 in minicom

ati7                                                 
Configuration Profile...                             

Product type           US/Canada External
Options                V32bis,V.34+,x2
Fax Options            Class 1/Class 2.0
Line Options           Caller ID, Distinctive Ring
Clock Freq             92.0Mhz
Eprom                  256k
Ram                    64k

EPROM date             2/20/97
DSP date               2/20/97
                                                                                EPROM rev              4.0.1                                                    DSP rev                10.2.1                                                                                                                                   OK                                                                             

The issue is that after running  faxsetup and adding the faxgetty line
to /etc/inittab :

t2:23:respawn:/usr/sbin/faxgetty ttyS0
and running 

telinit q

and then starting the service with

service hylafax start

[root@sambatest bhughes]# service hylafax start
Starting HylaFAX queue manager (faxq):                     [  OK  ]
Starting HylaFAX server (hfaxd): ar/log/messages           [  OK  ]
Restarting HylaFAX modem manager (faxgetty):               [  OK  ]


faxstat reports :

[root@sambatest bhughes]# faxstat
HylaFAX scheduler on sambatest.internal.stanfieldodell.com: Running
Modem ttyS0 (+1.918.664-4119): Waiting for modem to come free


I can't get the modem to initialize.  I think I have set the logging as 
high as it goes but all I get in /var/log/messages is the following:


Mar 20 14:57:10 sambatest FaxQueuer[14043]: HylaFAX (tm) Version 4.1.5
Mar 20 14:57:10 sambatest hylafax: faxq startup succeeded
Mar 20 14:57:10 sambatest FaxQueuer[14043]: Copyright (c) 1990-1996 Sam
Leffler
Mar 20 14:57:10 sambatest FaxQueuer[14043]: Copyright (c) 1991-1996
Silicon Graphics, Inc.
Mar 20 14:57:10 sambatest HylaFAX[14047]: HylaFAX INET Protocol Server:
restarted.
Mar 20 14:57:10 sambatest hylafax: hfaxd startup succeeded
Mar 20 14:57:10 sambatest FaxGetty[14034]: CAUGHT SIGNAL 15
Mar 20 14:57:10 sambatest FaxGetty[14034]: CLOSE /dev/ttyS0
Mar 20 14:57:10 sambatest FaxGetty[14054]: OPEN /dev/ttyS0  HylaFAX (tm)
Version 4.1.5
Mar 20 14:57:10 sambatest FaxGetty[14054]: /dev/ttyS0: Can not lock
device.
Mar 20 14:57:10 sambatest FaxGetty[14054]: STATE CHANGE: BASE ->
LOCKWAIT (timeout 30)
Mar 20 14:57:10 sambatest hylafax: faxgetty shutdown succeeded
Mar 20 14:57:16 sambatest HylaFAX[14060]: servertracing = 0xFFF (line
57)
Mar 20 14:57:16 sambatest HylaFAX[14060]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 14:57:16 sambatest HylaFAX[14060]: USER root
Mar 20 14:57:16 sambatest HylaFAX[14060]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 14:57:16 sambatest HylaFAX[14060]: PORT 127.0.0.1;23300
Mar 20 14:57:16 sambatest HylaFAX[14060]: LIST status
Mar 20 14:57:23 sambatest HylaFAX[14062]: servertracing = 0xFFF (line
57)
Mar 20 14:57:23 sambatest HylaFAX[14062]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 14:57:23 sambatest HylaFAX[14062]: USER root
Mar 20 14:57:23 sambatest HylaFAX[14062]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 14:57:23 sambatest HylaFAX[14062]: PORT 127.0.0.1;23812
Mar 20 14:57:23 sambatest HylaFAX[14062]: LIST status
Mar 20 14:57:24 sambatest HylaFAX[14064]: servertracing = 0xFFF (line
57)
Mar 20 14:57:24 sambatest HylaFAX[14064]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 14:57:24 sambatest HylaFAX[14064]: USER root
Mar 20 14:57:24 sambatest HylaFAX[14064]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 14:57:24 sambatest HylaFAX[14064]: PORT 127.0.0.1;24324
Mar 20 14:57:24 sambatest HylaFAX[14064]: LIST status
Mar 20 14:57:25 sambatest HylaFAX[14066]: servertracing = 0xFFF (line
57)
Mar 20 14:57:25 sambatest HylaFAX[14066]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 14:57:25 sambatest HylaFAX[14066]: USER root
Mar 20 14:57:25 sambatest HylaFAX[14066]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 14:57:25 sambatest HylaFAX[14066]: PORT 127.0.0.1;24836
Mar 20 14:57:25 sambatest HylaFAX[14066]: LIST status
Mar 20 14:57:25 sambatest HylaFAX[14068]: servertracing = 0xFFF (line
57)
Mar 20 14:57:25 sambatest HylaFAX[14068]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 14:57:25 sambatest HylaFAX[14068]: USER root
Mar 20 14:57:25 sambatest HylaFAX[14068]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 14:57:25 sambatest HylaFAX[14068]: PORT 127.0.0.1;25348
Mar 20 14:57:25 sambatest HylaFAX[14068]: LIST status
Mar 20 14:57:40 sambatest FaxGetty[14054]: Purge stale UUCP lock
/var/lock/LCK..ttyS0
Mar 20 14:57:40 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 14:57:40 sambatest FaxGetty[14054]: DELAY 75 ms
Mar 20 14:57:40 sambatest FaxGetty[14054]: MODEM set DTR ON
Mar 20 14:57:40 sambatest FaxGetty[14054]: DELAY 2600 ms
Mar 20 14:57:42 sambatest FaxGetty[14054]: MODEM set baud rate: 19200
baud, input flow XON/XOFF, output flow XON/XOFF
Mar 20 14:57:42 sambatest FaxGetty[14054]: DELAY 10 ms
Mar 20 14:57:42 sambatest FaxGetty[14054]: MODEM flush i/o
Mar 20 14:57:42 sambatest FaxGetty[14054]: <-- [4:ATZ\r]
Mar 20 14:58:12 sambatest FaxGetty[14054]: MODEM TIMEOUT: reading line
from modem
Mar 20 14:58:12 sambatest FaxGetty[14054]: MODEM <Timeout>
Mar 20 14:58:12 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 14:58:12 sambatest FaxGetty[14054]: DELAY 75 ms
Mar 20 14:58:12 sambatest FaxGetty[14054]: MODEM set DTR ON
Mar 20 14:58:12 sambatest FaxGetty[14054]: DELAY 2600 ms
Mar 20 14:58:15 sambatest FaxGetty[14054]: MODEM set baud rate: 19200
baud, input flow XON/XOFF, output flow XON/XOFF
Mar 20 14:58:15 sambatest FaxGetty[14054]: DELAY 10 ms
Mar 20 14:58:15 sambatest FaxGetty[14054]: MODEM flush i/o
Mar 20 14:58:15 sambatest FaxGetty[14054]: <-- [4:ATZ\r]
Mar 20 14:58:45 sambatest FaxGetty[14054]: MODEM TIMEOUT: reading line
from modem
Mar 20 14:58:45 sambatest FaxGetty[14054]: MODEM <Timeout>
Mar 20 14:58:45 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 14:58:45 sambatest FaxGetty[14054]: /dev/ttyS0: Can not
initialize modem.
Mar 20 14:58:45 sambatest FaxGetty[14054]: STATE CHANGE: LOCKWAIT ->
MODEMWAIT (timeout 30)
Mar 20 14:59:15 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 14:59:15 sambatest FaxGetty[14054]: DELAY 75 ms
Mar 20 14:59:15 sambatest FaxGetty[14054]: MODEM set DTR ON
Mar 20 14:59:15 sambatest FaxGetty[14054]: DELAY 2600 ms
Mar 20 14:59:18 sambatest FaxGetty[14054]: MODEM set baud rate: 19200
baud, input flow XON/XOFF, output flow XON/XOFF
Mar 20 14:59:18 sambatest FaxGetty[14054]: DELAY 10 ms
Mar 20 14:59:18 sambatest FaxGetty[14054]: MODEM flush i/o
Mar 20 14:59:18 sambatest FaxGetty[14054]: <-- [4:ATZ\r]
Mar 20 14:59:38 sambatest samba(pam_unix)[14071]: session opened for
user domain+jim by (uid=0)
Mar 20 14:59:48 sambatest FaxGetty[14054]: MODEM TIMEOUT: reading line
from modem
Mar 20 14:59:48 sambatest FaxGetty[14054]: MODEM <Timeout>
Mar 20 14:59:48 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 14:59:48 sambatest FaxGetty[14054]: DELAY 75 ms
Mar 20 14:59:48 sambatest FaxGetty[14054]: MODEM set DTR ON
Mar 20 14:59:48 sambatest FaxGetty[14054]: DELAY 2600 ms
Mar 20 14:59:50 sambatest FaxGetty[14054]: MODEM set baud rate: 19200
baud, input flow XON/XOFF, output flow XON/XOFF
Mar 20 14:59:50 sambatest FaxGetty[14054]: DELAY 10 ms
Mar 20 14:59:50 sambatest FaxGetty[14054]: MODEM flush i/o
Mar 20 14:59:50 sambatest FaxGetty[14054]: <-- [4:ATZ\r]
Mar 20 15:00:08 sambatest HylaFAX[14076]: servertracing = 0xFFF (line
57)
Mar 20 15:00:08 sambatest HylaFAX[14076]: HylaFAX INET connection from
localhost.localdomain [127.0.0.1]
Mar 20 15:00:08 sambatest HylaFAX[14076]: USER root
Mar 20 15:00:08 sambatest HylaFAX[14076]: FAX LOGIN FROM
localhost.localdomain [127.0.0.1], root
Mar 20 15:00:08 sambatest HylaFAX[14076]: PORT 127.0.0.1;26372
Mar 20 15:00:08 sambatest HylaFAX[14076]: LIST status
Mar 20 15:00:20 sambatest FaxGetty[14054]: MODEM TIMEOUT: reading line
from modem
Mar 20 15:00:20 sambatest FaxGetty[14054]: MODEM TIMEOUT: reading line
from modem
Mar 20 15:00:20 sambatest FaxGetty[14054]: MODEM <Timeout>
Mar 20 15:00:20 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 15:00:50 sambatest FaxGetty[14054]: MODEM set DTR OFF
Mar 20 15:00:50 sambatest FaxGetty[14054]: DELAY 75 ms
Mar 20 15:00:51 sambatest FaxGetty[14054]: MODEM set DTR ON
Mar 20 15:00:51 sambatest FaxGetty[14054]: DELAY 2600 ms
Mar 20 15:00:53 sambatest FaxGetty[14054]: MODEM set baud rate: 19200
baud, input flow XON/XOFF

...


Here are the config files:
[root@sambatest bhughes]# cd /var/spool/hylafax/etc/

[root@sambatest etc]# cat config
LogFacility:		daemon
CountryCode:		1
AreaCode:		918
LongDistancePrefix:	1
InternationalPrefix:	011
DialStringRules:	etc/dialrules
ServerTracing:		0xFFF


[root@sambatest etc]# cat config.ttyS0 
# $Id: usr-xon,v 1.9 2002/09/13 16:55:15 darren Exp $
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1990-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics, Inc.
# 
# Permission to use, copy, modify, distribute, and sell this software
and 
# its documentation for any purpose is hereby granted without fee,
provided
# that (i) the above copyright notices and this permission notice appear
in
# all copies of the software and related documentation, and (ii) the
names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
# 
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
# 
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY
OF 
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#

#
# Configuration for using the Class 1 command interface with
# a USR Courier or Sportster modem and XON/XOFF flow control. 
#
#
CountryCode:		1
AreaCode:		918
FAXNumber:		+1.918.664-4119
LongDistancePrefix:	1
InternationalPrefix:	011
DialStringRules:	etc/dialrules
ServerTracing:		0xFFF
SessionTracing:		0xFFF
RecvFileMode:		0644
LogFileMode:		0600
DeviceMode:		0600
RingsBeforeAnswer:	1
SpeakerVolume:		off
GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	"Standfield and O'Dell"
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"From %%l|%c|Page %%P of %%T"
MaxRecvPages:		25
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:		Class1		# use class 1 interface
ModemRate:		19200		# rate for DCE-DTE communication
ModemFlowControl:	xonxoff		# hardware flow control
#
ModemSetupDTRCmd:	ATS13=1&D2	# setup so DTR drop resets modem
ModemSetupDCDCmd:	AT&C1		# setup so DCD reflects carrier (or not)
ModemNoFlowCmd:		AT&H0&I0&R1	# setup modem for no flow control
ModemHardFlowCmd:	AT&H1&I0&R2	# setup modem for hardware flow control
ModemSoftFlowCmd:	AT&H2&I2&R1	# setup modem for software flow control
ModemResultCodesCmd:	ATQ0X4		# enable result codes
#
ModemMfrQueryCmd:	!USR
ModemModelQueryCmd:	ATI3
ModemRevQueryCmd:	ATI7		# XXX returns a multi-line result
#
# When AT+FCLASS=1 is issued the modem automatically switches
# to software flow control; these parameters let the fax software
# reset flow control as needed after entering Class 1.
#
Class1NFLOCmd:		AT&H0&I0&R1	# setup modem for no flow control
Class1HFLOCmd:		AT&H1&I0&R2	# setup modem for hardware flow control
Class1SFLOCmd:		""		# modem does this automatically
#
# This should resolve "DIS/DTC received 3 times" errors:
#
Class1ResponseWaitCmd:	AT+FRS=1	# wait after sending TCF for response
#
# The remainder of this configuration is included so that the
# modem "idles" in Class 0 while not sending or receiving facsimile.
#
ModemSetupAACmd:	AT+FCLASS=0	# leave modem idling in class 0
ModemAnswerCmd:		AT+FCLASS=1A	# answer in Class 1
#
# Disables the reporting of bad frames by the modem.  This
# overcomes a firmware problem in the x2 and V90 Sportsters.
# It is not necessary for the Courier modem.
#
Class2NRCmd:    AT+FNR=1,1,1,0
[root@sambatest etc]# 

I don't think I made any changes to the following:

[root@sambatest hylafax]# cd /etc/hylafax/
[root@sambatest hylafax]# cat hyla.conf 
# hyla.conf
#
# This is the system-wide config file used by HylaFAX client programs: 
# sendfax, faxstat, faxalter, faxmail, faxrm, sendpage, faxwatch,
# textfmt. 
# The per-user config file is ~/.hylarc, which has the same syntax of
# hyla.conf.
#
# Below you find some examples. Read the man pages of the HylaFAX client
# programs for a complete list of the parameters that can be used in
this file.
#

# Vertical resolution for outgoing faxes.
# Default is 98 lines/inch, aka 'low', better is 196 lines/inch, aka
'fine'. 
# Equivalent to 'sendfax' -l and -m options. 
VRes: 196

# KillTime: time before expiring a job.
# Default is 3 hours. Equivalent to 'sendfax' -k option. 
# Tipically this is needed when bulk faxing.
#KillTime: "now +24 hours"    # Give jobs 24h before expiring them

# Notify policy (for outgoing faxes).
# Default is to notify only in case of problems. Equivalent to 'sendfax'
# -D option.
#Notify: Done    # Notify even for succesfully sent jobs

# 'faxstat' output
# Uncomment this to change the format of 'faxstat' output to show the
# date/time the faxes will be/have been transmitted.
#JobFmt: "%-4j %-19Y %1a %6.6o %-14.14e %5P %5D %.25s"  # faxstat -sdl
output

# Network HylaFAX server: redirect all client commands to an HylaFAX
server.
# Uncomment this if this system has no fax-modems connected to it, and
there
# is an HylaFAX server on your network. Equivalent to 'sendfax' -h
option.
#Host: faxserver.mydomain.dom

# Pagesize; RPM default is 'a4'
#PageSize: letter

# Disable PageChopping. Default is to chop.
#PageChop: none    # Avoid page chopping

# Cover page date format.
#DateFormat: "%d/%m/%Y %H:%M:%S"    # 'European style' (day, month,
year)

[root@sambatest hylafax]# 

[root@sambatest hylafax]# cat hfaxd.conf 
#
# HylaFAX Client-Server Protocol Configuration.
#
# Consult hfaxd(1M) for information on the contents
# of this file.  Note that pathnames specified in
# this file are relative to the root of the spooling
# area because hfaxd uses chroot to confine client
# accesses to the server's filesystem.
#
LogFacility:		daemon		# syslog facility (want this 1st))
ServerTracing:		0xFFF		# just server operation
#IdleTimeout:		900		# initial client idle timeout (secs)
#MaxIdleTimeout:	7200		# max client idle timeout (secs)
#MaxLoginAttempts:	5		# max # login attempts before disconnect
#MaxAdminAttempts:	5		# max # admin attempts before disconnect
#MaxConsecutiveBadCmds:	10		# max # invalid cmds before disconnect
#FaxContact:		FaxMaster	# who gets questions/complaints
#UserAccessFile:	"/etc/hosts.hfaxd"	# user+host access control file
#ShutdownFile:		"/etc/shutdown"	# server shutdown control filename
#XferLogFile:		"/etc/clientlog"	# for logging client file transfers
#FaxQFIFOName:		"/FIFO"		# FIFO name for talking to faxq process
#
# The default format used to return job status queries.
# Note that clients can override this with JOBFMT.
#
#JobFmt:		"%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"
#
# The default format used to return recvq status queries.
# Note that clients can override this with RCVFMT.
#
#RcvFmt:		"%-7m %4p%1z %-8.8o %14.14s %7t %f"
#
# The default format used to return modem status queries.
# Note that clients can override this with MODEMFMT.
#
#ModemFmt:		"Modem %m (%n): %s"
#
# The default format used to return file-oriented
# directory listings.
# Note that clients can override this with FILEFMT.
#
#FileFmt:		"%-7p %3l %8o %8s %-12.12m %.48f"

#
# SNPP-specific parameters.
#
#MaxMsgLength:		128		# max pager message length
#PagerIDMapFile:	"/etc/pagermap"	# file with pager ID mapping rules
#
# The following three items define the mapping from
# SNPP service level to job scheduling priority and
# expiration (kill) time.  Each item should have a
# list of 12 values that define the mapping for service
# levels 0 through 11 (first item is level 0, second
# item level 1, ... etc.).
#
#PriorityMap:		"63 127 127 127 127 127 127  127  127  127  127  127"
#RetryTimeMap:		"30  60  60 180   0   0   0    0    0    0    0    0"
#KillTimeMap:		" 5   5   5  15  60 240 720 1440 1440 1440 1440 1440"
[root@sambatest hylafax]# 


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions