HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Waiting for the modem to become ready



Hi ,

 

I have the same problem, RedHat 8.0, Hylafax 4.1.5 US Robotics faxmodem 56K external, this modem is configurable as class 1 or 2.0, in the first case trying to send a fax I get the error "Waiting for the modem to become ready" at the prompt ....faxstat Waiting for the modem to become ready.....; in the second case, error "No dial tone" at the prompt faxstat "Hylafax running    Modem idle".

1st I though was a line problem but the phone works fine on that line; I don't know what else to do, I put two line in config.ttyS0: ModemDialCmd  ATX3,

ModemDialCmd:  ATDP0, %s, I tried to send fax from the Windows client by "sambafax" and by WHFC and from Linux box with send fax -n -d xxxxxxxxxxxxxxxx  /etc/faxtest.ps.,  the document in both cases went to docq, stayed there for a while and then moved to sendq even if it had not been sent,  I got an email reporting the above errors; when I tried to send fax, I can see the modem led blinking .

Please help me it is about two weeks I am working at Hylafax without significant results.

I attach the error log of Hylafax and the configuration file for the modem ttyS0.

 

 

This is the log:

 

 

May 22 16:32:52.49: [ 2025]: SESSION BEGIN 00000039 00447986058729
May 22 16:32:52.49: [ 2025]: HylaFAX (tm) Version 4.1.5
May 22 16:32:52.49: [ 2025]: SEND FAX: JOB 2 DEST xxxxxxxxxxx COMMID 00000039 DEVICE '/dev/ttyS0'
May 22 16:32:52.49: [ 2025]: DELAY 75 ms
May 22 16:32:52.57: [ 2025]: DELAY 2600 ms
May 22 16:32:55.17: [ 2025]: DELAY 10 ms
May 22 16:32:55.18: [ 2025]: <-- [4:ATZ\r]
May 22 16:32:55.31: [ 2025]: --> [2:OK]
May 22 16:32:55.31: [ 2025]: DELAY 3000 ms
May 22 16:32:58.31: [ 2025]: <-- [5:ATE0\r]
May 22 16:32:58.45: [ 2025]: --> [4:ATE0]
May 22 16:32:58.45: [ 2025]: --> [2:OK]
May 22 16:32:58.45: [ 2025]: <-- [5:ATV1\r]
May 22 16:32:58.58: [ 2025]: --> [2:OK]
May 22 16:32:58.58: [ 2025]: <-- [7:ATQ0X4\r]
May 22 16:32:58.71: [ 2025]: --> [2:OK]
May 22 16:32:58.71: [ 2025]: <-- [7:ATS0=0\r]
May 22 16:32:58.85: [ 2025]: --> [2:OK]
May 22 16:32:58.85: [ 2025]: <-- [7:ATS8=2\r]
May 22 16:32:58.98: [ 2025]: --> [2:OK]
May 22 16:32:58.98: [ 2025]: <-- [8:ATS7=60\r]
May 22 16:32:59.12: [ 2025]: --> [2:OK]
May 22 16:32:59.12: [ 2025]: <-- [12:AT&H2&I2&R1\r]
May 22 16:32:59.26: [ 2025]: --> [2:OK]
May 22 16:32:59.26: [ 2025]: <-- [11:ATS13=1&D2\r]
May 22 16:32:59.39: [ 2025]: --> [2:OK]
May 22 16:32:59.39: [ 2025]: <-- [6:AT&C1\r]
May 22 16:32:59.53: [ 2025]: --> [2:OK]
May 22 16:32:59.53: [ 2025]: <-- [12:AT+FCLASS=1\r]
May 22 16:32:59.66: [ 2025]: --> [2:OK]
May 22 16:32:59.66: [ 2025]: <-- [12:AT+FCLASS=0\r]
May 22 16:32:59.80: [ 2025]: --> [2:OK]
May 22 16:32:59.80: [ 2025]: <-- [5:ATM0\r]
May 22 16:32:59.93: [ 2025]: --> [2:OK]
May 22 16:32:59.94: [ 2025]: <-- [12:AT+FCLASS=1\r]
May 22 16:33:00.17: [ 2025]: --> [2:OK]
May 22 16:33:00.17: [ 2025]: DIAL 07986058729
May 22 16:33:00.17: [ 2025]: <-- [16:ATDTxxxxxxxxxxxx\r]
May 22 16:33:05.30: [ 2025]: --> [12:NO DIAL TONE]
May 22 16:33:05.30: [ 2025]: SEND FAILED: JOB 2 DEST xxxxxxxxxxx ERR No local dialtone
May 22 16:33:05.30: [ 2025]: <-- [5:ATH0\r]
May 22 16:33:05.53: [ 2025]: --> [2:OK]
May 22 16:33:05.53: [ 2025]: SESSION END

 

 

And this is the modem configuration:

 

# $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:            0044
AreaCode:         020
FAXNumber:        0044.020.xxxxxxxxxxx
LongDistancePrefix:     0
InternationalPrefix:    0039
DialStringRules:  etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:       0600
RingsBeforeAnswer:      2
SpeakerVolume:          off
GettyArgs:        "-h ttyS0 19200"
LocalIdentifier:  xxxxxxxxxxxxxxxxx
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
NoCarrierRetrys:  3
MaxRecvPages:           30
#
#
# 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           # software flow control
#
ModemResetCmd:          ATX3
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:    ATQ0X3            # enable result codes
ModemDialCmd:           ATDP0, %s       # enable tone dialing
#
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
 

 

Thank you very much in advance and sorry for my English.

 

Luca       

 

 




Project hosted by iFAX Solutions