HylaFAX The world's most advanced open source fax server

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

[hylafax-users] faxgetty hang answring a 'test call'...



[I'm not subscribed to this liste, so, please, put me on CC]

I've setup a hylafax server in my organization, on a debian etch box
(hylafax 4.3.1). I've configured to answer fax and data call (via
mgetty) with a spare USR Sportster modem (i know, not a perfect
choice) configured in class1.

My modem:

Mar 26 12:50:09 trinity FaxGetty[30179]: MODEM USR USRobotics Sportster Voice 33600 Fax Rev. 2.0/Configuration Profile... Product type     
      Italy External Options                V32bis,V.FC,V.34+ Fax Options            Class 1/Class 2.0 Clock Freq             92.0Mhz Eprom
                  256k Ram                    64k EPROM date 8/21/96 DSP date               8/21/96 EPROM rev              2.0  DSP rev                2.0


my config.ttyS0 attached, substantially standard Sportster config with
adaptive answer turned on.


Now if i try to simply 'test' the answer of the modem (dial the number
and say 'ciao' to fax whistle, then hangup) the session tracing say me:

	Mar 26 12:36:07.28: [29943]: SESSION BEGIN 000000059 XXXXXXXXXXXX
	Mar 26 12:36:07.28: [29943]: HylaFAX (tm) Version 4.3.1
	Mar 26 12:36:07.28: [29943]: <-- [13:AT+FCLASS=1A\r]
	Mar 26 12:37:07.27: [29943]: --> [3:FAX]
	Mar 26 12:37:07.27: [29943]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyS0'
	Mar 26 12:37:07.27: [29943]: RECV FAX: begin
	Mar 26 12:37:07.28: [29943]: <-- data [32]
	Mar 26 12:37:07.28: [29943]: <-- data [2]

and then faxgetty hang indefinetively, i've keep in this state for
about an hour without hope.

The only way to fix this was to kill faxgetty and let init to respawn
it. Even if i shut off the modem, nothing changed and faxgetty keep
hang on.


Ok, modem is not the best choice, but i hope there's some 'workaround'
to this...


Please help me.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797
# $Id: usr-xon,v 1.10 2004/05/19 21:17:23 lhoward 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:		39
AreaCode:		0434
FAXNumber:		+39-XXXX-XXXXXX
LongDistancePrefix:	0
InternationalPrefix:	00
DialStringRules:	etc/dialrules.italy
ServerTracing:		1
SessionTracing:		63
			#11
RecvFileMode:		0600
LogFileMode:		0600
DeviceMode:		0600
RingsBeforeAnswer:	2
SpeakerVolume:		quiet
#GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	"Undefined"
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"Da %%l|%c|Pagina %%P di %%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		# software 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


# Visto che devo accettare chiamate dati, in ppp o login, non posso
# accontentarmi di una velocit� di 19200 baud.
# ATTENZIONE per� che molti modem possono ricevere fax solo a 19200
#  e in xonxoff, e HylaFax non sembra avere l'opzione 'switchbaud' di
#  mgetty...
#
ModemRate:		115200		# rate for DCE-DTE communication
ModemFlowControl:	rtscts		# software flow control

# Disabilito la risposta voice, che proprio non ci serve
#
NoAnswerVoice:		on

# Siamo dietro un centralino, aggiungiamo 0, ...
#
ModemDialCmd:		ATX3DT0,%s

# impostazioni aggiuntive per passare le chiamate dati a mgetty
# ATTENZIONE che ModemSetupAACmd non sia definito anche pi� sopra...
#
ModemSetupAACmd:		AT+FAA=1
AdaptiveAnswer:			yes
ModemAnswerResponseTimeout:	60000
GettyArgs:			"-r -b -s %s %l"



Project hosted by iFAX Solutions