HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Hyla not sending fax



Hi, i am still having problem making Hylafax sending my fax. George Bell
gave me some help.

I follow his instruction to test my modem in minicom.

I would just try sending
commands out to the modem manually just to see if you can get it to dial. To do this, start minicom in a terminal. First try just for kicks command AT+FCLASS=? The modem should reply with a string of codes that indicate its modes of operaton followed by 'OK'. Example
AT+FCLASS=?
1,2,8
OK

AT+FCLASS=? 0,1,8

OK




Then try dialing your number:


ATDT123456
or
ATDT,12345 (commas insert a pause)


ATDT, 2281049


The modem dialed. The other fax was not answering but the problem was on
 their side today. Usually their fax is answering.

Please look at log files below to direct me.

Here the log file for my hylafax printing problem:

/var/spool/hylafax/

fév 28 20:58:35.94: [ 5435]: SESSION BEGIN 000000001 14182281049
fév 28 20:58:35.94: [ 5435]: HylaFAX (tm) Version 4.1.8
fév 28 20:58:35.94: [ 5435]: SEND FAX: JOB 1 DEST 2281049 COMMID
000000001 DEVIC
E '/dev/ttyS1'
fév 28 20:58:35.94: [ 5435]: DELAY 75 ms
fév 28 20:58:36.02: [ 5435]: DELAY 2600 ms
fév 28 20:58:39.63: [ 5435]: DELAY 10 ms
fév 28 20:58:39.64: [ 5435]: <-- [4:ATZ\r]
fév 28 20:58:39.73: [ 5435]: --> [2:OK]
fév 28 20:58:39.73: [ 5435]: DELAY 3000 ms
fév 28 20:58:42.73: [ 5435]: <-- [5:ATE0\r]
fév 28 20:58:42.79: [ 5435]: --> [4:ATE0]
fév 28 20:58:42.79: [ 5435]: --> [2:OK]
fév 28 20:58:42.79: [ 5435]: <-- [5:ATV1\r]
fév 28 20:58:42.85: [ 5435]: --> [2:OK]
fév 28 20:58:42.85: [ 5435]: <-- [5:ATQ0\r]
fév 28 20:58:42.91: [ 5435]: --> [2:OK]
fév 28 20:58:42.91: [ 5435]: <-- [7:ATS0=0\r]
fév 28 20:58:42.97: [ 5435]: --> [2:OK]
fév 28 20:58:42.97: [ 5435]: <-- [7:ATS8=2\r]
fév 28 20:58:43.03: [ 5435]: --> [2:OK]
fév 28 20:58:43.03: [ 5435]: <-- [8:ATS7=60\r]
fév 28 20:58:43.09: [ 5435]: --> [2:OK]
fév 28 20:58:43.09: [ 5435]: <-- [12:AT+FCLASS=1\r]
fév 28 20:58:43.16: [ 5435]: --> [2:OK]
fév 28 20:58:43.16: [ 5435]: <-- [5:ATM0\r]
fév 28 20:58:43.22: [ 5435]: --> [2:OK]
fév 28 20:58:43.22: [ 5435]: <-- [12:AT+FCLASS=1\r]
fév 28 20:58:43.39: [ 5435]: --> [2:OK]
fév 28 20:58:43.42: [ 5435]: DIAL 2281049
fév 28 20:58:43.42: [ 5435]: <-- [12:ATDT2281049\r]
fév 28 21:01:43.41: [ 5435]: SEND FAILED: JOB 1 DEST 2281049 ERR Unknown
problem
 (check modem power)
fév 28 21:01:43.41: [ 5435]: <-- [5:ATH0\r]
fév 28 21:01:43.69: [ 5435]: --> [4:ATH0]
fév 28 21:01:43.69: [ 5435]: --> [2:OK]
fév 28 21:01:43.69: [ 5435]: SESSION END


Here my config files:

[root@localhost 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:          0x001           # 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@localhost 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@localhost etc]# cat config.ttyS1
# $Id: class1,v 1.12 2002/08/21 16:01:07 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.
#

#
# Generic Class 1 modem configuration.
#
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#
CountryCode:            1
AreaCode:               418
FAXNumber:              226.4022
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      4
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
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 this to supply a hint
#ModemRate:             19200           # rate for DCE-DTE communication
#ModemFlowControl:      xonxoff         # XON/XOFF flow control assumed
#
#ModemSetupDTRCmd:      AT&D2           # setup so DTR drop resets modem
#ModemSetupDCDCmd:      AT&C1           # setup so DCD follows carrier
#GettyArgs:             "-h %l dx_%s"   # modem must auto-detect fax/data
#
# We can append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# NB: If you need to prefix phone numbers to get through a PBX,
#     put it in the ModemDialCmd; e.g. "DT9%s@".
#
#ModemDialCmd:          ATDT%s          # T for tone dialing
#
# Other possible configuration stuff.  The default strings are
# shown below.  Only those that are different from the defaults
# need to be included in the configuration file.
#
#ModemResetCmds:                ""              # stuff to do when modem
is reset
#ModemAnswerCmd:                ATA             # use this to answer phone
#ModemNoFlowCmd:                AT&K            # disable flow control cmd
#ModemHardFlowCmd:      AT&K3           # hardware flow control cmd
#ModemSoftFlowCmd:      AT&K4           # software flow control cmd
#ModemNoAutoAnswerCmd:  ATS0=0          # disable auto-answer
#
# Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
# Note that we both turn the speaker on/off and set volume.
#
#ModemSetVolumeCmd:     "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
#ModemEchoOffCmd:       ATE0            # disable command echo
#ModemVerboseResultsCmd:        ATV1            # enable verbose command
results
#ModemResultCodesCmd:   ATQ0            # enable result codes
#ModemOnHookCmd:                ATH0            # place phone on hook
(hangup)
#ModemSoftResetCmd:     ATZ             # do soft reset of modem
#ModemSoftResetCmdDelay:        3000    # pause after soft reset
#ModemWaitTimeCmd:      ATS7=60         # wait 60 seconds for carrier
#ModemCommaPauseTimeCmd:        ATS8=2          # comma pause time is 2
seconds
#ModemRecvFillOrder:    LSB2MSB         # bit order of received facsimile
#ModemSendFillOrder:    LSB2MSB         # bit order modem expects for
transmit
#
Class1Cmd:              AT+FCLASS=1     # command to enter class 1
Class1PPMWaitCmd:       AT+FTS=7        # command to stop and wait
before PPM
Class1TCFWaitCmd:       AT+FTS=7        # command to stop and wait
before TCF
Class1EOPWaitCmd:       AT+FTS=9        # command to stop and wait
before EOP
Class1MsgRecvHackCmd:   ""      # command to avoid +FCERROR before image
Class1TCFResponseDelay: 75              # 75ms delay between recv TCF &
response
Class1SendMsgDelay:     75              # 75ms delay after training
Class1SwitchingCmd:     AT+FRS=7        # silence between HDLC recv and
trans
Class1TrainingRecovery: 1500            # 1.5sec delay after training
failure
Class1RecvAbortOK:      200             # wait 200ms for abort response
Class1FrameOverhead:    4               # 4 byte overhead in recvd HDLC
frames
Class1RecvIdentTimer:   40000           # 35+5secs waiting for ident frames
Class1TCFMaxNonZero:    10              # max 10% of data may be non-zero
Class1TCFMinRun:        1000            # min run is 2/3rds of TCF duration




Modem is always on but if Hylafax try to send the fax a lot later than
submission, maybe i am surfing the net or other modem related action.

This morning i tried to send another fax. After 30 minutes it was still
in the queue without being sent. It seem hylafax didn't even try to send
it.

[root@localhost log]# faxstat -f
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyS1 (226.4022): Sending job 1

-rw---- 1 root 11584 Mar 8 12:19 doc5.ps.5


faxq and hfaxd are running.


How can it be configured to send fax automatically as i send it through kdesendfax?

It seem i can't kill this pending job (as root).

[root@localhost hylafax]# faxstat -s
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyS1 (226.4022): Sending job 1

JID  Pri S  Owner Number       Pages Dials     TTS Status
5    127 W utilis 2281049       0:0   0:12


[root@localhost hylafax]# faxrm 5
504 Cannot kill job: Operation not permitted.


I am trying to follow the action of the sendfax command coming from
kdeprintfax but i am a bit lost.

I am feeling like i bother a lot of people to make my system work like
it should. Am i expecting too much from Linux?  I only want my system do
  as much as my previous Windows setup was. When things are working in
Linux, they are a lot better than Windows. It is major work for me doing
it. Do i need more reading or other previous material?

Thanks a lot.
--
Guy Bouchard
383 Rang 6
St-Benoit Labre
Quebec, Canada
G0M1P0
http://www.guybouchard.ca/



____________________ 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@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxxxxx*




Project hosted by iFAX Solutions